-
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(explore): Prevent infinite rerenders when editing dataset #22219
fix(explore): Prevent infinite rerenders when editing dataset #22219
Conversation
/testenv up |
@kgabryje Container image not yet published for this PR. Please try again when build is complete. |
@kgabryje Ephemeral environment creation failed. Please check the Actions logs for details. |
Codecov Report
@@ Coverage Diff @@
## master #22219 +/- ##
=======================================
Coverage 66.92% 66.92%
=======================================
Files 1835 1835
Lines 69988 69992 +4
Branches 7612 7614 +2
=======================================
+ Hits 46839 46842 +3
- Misses 21183 21184 +1
Partials 1966 1966
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Tested locally. It appears the issue is fixed. Thanks!
🏷️ preset:2022.47 |
SUMMARY
In some scenarios, editing dataset and then running chart query might lead to an infinite rerender loop (happens inconsistently) and Explore page crashing. Investigation proved that it's related to removing warnings about changed dataset in controls after a successful query. This PR makes updating Redux state conditional in order to run actions dispatch only when necessary and prevent infinite state updates.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION