-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While exporting CSV , only the entries on first page are getting downloaded even when user is on other pages #17861
Comments
@villebro could you think of a possible solution for this one ? |
Hi @amitmiran137 ! |
Any update on which version can we expect this, also in the above we are using sql templating in datasets.
|
Hello @noobyogi0010 that would be great! Let me know if you are still interested in working on this issue |
@noobyogi0010 @geido In a "normal" chart, all pages would be downloaded (e.g. 10 pages a 10 entries = 100 row csv).
I would suggest not necessarily going @pratikgera123's proposed way (download the current instead of the first page) but instead harmonizing "server paged" CSV export with normal CSV export, e.g. they should behave the same. The user of a dashboard does not necessarily even know what server paging is and whether it's used, so they expect csv to behave the same either way. We had to suggest to our users to go via "view chart in explore", disable server pagination, and download from there. Not the best user experience, especially given that we have quite some users. Ideally, the CSV export option should offer a pop-up where such things can be selected before downloading ("download all pages" vs. "download current page", override for limit, etc.). |
While downloading the CSV file irrespective of pagination i.e. 10/20/50 items or "All" items in the list, the downloaded file consists first 10/20 records as they were set for pagination for display. Expected - "Export full CSV" option should extract all records. Actual - |
I am also getting the same issue. |
Hi Team, Any update on this item, our client is following us regularly on this, Please let us which version we are targeting this so that we can respond accordingly. Thanks |
I am also facing saME ISSUE |
same issue |
I am also having the same issue. |
Hi @geido If no one is working on this, I can try resolving it. |
Hi @LahmerIlyas sure thing. Contributions are more than welcome. Let me know if you need any help with this! |
@geido I was able to resolve the issue. Apparetly the ownstate prop was not being passed to |
Hi Team,
Thanks for reply.
What do you mean by ownstate? and useExploreAdditionalActionsMenu() hook
Is it resolved? may i know what changes i have make, please let me know.
Regards,
Naren
…________________________________
From: Ilyas ***@***.***>
Sent: 24 May 2022 23:55
To: apache/superset ***@***.***>
Cc: Narendra Reddy ***@***.***>; Comment ***@***.***>
Subject: Re: [apache/superset] While exporting CSV , only the entries on first page are getting downloaded even when user is on other pages (Issue #17861)
@geido<https://github.com/geido> I was able to resolve the issue. Apparetly the ownstate prop was not being passed to ConnectedExploreChartHeader and the useExploreAdditionalActionsMenu() hook. I will create a PR for that
—
Reply to this email directly, view it on GitHub<#17861 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AVFA24WVCUIPPOR5WUJOI2LVLUNJXANCNFSM5KUWD5CQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
@Narendra678 it was a bug in the code, and I resolved it and submitted a pull request(https://github.com/apache/superset/pull/20178/files) for it, but no one reviewed it yet. Here is a video of how it looks: output.mp4 |
Hi LahmerIlyas, thanks for your help! it is solved my issue. |
… downloaded even when user is on other pages apache#17861
In my case, with server pagination enabled, both option behave same way and download only first page. |
@mdeshmu with this PR, when server side pagination is enabled, export to csv will only download the selected page. |
@LahmerIlyas How will it behave when i choose "All" entries. |
In Table Chart's configuration, I have server page length set to 10. When in dashboard I change the page size to 50 yet it still downloads 10 rows. My expectation is it would download 50 rows. |
@mdeshmu I tried changing the page size to 50 and it downloaded a 50 rows csv file |
@LahmerIlyas Please confirm, you are testing with "Export CSV"? |
@mdeshmu |
@LahmerIlyas |
Any update on this issue, is above PR included in any version? |
Hi, im having this issue too. |
Hello. As this issue has been stale for a while now, I'll be closing it. If anyone experiences this issue in a recent version of Superset, please feel free to submit a new one. |
This is still an issue for me on 3.1.0, when pagination is enabled only the first page is downloaded even if the 'ALLOW_FULL_CSV_EXPORT' flag has been enables. |
This is still an issue for me on 4.0.1 ... |
Thanks for testing... we'll reopen this. |
Is this issue going to be resolved in the upcoming release 4.1.0 ? |
@vineetdpnd issue is not resolved in 4.1.1, any updated if in future it will get resolved? |
Happening here too, it's a big issue as we need server side pagination and the customer wants to download all the pages in one go. |
When multiple pages are present in a report and user clicks on export CSV , only the data from first page is getting exported in CSV even when any other page is selected.
How to reproduce the bug
Expected results- Csv file with entries of current page should get downloaded
Actual results- CSV file with entries of first page getting downloaded
Screenshots
Environment
1.3.1
The text was updated successfully, but these errors were encountered: