-
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
[vega] kibanaOpenDashboard() support #17672
Conversation
💚 Build Succeeded |
💚 Build Succeeded |
7a6bdd1
to
cd28217
Compare
💔 Build Failed |
jenkins, test this |
💔 Build Failed |
💚 Build Succeeded |
💚 Build Succeeded |
💚 Build Succeeded |
e76fb6b
to
20f7183
Compare
💚 Build Succeeded |
💚 Build Succeeded |
💔 Build Failed |
💚 Build Succeeded |
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.
PR looks good to me, but there seem to be some navigation issuesm and I'm not 100% sure if it is related.
I can't seem to back out after navigating.
- Create a vega-visualization, and use it to open a dashboard.
- press back button. it should take you back to the vega-visualization
thoughts?
@thomasneirynck thx for reviewing. I guess you only tested the |
💚 Build Succeeded |
elastic#17210 Testing code (click button) ``` { "$schema": "https://vega.github.io/schema/vega/v3.json", "marks": [ { "name": "myButton", "type": "rect", "encode": { "enter": { "xc": {"signal": "width/2"}, "yc": {"signal": "height/2"}, "width": {"signal": "width*0.8"}, "height": {"signal": "height*0.8"}, "cornerRadius": {"value": 6}, "strokeWidth": {"value": 10} }, "update": { "stroke": {"value": "gray"}, "fill": {"value": "lightgray"} }, "hover": {"fill": {"value": "gray"}} } } ], "signals": [ { "name": "%ADD_FILTER%", "on": [ { "events": "@mybutton:click", "update": "{field: 'SRC', value: 10, operator: 'IS'}" } ] } ] } ``` changed Vega signal to custom func rough draft implementation support timefilter, filter removal use buildQueryFilter wrapper rebase and sync with tooltip func error handling, filters (WIP) console.log to dbg removeFilter manual merge of upstream patch
💚 Build Succeeded |
It seems I forgot to comment on this one. We discussed this internally, and even though we want to have that feature and introduce it at a later time, we decided not to continue working on this Vega specific implementation for now. The reason is, that we currently don't have a proper service to build those URLs and introduce new tech-debts by manually building URLs. We want to have drilldowns also available for all visualizations (see #12560). Once we are further with discussions around drill downs and have a more stable infrastructure for linking to dashboards, we def want to revisit that topic also for Vega (and also check whether or not it needs a custom solution independent from the above drill down solution). |
API:
kibanaOpenDashboard(options)
opens the dashboard with the given dashboard id or title, either in a new window/tab, or in the same one, and optionally preserving or setting new filters and time range.Simple testing code - modify the command and click it.