-
Notifications
You must be signed in to change notification settings - Fork 14k
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
fix: use cache for csv download #17194
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17194 +/- ##
=======================================
Coverage 76.73% 76.73%
=======================================
Files 1039 1039
Lines 55587 55587
Branches 7580 7580
=======================================
Hits 42654 42654
Misses 12683 12683
Partials 250 250
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
1b9b113
to
8b38f14
Compare
8b38f14
to
f0c9c05
Compare
🏷 2021.42 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome one-liner @eschutho ! 🎉
Ha, thanks. I'll put up a follow up that will take care of the result set not matching and also the json. And will write some tests for them, too. |
🏷️ 2021.42 |
(cherry picked from commit 08aab3b)
SUMMARY
Fixes the issue where csv download on explore is not returning the same result as the chart. The results and the full responses are keyed in cache differently. Since we want the csv to match the full results, I'm passing in the result type as full so that it pulls from the correct cache. There are more improvements that we can do later @villebro has a lot of ideas on how we can cache this better, but for now, this is a quick fix for this bug.
Screen.Recording.2021-10-22.at.5.34.51.PM.mov
TESTING INSTRUCTIONS
create a chart with some data, update the data, return to the chart and click to refresh the data. You'll likely see that the results and the chart data are different. Click to download a csv, and it should match the chart data.
ADDITIONAL INFORMATION