-
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(empty dashboards): Allow downloading a screenshot of an empty dashboard #30767
fix(empty dashboards): Allow downloading a screenshot of an empty dashboard #30767
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #30767 +/- ##
===========================================
+ Coverage 60.48% 83.91% +23.43%
===========================================
Files 1931 536 -1395
Lines 76236 38921 -37315
Branches 8568 0 -8568
===========================================
- Hits 46114 32662 -13452
+ Misses 28017 6259 -21758
+ 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. |
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.
I did some text enhancements for comments and errors but the general approach looks fine to me. It would be nice to have a better way to differentiate between an empty dashboard (that will never load any charts) and a dashboard that is waiting for chart containers to draw, but I guess this should do fine for now. I tested it locally too. Thanks!
SUMMARY
Check if a dashboard contains charts first, if not don't wait for them to load etc. This fixes the bug where if the dashboard is empty screenshot fails.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION