-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Embeddables Rebuild] Create & copy panels with runtime state #188039
[Embeddables Rebuild] Create & copy panels with runtime state #188039
Conversation
/ci |
/ci |
…eateAndCopyWithRuntimeState' into reactEmbeddables/createAndCopyWithRuntimeState
/ci |
@elasticmachine merge upstream |
/ci |
Pinging @elastic/kibana-presentation (Team:Presentation) |
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.
lgtm!
just added one nit.
); | ||
const linksToSave: Link[] | undefined = state.links | ||
?.map(({ title, description, error, ...linkToSave }) => linkToSave) | ||
?.map( |
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.
Can we add a comment why we're doing this? Maybe something like this?
?.map( | |
// Remove any properties with null values that may have been serialized when backing up runtimeState | |
?.map( |
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.
Good call, added in b687476
…eateAndCopyWithRuntimeState' into reactEmbeddables/createAndCopyWithRuntimeState
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
cc @ThomThomson |
Summary
Expands the work done in #186052 to make the new Embeddable framework use runtime state for creating new panels, and for passing panel state around in the state transfer service (copy to Dashboard etc).
Now, only loading from a Dashboard saved object should result in State that needs to be deserialized.