Description
openedon Oct 9, 2023
As a precursor to #167901, we think it might be best to make Lens visualizations shareable across spaces. The @elastic/kibana-presentation team would like to help with this so we can get closer to Shareable Dashboards.
Lens was made "share-capable" in 8.0. To make Lens completely "shareable" we need to complete the steps in Phase 2 of the "Sharing saved objects" documentation.
However, there are a few issues not covered by the documentation.
Related objects such as data views and annotation layers are automatically shared to other spaces when sharing a Lens visualization from the Saved Objects management. However, a user can still change or add a related object (data view, for example) to an existing Lens visualization where the data view is not available in the other spaces. We have a similar issue for dashboards.
I think, ideally, we would warn the user immediately if the related object they are adding is not available in other spaces.
For data views, perhaps we prepend a warning icon to the options in the Data View picker when the data view is not shared? Or disable the option completely? @elastic/kibana-design
For annotations that are added from the library we may need a similar warning icon or disable unshared annotations.
@elastic/kibana-visualizations Are there other related objects in Lens besides Annotations and Data views that we need to consider?