[Lens] Saved object should register reference to index patterns to keep exports/imports consistent #55906
Labels
Feature:Lens
Feature:Saved Objects
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Related issues:
This has the following parts:
getPersistableState
to return saved objects references as well. The persistable state object shouldn't include any actual saved object ids, only the names referenced in the reference array. E.g.getPersistableState(state: T) => { persistableState: T2, references: SavedObjectReference[]}
initialize
by taking that reference array to put the actual saved object ids back into the state. e.g.initialize(persistedState: T2, references: SavedObjectReference[]) => Promise<T>
toExpression
on them to get the expression.x-pack/plugins/lens/public/editor_frame_service/editor_frame/expression_helpers.ts
contains helpers to piece together the expressiongetPersistableState
function)The text was updated successfully, but these errors were encountered: