-
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(filters): Adds a fix for saving time range adhoc_filters #30581
fix(filters): Adds a fix for saving time range adhoc_filters #30581
Conversation
…aveModalActions.ts
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.
@ObservabilityTeam could you fill the PR template with a proper description? Can you also add tests for the fix? |
Yes, it will be looked into soon. |
I have added a test for the fix. The PR description has also been updated. Please let me know if you require anything else, thanks. |
Thank you for the fix @ObservabilityTeam |
Co-authored-by: Muhammad Musfir <[email protected]> (cherry picked from commit 2c3ba95)
Co-authored-by: Muhammad Musfir <[email protected]>
…aveModalActions.ts
SUMMARY
The bug occurs when you have a mixed time series chart inside a dashboard and the time range filter from the dashboard does not apply to both queries of the mixed time series chart. If you compare the changes, the previous code would only take care of the adhoc_filters key. The changes make sure that all the adhoc filters keys of the regex /^adhoc_filters/ receive the adhoc time range filter. In case of mixed time series there are two keys namely, adhoc_filters and adhoc_filters_b.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
For manual testing, here is the link of the issue with reproduction steps. You can verify the fix by following them.
ADDITIONAL INFORMATION