-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 bug where error at import dashboard fails to show toast in "welcome" app #9714
fix bug where error at import dashboard fails to show toast in "welcome" app #9714
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.
some comments, but a higher level question too: it seems like we'd want to show these flash messages (if they exist) on any page. Is there a way we can raise this logic up to the App.jsx level instead so that it applies everywhere instead of only on the DashboardList?
Codecov Report
@@ Coverage Diff @@
## master #9714 +/- ##
==========================================
- Coverage 70.78% 70.54% -0.25%
==========================================
Files 586 587 +1
Lines 30433 30449 +16
Branches 3117 3119 +2
==========================================
- Hits 21543 21481 -62
- Misses 8776 8847 +71
- Partials 114 121 +7
Continue to review full report at Codecov.
|
02cc383
to
fbc4496
Compare
… phillip/SO-384-flash-messages
superset-frontend/spec/javascripts/views/dashboardList/DashboardList_spec.jsx
Outdated
Show resolved
Hide resolved
… phillip/SO-384-flash-messages
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.
lgtm with the exception of a couple remaining nits. Thanks for the contribution!
CATEGORY
Choose one
SUMMARY
The toast messages weren't working when there was an error redirect from the import template to the react dashboard component. To fix this common data had to be passed into the components the app level to show toast or not.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
To test out go to import and try to upload a non dashboard. You will be redirected to page to dashboardlist with the correct toast.
ADDITIONAL INFORMATION
REVIEWERS