Skip to content
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] Store map saved objects state in unmapped fields #173528

Closed
wants to merge 4 commits into from

Conversation

nickpeihl
Copy link
Member

@nickpeihl nickpeihl commented Dec 18, 2023

Summary

This is a PoC/WIP to resolve #167834 using modelVersions and backwards compatibility. This was a SpaceTime project and remains unfinished.

The maps saved objects are migrated so that the mapStateJSON, uiStateJSON, and layerListJSON are de-stringified and stored as native objects in new unmapped fields (mapState, uiState, and layerList). The existing *JSON fields remain in the saved object, but could be deprecated/removed in a later modelVersion.

Unfortunately, I did not have time to work on embeddable migrations. So by-value map embeddables in Dashboards are not de-stringified. Updating the embeddable migrations to support zero-downtime migrations is a larger effort that may need to be implemented separately.

@nickpeihl nickpeihl added the Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas label Dec 18, 2023
@nickpeihl nickpeihl changed the title [Maps] Store map saved objects meta as JSON [Maps] Store map saved objects data as JSON Dec 18, 2023
@nickpeihl nickpeihl changed the title [Maps] Store map saved objects data as JSON [Maps] Store map saved objects state as JSON Dec 18, 2023
@nickpeihl nickpeihl changed the title [Maps] Store map saved objects state as JSON [Maps] Store map saved objects state in unmapped fields Dec 18, 2023
@nickpeihl nickpeihl closed this Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Maps] Do not use stringified json to store state in Saved Object
1 participant