[Dashboard First] Add / Unlink Actions Require Specifically Shaped Input #74297
Labels
discuss
Feature:Dashboard
Dashboard related features
Feature:Embedding
Embedding content via iFrame
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Problem:
The add to library action #73899 as it's currently drafted explicitly requires the input to be in the shape:
{ attributes: SavedObjectAttributesType }
Conversely, the unlink from library action will require the input to be shaped like a
SavedObjectEmbeddableInput
. These requirements are too strict, and not well defined.** Possible Solution **
A
byReferenceOrValue
interface could be added which any embeddable which can be 'by reference OR by value' will implement: i.e.This interface would have to provide the ability to:
By creating this interface, the
attribute_service
becomes decoupled from the concept of the by value or by reference embeddable. Embeddables that have input in the specific shape required byattribute_service
, could implement the interface by deferring back to the attribute service. I.eThe text was updated successfully, but these errors were encountered: