-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat(insights): keep configuration when navigating between insights #17156
Conversation
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
# Conflicts: # playwright/e2e-vrt/scenes-app/insights.spec.ts-snapshots/annotations-popover-displays-correctly-1-chromium-linux.png
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
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.
I like the approach here. Just found one bug: The configuration is kept as expected when a saved insight is loaded and immediately switched to a different type – but it's not kept when I first load the saved insights page and get to that same insight from there.
1f7575e
to
14a558f
Compare
Awesome catches @Twixes, thanks for the thorough look!
This is because the There'd be an alternative approach that removes the problematic code altogether, simplifying a bit what happens when loading an insight. I've been trying it out here #18346, but am a bit worried about unintended effects of this. |
1304ed0
to
6171a81
Compare
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
Problem
Users want to switch from one query to another while keeping relevant configuration.
Changes
This PR re-adds said functionality.
(Potential) Follow-ups
In the same spirit retentionFilter.target_entity and returning_entity should not have an order property.
How did you test this code?
Added tests and locally, with 👀