You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contentful: Migrate away from legacy Compose (#12133)
* Add set of Contentful-related migrations that migrate us away from the
"Legacy Compose" pattern. This is based on
https://www.contentful.com/developers/docs/compose/upgrade-to-customizable-compose-content-model/
plus investigations by @maureenlholland.
The migrations are kept separate so they can be applied individually and
progress monitored. Also, it makes sense to 'commit' each step separately,
rather than risk locking/race issues with the Contentful API's datastore.
(This is an assumption on my part - maybe we _could_ do all this in one go.)
First one: Adds new fields to any page type that previously used Legacy Compose
(In our case that's just the pagePageResourceCenter content type.)
Second one: Populates data, drawing from the Compose:Page entry and setting it
on the pagePageResourceCenter entries.
Third one: cleanup, unpublishing and deleting the Compose:Page entries and then
removing it as a content type entirely
* Update backend Python code to match updated page Schema now we have dropped legacy Compose
Note that the Connect:Homepage approach still leaves us some niggles that
we should ideally get past soon, too
* Improve ordering of fields for pagePageResourceCenter via Contentful migration
Example of it running:
Update Content Type pagePageResourceCenter
Move field title after field name
Move field slug after field title
Move field seo after field slug
Publish Content Type pagePageResourceCenter
Update Content Type pagePageResourceCenter
Migration successful
* Add ADR for how we're handling Contentful migrations
* Update README for Contentful migrations approach
* Update README and ADR with typo fixes
* Typo fixups, following code review
* Add Contentful migration to make Title and Slug on Resource Center pages required
* Add Contentful migration to force-publish all Resource Center pages
0 commit comments