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

Preserve filters and other URL attributes when referencing a dashboard by title #24389

Closed
jojoob opened this issue Oct 23, 2018 · 3 comments
Closed
Labels
Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas triage_needed

Comments

@jojoob
Copy link

jojoob commented Oct 23, 2018

I found #14760 as a solution to use the dashboard title to reference to a dashboard via an URL instead of the id. But the redirect that happens then doesn't preserve any additional attributes. I wish that I could reference a dashboard by its name and can use additional URL attributes like for passing a custom filter.

In my use case I have an app that should reference to a dashboard and pass a custom filter that the app adjusts dynamically.
E.g.:
#/dashboards?title=dashboard-title&_g=(refreshInterval:(pause:!t,value:0),time:(from:'2018-10-22T20:00:00',mode:absolute,to:'2018-10-22T22:00:00'))&_a=(description:'',filters:!(('$state':(store:appState),bool:(should:!((term:(source_ip:'1.2.3.4')),(term:(destination_ip:'1.2.3.4')))),meta:(alias:'src+IP:+1.2.3.4',disabled:!f,negate:!f,type:custom))))

With this URL Kibana redirects me to the correct dashboard but forgets about the filter. :(
Using the ID the query works:
#/dashboard/a4cbadd0-d5ec-11e8-9290-9f77ee81db9b?_g=(refreshInterval:(pause:!t,value:0),time:(from:'2018-10-22T20:00:00',mode:absolute,to:'2018-10-22T22:00:00'))&_a=(description:'',filters:!(('$state':(store:appState),bool:(should:!((term:(source_ip:'1.2.3.4')),(term:(destination_ip:'1.2.3.4')))),meta:(alias:'src+IP:+1.2.3.4',disabled:!f,negate:!f,type:custom))))

PS: I know about the solution of custom dashboard IDs (#15023 (comment)). But that's just a workaround and no solution.

@Bargs Bargs added Feature:Dashboard Dashboard related features triage_needed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Oct 25, 2018
@dudicoco
Copy link

dudicoco commented Aug 9, 2020

What is the status of this issue?

@dudicoco
Copy link

dudicoco commented Aug 9, 2020

@stacey-gammon as the author of #14760 perhaps you can shed some light on this issue?

@timroes timroes added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Oct 7, 2020
@Heenawter
Copy link
Contributor

This is not relevant anymore because we no longer pass state via URL for dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dashboard Dashboard related features Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas triage_needed
Projects
None yet
Development

No branches or pull requests

5 participants