-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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 to avoid replacing charts with the Loading logo when charts are n… #30935
Conversation
…ot in the current view. Useful to have all charts printed when exporting to pdf
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #30935 +/- ##
===========================================
+ Coverage 60.48% 83.85% +23.36%
===========================================
Files 1931 536 -1395
Lines 76236 38959 -37277
Branches 8568 0 -8568
===========================================
- Hits 46114 32669 -13445
+ Misses 28017 6290 -21727
+ 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. 🚨 Try these New Features:
|
@jpchev This change doesn't really fix the issue, it only skips the virtualization check - which has the same effect as simply disabling virtualization ( In my opinion, a proper fix would be to move the PDF generation to the backend, as a Celery/Selenium job (like the screenshots - see |
@kgabryje ok, do you mean that setting I thought that is only for scheduled dashboards |
No, that feature flag enables downloading dashboard as an image through Selenium, not client-side. I meant that we should do a similar thing for downloading as PDF to fix the problem with loading charts |
I'm testing with BTW, for the generation on the backend, is it enough to set Thank you |
TBH I don't really know the details of that feature, but perhaps @geido knows more? |
it seems UPDATE: Thank you |
You also need |
closing this PR as not relevant anymore |
this is to fix issue 27532
SUMMARY
by setting to True the following feature flag in config.py
"DASHBOARD_DISABLE_LOADING": True
one can avoid having charts replaced by the login icon when charts are not in the current view.
This is useful to export all the charts of a dashboard to a pdf file.
TESTING INSTRUCTIONS
after having set the feature flag DASHBOARD_DISABLE_LOADING, see in the DOM that charts don't get replaced by the "loading" img upon scrolling the page.
Fixes #27532