[embeddable] Update naming of functions to make state ownership clearer#270270
Open
nreese wants to merge 9 commits into
Open
[embeddable] Update naming of functions to make state ownership clearer#270270nreese wants to merge 9 commits into
nreese wants to merge 9 commits into
Conversation
fa8c828 to
8aa8169
Compare
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
1 similar comment
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
Contributor
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]Async chunks
Page load bundle
History
|
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
AlexGPlay
approved these changes
May 22, 2026
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
adcoelho
approved these changes
May 22, 2026
markov00
approved these changes
May 22, 2026
kowalczyk-krzysztof
approved these changes
May 22, 2026
rbrtj
approved these changes
May 25, 2026
ThomThomson
approved these changes
May 25, 2026
Contributor
ThomThomson
left a comment
There was a problem hiding this comment.
Renaming & differences from original PR LGTM!
Probably should have someone else from presentation team review, as I may have too much context here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The embeddable system was originally designed to only support resetting embeddable state from resetting unsaved changes. With current "dashboard in chat" and future undo/redo features, the embeddable system needs to support resetting embeddable state from more than just resetting unsaved changes. This PR migrates names away from unsaved changes nomenclature to more generic names.
Changes
initializeUnsavedChanges->initializeStateApiinitializeStateApireturn type changed to includeserializeStateonReset->applySerializedStateapplySerializedStateis passedstateinstead ofstate | undefined