-
Notifications
You must be signed in to change notification settings - Fork 14k
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(charts): Time range filters are not being applied to charts that were overwritten #23589
fix(charts): Time range filters are not being applied to charts that were overwritten #23589
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23589 +/- ##
=======================================
Coverage 67.72% 67.73%
=======================================
Files 1916 1916
Lines 74029 74056 +27
Branches 8040 8040
=======================================
+ Hits 50135 50159 +24
- Misses 21846 21849 +3
Partials 2048 2048
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 |
4ca413c
to
252ff04
Compare
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!
/testenv up FEATURE_GENERIC_CHART_AXES=true |
@geido Ephemeral environment spinning up at http://34.211.159.8:8080. Credentials are |
Ephemeral environment shutdown and build artifacts deleted. |
…ts that were overwritten (apache#23589)" This reverts commit 1f3774d.
…ts that were overwritten (apache#23589)" This reverts commit 1f3774d.
@Antonio-RiveroMartnez There's a regression from this change. adhoc_filters.regression.mov |
Hey @justinpark thanks for letting me know. I will have a look as soon as possible 😎 |
SUMMARY
When
GENERIC_CHART_AXES
FF is on and we overwrite a chart, any filter coming from the dashboard is not saved (it gets removed since its marked asisExtra
). However, removing such filter doesn't have to mean we delete the original temporal filter if any, otherwise the dashboard wont be able to filter the chart again.This PR keeps the original
adhoc_filters
from the slice so when calling the PUT API it doesn't get removed. So any call toapi/v1/dashboard/{db_id}/charts
is consistent even after you overwrite the chart.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
TESTING INSTRUCTIONS
GENERIC_CHART_AXES
FF is ONADDITIONAL INFORMATION
GENERIC_CHART_AXES