-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[dashboard] Upgraded dashboard with image embeddable shows "unsaved changes" badge when opening editor #183524
Labels
bug
Fixes for quality problems that affect the customer experience
project:embeddableRebuild
regression
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Comments
Pinging @elastic/kibana-presentation (Team:Presentation) |
blocking #178158 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this issue
May 15, 2024
…ed changes' badge when opening editor (elastic#183539) Fixes elastic#183524 --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 076e32d)
kibanamachine
added a commit
that referenced
this issue
May 15, 2024
… 'unsaved changes' badge when opening editor (#183539) (#183557) # Backport This will backport the following commits from `main` to `8.14`: - [[dashboard] fix Upgraded dashboard with image embeddable shows 'unsaved changes' badge when opening editor (#183539)](#183539) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Nathan Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2024-05-15T19:22:24Z","message":"[dashboard] fix Upgraded dashboard with image embeddable shows 'unsaved changes' badge when opening editor (#183539)\n\nFixes #183524: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"076e32d79e2c05fc4d7fe34eee83ff801255f21b","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","project:embeddableRebuild","v8.14.0","v8.15.0"],"title":"[dashboard] fix Upgraded dashboard with image embeddable shows 'unsaved changes' badge when opening editor","number":183539,"url":"#183539 fix Upgraded dashboard with image embeddable shows 'unsaved changes' badge when opening editor (#183539)\n\nFixes #183524: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"076e32d79e2c05fc4d7fe34eee83ff801255f21b"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"#183539 fix Upgraded dashboard with image embeddable shows 'unsaved changes' badge when opening editor (#183539)\n\nFixes #183524: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>","sha":"076e32d79e2c05fc4d7fe34eee83ff801255f21b"}}]}] BACKPORT--> Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Fixes for quality problems that affect the customer experience
project:embeddableRebuild
regression
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
Steps to view issue
The problem
Dashboard stores
![Screenshot 2024-05-15 at 7 57 27 AM](https://private-user-images.githubusercontent.com/373691/330836817-430ddc05-e37c-4a51-82a4-400cdf250c3f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAxODk0MDMsIm5iZiI6MTcyMDE4OTEwMywicGF0aCI6Ii8zNzM2OTEvMzMwODM2ODE3LTQzMGRkYzA1LWUzN2MtNGE1MS04MmE0LTQwMGNkZjI1MGMzZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwNVQxNDE4MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01Y2U5Y2E1MzViNmQ0ODU1NTI0YWU4NDFjM2Q3MDhkMjI2YmEwYWRhZmE0YjA5MjIwYzYyYmFmODgyZWEzN2IwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.WCvjX6tcSG6TCpj9G2CKvFgybgH9UmrJEP4b3K7Lk1Q)
enhancements
as{}
prior to 8.14.0. You can see this in the screen shot taken from cloud 8.12.2 instanceThe problem arises with how dynamic actions initializes state and comparators. In the code below, state is initialized to
{ dynamicActions: { events: [] }
when enhancements is an empty object.https://github.com/elastic/kibana/blob/main/x-pack/plugins/embeddable_enhanced/public/plugin.ts#L150
Then, the comparator compares the original state,
{}
, with the current state{ dynamicActions: { events: [] }
and flags the state as changed.https://github.com/elastic/kibana/blob/main/x-pack/plugins/embeddable_enhanced/public/plugin.ts#L175
The text was updated successfully, but these errors were encountered: