-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Dashboard] Pinned filters are lost when navigating to dashboard through URL #139500
Comments
Pinging @elastic/kibana-presentation (Team:Presentation) |
@Heenawter Thank you for bringing this up, because it has caused problems in the past and will continue to do so until it's resolved. It's important to note that while using Markdown links like this is common, it isn't exactly well supported. Users can work around this issue by removing the Okay, so what is causing this:
How can we fix it?
|
@ThomThomson thank you for the explanation. I'm afraid even if we do 1 we will still get this issue in the future since some users will still use Markdown. Number 2 seems to overcomplicate the sharing feature, adding another option will add cognitive load and complexity for users. Isn't there a 3rd way of fixing it just by overwriting the original global state with the pinned filters? |
As far as I'm aware, the snapshot share is mostly used to show someone else the exact view that you have on a dashboard, including all filters, pinned or unpinned. If we make pinned filters on the destination always overwrite the pinned filters that are present in the URL being opened it would break that behaviour. @cqliu1 , @Heenawter and I are discussing an approach where we can replace the In short, we will include pieces of state in the URL only if they have changed since the last time the dashboard was saved. That includes pinned filters - if no pinned filters are different, then pinned filters will not be included in the URL, and opening the URL will inherit any pinned filters that are present. |
In looking into this issue again, it seems like even our fix that makes snapshot URLs avoid adding That said, I have reprioritized this to In terms of fixing this problem, I don't think it would actually be done on the dashboard side, it would involve changing the unified search bar's global state mechanism to allow partial overwriting of the state. Considering the low usage of the pinned filters setting and the complexity of the fix, I wouldn't recommend fixing this at the moment. @stratoula for visibility. |
Closing this for the time being as it is unlikely to be prioritized from the Visualizations side, and we're working on making markdown navigation obsolete with the Navigation Embeddable. |
Kibana version: 8.2
Steps to reproduce:
Expected behaviour:
Pinned filters should persist when navigating to another dashboard via URL, especially if we plan to make pinning the filters the new default behaviour.
Video:
Screen.Recording.2022-08-25.at.11.10.04.AM.mov
The text was updated successfully, but these errors were encountered: