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): Don't allow to add a duplicated saved metric to controls #12657
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12657 +/- ##
==========================================
- Coverage 66.85% 57.09% -9.77%
==========================================
Files 1018 961 -57
Lines 49776 47001 -2775
Branches 4869 4383 -486
==========================================
- Hits 33280 26834 -6446
- Misses 16373 20167 +3794
+ Partials 123 0 -123
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
tested manually - looks fine. 🟢
Observed: All chosen Metrics are not set anymore |
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
SUMMARY
When the same saved metric is added twice to controls, the copies are indistinguishable - when the user tries to edit one saved metric, both are getting edited. This PR disables the possibility of adding the same saved metric more than once by removing options from metrics popover
Fixes #12611
Closes #12611
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Nagranie.z.ekranu.2021-01-21.o.13.48.19.mov
TEST PLAN
ADDITIONAL INFORMATION
CC: @junlincc @villebro @john-bodley @ktmud @adam-stasiak
This PR replaces #12619