Add visualization to Dashboard without saving - prototype #59645
Labels
dev
Feature:Dashboard
Dashboard related features
roadmap
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Context
When adding a visualization to the dashboard, we'd like to hide this visualization from the end user. From the end user perspective, this visualization doesn't exist in the Visualize app, but only in the context of the dashboard.
Rationale
The current way of adding visualizations to the dashboard is very cumbersome. the users need to create the visualization, name it, save it and then add it to the dashboard. we'd like to remove the last two steps from the end user. from user's point of view, they will be creating the visualization for the dashboard and that's it. we will still save it in the background with some autogenerated title (for now), but as far as the end user is concerned, this doesn't exist outside of the dashboard. if they delete it, yes, they'll need to recreate it. existing visualizations shouldn't be affected, no need to hide them.
Implementation Options
Option 1: visible flag on saved object
PR here: #59645
This is a pretty simple implementation except that it's not what we want in the long run.
Cons:
Option 2: Embeddables by value (#52682)
This is the implementation we want in the long run. Implementation steps:
EmbeddableOutput
interface and each implementation having to opt in to that. This is already needed for Canvas workpad exports to include all references.Anyone on Kibana App that might write a saved object migration needs to be aware that they will have to add this manually to the embeddable until we come up with a better generic system.
The text was updated successfully, but these errors were encountered: