Skip to content
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

The filters added to the dashboard have been removed from the url #123401

Closed
al-ah opened this issue Jan 19, 2022 · 6 comments
Closed

The filters added to the dashboard have been removed from the url #123401

al-ah opened this issue Jan 19, 2022 · 6 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@al-ah
Copy link

al-ah commented Jan 19, 2022

Kibana version: 7.16.2

Describe the bug:
When you add a filter to the dashboard, that filter no longer exists in the URL and has been removed. See the figure below :
kibana 7 16 2

and its URL:

https://192.168.220.5:5601/app/dashboards#/view/Winlogbeat-Dashboard-ecs?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-30d,to:now))

But in version 7.12 this problem did not exist and the address is as follows:

https://192.168.220.5:5601/app/dashboards#/view/Winlogbeat-Dashboard-ecs?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-30d,to:now))&_a=(description:'Overview%20of%20all%20Windows%20Event%20Logs.',filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:'winlogbeat-*',key:client.ip,negate:!f,params:(query:'127.0.0.1'),type:phrase),query:(match_phrase:(client.ip:'127.0.0.1')))),fullScreenMode:!f,options:(darkTheme:!f),query:(language:kuery,query:''),tags:!(),timeRestore:!f,title:'%5BWinlogbeat%5D%20Overview',viewMode:view)
@al-ah al-ah added the bug Fixes for quality problems that affect the customer experience label Jan 19, 2022
@botelastic botelastic bot added the needs-team Issues missing a team label label Jan 19, 2022
@al-ah
Copy link
Author

al-ah commented Feb 2, 2022

there is no answer ? :(

@stratoula stratoula added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Feb 14, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Feb 14, 2022
@ThomThomson ThomThomson self-assigned this Feb 14, 2022
@ThomThomson ThomThomson added the Feature:Dashboard Dashboard related features label Feb 14, 2022
@ThomThomson
Copy link
Contributor

hi @alah64, the dashboard application state was intentionally removed from the URL in 7.14.0. I am going to close this issue as no specific problem that this causes was mentioned. If you have any specific problems we can re-open this issue to discuss workarounds!

@al-ah
Copy link
Author

al-ah commented Feb 14, 2022

hi @ThomThomson, I imported the dashboards as an iframe in my plugin, and in previous versions I extracted and used the filter changes using the url. What can I do now that this feature has been removed?

Unfortunately, this trend, which has been going on for several years, has been dropped all of a sudden, and this can be frustrating for other developers who write plugins themselves.

@ThomThomson
Copy link
Contributor

That's totally understandable @alah64, we actually added a PR to support a similar use case where a developer was pushing filters into an iframe dashboard via the URL. Your use case seems to be reading updates from the URL instead, but you could potentially work around that by using pinned filters in the iframe dashboard. Pinned filters will always be stored in the URL because they are part of the global state _g instead of the app state _a.

@al-ah
Copy link
Author

al-ah commented Feb 16, 2022

That's totally understandable @alah64, we actually added a PR to support a similar use case where a developer was pushing filters into an iframe dashboard via the URL. Your use case seems to be reading updates from the URL instead, but you could potentially work around that by using pinned filters in the iframe dashboard. Pinned filters will always be stored in the URL because they are part of the global state _g instead of the app state _a.

Thanks for your tips
I hope I can use this method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

No branches or pull requests

4 participants