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

feat: add PB page migration #4471

Closed
wants to merge 2 commits into from
Closed

Conversation

Pavel910
Copy link
Collaborator

@Pavel910 Pavel910 commented Jan 3, 2025

Changes

This PR adds a PB Pages migration, which moves page attributes from the root of the dynamo entity to the data envelope. This makes adding new attributes much easier, and will not require updates to the Entity definition in the future.

In the storage operations, all actions performed against Dynamo DB now include a compatibility layer, which ensures that the data is written to both the root of the record and the new data attribute. Once we get to 5.43., this compatibility layer can be removed.

TODO: PB Blocks migration to achieve the same goal.

How Has This Been Tested?

Jest tests and manually.

@Pavel910 Pavel910 self-assigned this Jan 3, 2025
@Pavel910 Pavel910 added this to the 5.42.0 milestone Jan 3, 2025
@Pavel910
Copy link
Collaborator Author

Pavel910 commented Jan 7, 2025

I decided to not go through with this PR, as in some mid-term future we want to migrate Page Builder to use CMS as a storage layer, so this migration is just a waste of time and an unnecessary risk (no matter how low the risk is).

@Pavel910 Pavel910 closed this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant