Skip to content
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

Export full CSV downloads only first page with pagination enabled on table chart #20724

Closed
2 of 3 tasks
mdeshmu opened this issue Jul 15, 2022 · 12 comments · May be fixed by #23554
Closed
2 of 3 tasks

Export full CSV downloads only first page with pagination enabled on table chart #20724

mdeshmu opened this issue Jul 15, 2022 · 12 comments · May be fixed by #23554
Labels
#bug Bug report

Comments

@mdeshmu
Copy link
Contributor

mdeshmu commented Jul 15, 2022

When multiple pages are present in a table chart and user clicks on Export full CSV, only the data from first page is getting exported in CSV.

How to reproduce the bug

  1. Go to 'Dashboard'
  2. Click on 'Export full CSV' on a table chart
  3. A zip should be downloaded
  4. Analyze csv file to see only first page of the table downloaded

Expected results

CSV file with entries from all pages should get downloaded.

Actual results

CSV file with entries of first page getting downloaded

Screenshots

image

server-pagination

Environment

  • browser type and version: Chrome Version 103.0.5060.114 (Official Build) (64-bit)
  • superset version: 1.5.1
  • python version: 3.8.12
  • node.js version:
  • any feature flags active: ALLOW_FULL_CSV_EXPORT

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.
@mdeshmu mdeshmu added the #bug Bug report label Jul 15, 2022
@mdeshmu
Copy link
Contributor Author

mdeshmu commented Jul 17, 2022

@LahmerIlyas can you please create a PR for this one just like we discussed in 17861

@LahmerIlyas
Copy link
Contributor

@mdeshmu I would be glad to help with a solution to this issue.

@mdeshmu
Copy link
Contributor Author

mdeshmu commented Sep 14, 2022

@LahmerIlyas did you get time to look into this?

@mdeshmu
Copy link
Contributor Author

mdeshmu commented Feb 3, 2023

@LahmerIlyas ping! cc: @rusackas @michael-s-molina

@LahmerIlyas
Copy link
Contributor

@mdeshmu sorry for taking too long on this. I created a PR for a fix for the issue. You can see it here: #23554

@LahmerIlyas
Copy link
Contributor

@geido Can we get a review for my PR please.

@mdeshmu
Copy link
Contributor Author

mdeshmu commented Apr 3, 2023

Thanks @LahmerIlyas

@rusackas
Copy link
Member

I just came across this issue and PR again. Maybe I'm taking crazy pills, but I couldn't get reproduce this issue on current master. Is it still a problem on master or did some other PR resolve it in some other way?

@LahmerIlyas
Copy link
Contributor

I just came across this issue and PR again. Maybe I'm taking crazy pills, but I couldn't get reproduce this issue on the current master. Is it still a problem on master or did some other PR resolve it in some other way?

@rusackas Thanks for testing. I just managed to reproduce it on the master branch. Here is a recording:

USA-Births-Names.webm

@hzdx943
Copy link

hzdx943 commented May 31, 2023

@mdeshmu sorry for taking too long on this. I created a PR for a fix for the issue. You can see it here: #23554

@LahmerIlyas hi,I hava same issues, I modified the local code according to #23554,and enable ALLOW_FULL_CSV_EXPORT flag,I exported all the data when I used Export FULL CSV and Export CSV,The value of variable formDataCopy.result_type is full.
Is this a normal result? Thanks you~

@hzdx943
Copy link

hzdx943 commented Jun 2, 2023

@mdeshmu sorry for taking too long on this. I created a PR for a fix for the issue. You can see it here: #23554

@LahmerIlyas hi,After applying this modification,I have encountered a new problem,The data refreshed after clicking on the page number will always be the data from the first page!

@geido
Copy link
Member

geido commented Feb 22, 2024

Closing this one as stale. Related to #17861

@geido geido closed this as completed Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants