-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: stop endless loading when dataset no longer exist #16511
fix: stop endless loading when dataset no longer exist #16511
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16511 +/- ##
==========================================
- Coverage 76.63% 76.63% -0.01%
==========================================
Files 1002 1002
Lines 53680 53684 +4
Branches 6852 6855 +3
==========================================
+ Hits 41138 41139 +1
- Misses 12305 12308 +3
Partials 237 237
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 the fix!
/testenv up |
@pkdotson Ephemeral environment spinning up at http://54.212.36.232:8080. Credentials are |
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 the fix! Code LGTM.
It might at some point be worth considering a UX enhancement to this, where we surface the error more explicitly (as opposed to an "Unexpected Error" that you have to click), or potentially pop a page-level error (rather than only chart-level errors) to alert users to the problem. This is a heck of an improvement, though!
Ephemeral environment shutdown and build artifacts deleted. |
* initial fix * add const * add translate
* initial fix * add const * add translate
SUMMARY
This pr stops the endless loading in the dashboards when a dataset no longer exists and returns proper error info to the user.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
Screen.Recording.2021-08-30.at.10.19.09.AM.mov
after
Screen.Recording.2021-08-30.at.10.21.47.AM.mov
TESTING INSTRUCTIONS
Delete a dataset that has associated chart in a a dashboard.
Go to the dashboard and ensure that the charts do no endlessly load.
ADDITIONAL INFORMATION