-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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(excel/csv filename on chart download): downloads zip file and excel/csv file with chart name. #27409
base: master
Are you sure you want to change the base?
fix(excel/csv filename on chart download): downloads zip file and excel/csv file with chart name. #27409
Conversation
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.
thanks for this @nandwalritik, both for taking it so far and for calling out where you need help. I approved the CI tests to run and they failed similar to what you're talking about. I'm not sure what the source for this could be - maybe @john-bodley can take a look during the daily PR review and see if a committer could help get you unstuck? |
Hi @john-bodley Can you help me with the test cases part, I am unable to run the Test Cases, once I find a way to run them, I can quickly edit the test cases as well. |
I approved the tests to run on CI at least. As to that local error message, hm, maybe this will help? https://saturncloud.io/blog/solving-the-attributeerror-module-numpy-has-no-attribute-version/ |
Closing and reopening to trigger CI |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #27409 +/- ##
===========================================
+ Coverage 60.48% 83.90% +23.41%
===========================================
Files 1931 533 -1398
Lines 76236 38620 -37616
Branches 8568 0 -8568
===========================================
- Hits 46114 32404 -13710
+ Misses 28017 6216 -21801
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
914c2e0
to
a774d6b
Compare
# Get chart name from slice_id | ||
if form_data is not None and "slice_id" in form_data: | ||
slice_obj = ( | ||
db.session.query(Slice).filter_by(id=form_data["slice_id"]).first() | ||
) | ||
chart_name = slice_obj.chart | ||
else: | ||
chart_name = "query" |
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.
@sfirke I just added the checks in if condition so the test cases can pass.
@nandwalritik and @sfirke Any updates on this PR since July? Is there still a CI issue blocking merge? I'd love to see it merged as it addresses a problem we've been having. |
Restarting CI . Let's pick this back up and try to merge it! |
@gooroodev review |
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.
@nandwalritik could you please set up pre-commit and get that check passing? This feels so close to mergeable! |
fix(excel/csv filename on chart download): downloads zip file and excel/csv file with chart name.
SUMMARY
When we download any chart as excel/csv file, the file doesn't have appropriate name. So for filename its like
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
After
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Hi @sfirke as we discussed over slack,I have made the changes and tested manually on my local.
pytest tests/integration_tests/charts/data/api_tests.py
I am getting below error and unable to find root cause for it
ERROR tests/integration_tests/charts/data/api_tests.py::test_chart_data_subquery_allowed[200-extras3] - sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: dbs