-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[maps] fix Dashboards with by-value maps are broken when copied to new space #125599
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
Pinging @elastic/kibana-presentation (Team:Presentation) |
Removing @elastic/kibana-presentation request for review. @ThomThomson chatted offline and suggested moving dashboard migrations to maps embeddable migrations. Because of this, there is no need to change any dashboard code. |
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.
I tested this locally in various configurations (single import, first data view import, then maps import, default space / custom space) it works fine everywhere from what I can tell.
I’m not sure whether the 7.17.1 migration is necessary or not - it depends on whether an 8.0.1 cluster upgrading from 7.17.1 will first run all registered 8.0.1 migrations or whether it will first change conflicting ids in all saved objects and then run the migrations. @jportner can you answer this question?
I'm not certain about embeddable migrations -- So if you have these migrations defined, including the conversion for 8.0: 7.17.1 (migration) and you upgrade Kibana from 7.16 to 8.1, all five transformations will be applied in order. |
@jportner Just to make sure, conversion means renaming of ids in the references array, right? In that case I think we should keep the migration in 7.17. because otherwise this might happen: |
@elasticmachine merge upstream |
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!
tested copying new and existing dashboards from this branch as well as from an 8.0 instance.
💚 Build SucceededMetrics [docs]Module Count
Page load bundle
History
To update your PR or re-run it, just comment with: |
…w space (elastic#125599) * extract and inject * add unit tests * simplify tests * add extract and inject to server map embeddable * add dashboard migration * do not add embeddable prefix * eslint * remove embeddable migration from dashboard and put in maps * clean up comment * fix jest test * remove 7.17 migration and harden inject method * clean-up test * clean up comment grammer Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 485ab50)
💔 Some backports could not be created
How to fixRe-run the backport manually:
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
8.0.1 #125887 |
…w space (#125599) (#125886) * extract and inject * add unit tests * simplify tests * add extract and inject to server map embeddable * add dashboard migration * do not add embeddable prefix * eslint * remove embeddable migration from dashboard and put in maps * clean up comment * fix jest test * remove 7.17 migration and harden inject method * clean-up test * clean up comment grammer Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 485ab50) Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Closes #125595 and #124976
Changes
Test - newly created dashboards
Test - existing by-value dashboards.