The upgrade involves running migration scripts which removes _lang field and creates a new field lang with that of the _lang value. Also for each document that has more than one language version , it creates another new document that saves the version information.
While these scripts are running, we should have content freeze as well as code freeze to main. We shall do the upgrade one dataset at a time.
Plan :
The day before migration, communicate to the users that there is a content freeze.
On the day of migration, take the backup of the dataset and follow the steps below.
Run the migration script for creating metadata first followed by the renaming lang field. [Production breaks for other language version]
Merge the PR to main, so studio and web is deployed to preprod.
Verify that everything is working fine in preprod.
Deploy to production only for the current dataset.
Modify the _lang field in the webhook. (if global )
Add the webhooks for firstPublishedAt patch.
If the migration is a failure, use the backup and restore it and then rollback studio and web to previous version.
Repeat for other datasets:
Follow content freeze.
Take the backup of the dataset.
Run the migration script for creating metadata first followed by the renaming lang field. [Production breaks for other language version]
Manually trigger deploy to preprod, to ensure static pages are built correctly.
Verify everything is working fine in prod.
Deploy to production only for the current dataset.
Modify the _lang field in the webhook. (if global)
Add the webhooks for firstPublishedAt patch.
If the migration is a failure, use the backup and restore it and then rollback studio and web to previous version.
The upgrade involves running migration scripts which removes _lang field and creates a new field lang with that of the _lang value. Also for each document that has more than one language version , it creates another new document that saves the version information.
While these scripts are running, we should have content freeze as well as code freeze to main. We shall do the upgrade one dataset at a time.
Plan :
If the migration is a failure, use the backup and restore it and then rollback studio and web to previous version.
Repeat for other datasets:
If the migration is a failure, use the backup and restore it and then rollback studio and web to previous version.