-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
[explore view] fix: Inline edit chart title cause unintended overwrite original query parameter #8835
[explore view] fix: Inline edit chart title cause unintended overwrite original query parameter #8835
Conversation
…e original query parameter
0a3b74e
to
253c7d9
Compare
}); | ||
// this.props.slice hold the original slice params stored in slices table | ||
this.props.actions | ||
.saveSlice(this.props.slice.form_data, params) |
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.
If I'm understanding the code above this correctly, this will fail on a new slice. But it looks like the new slice case is tested, so maybe the isNewSlice
code isn't necessary?
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.
@suddjian Thanks so much for catching the new slice case! i fixed it and added unit test.
Codecov Report
@@ Coverage Diff @@
## master #8835 +/- ##
==========================================
+ Coverage 58.73% 58.97% +0.24%
==========================================
Files 359 359
Lines 11324 11333 +9
Branches 2779 2787 +8
==========================================
+ Hits 6651 6684 +33
+ Misses 4495 4471 -24
Partials 178 178
Continue to review full report at Codecov.
|
CATEGORY
Choose one
SUMMARY
To reproduce this issue:
Note
reload and redirect
behavior.Expected behavior:
inline edit chart title should only overwrite chart title, should not change original chart with unsaved query parameters.
TEST PLAN
CI and manual test
REVIEWERS
@etr2460 @michellethomas @mistercrunch