equinor/energyvision

Production release of i18n plugin

Closed this issue · 0 comments

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 :

  1. The day before migration, communicate to the users that there is a content freeze.
  2. On the day of migration, take the backup of the dataset and follow the steps below.
  3. Run the migration script for creating metadata first followed by the renaming lang field. [Production breaks for other language version]
  4. Merge the PR to main, so studio and web is deployed to preprod.
  5. Verify that everything is working fine in preprod.
  6. Deploy to production only for the current dataset.
  7. Modify the _lang field in the webhook. (if global )
  8. 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:

  1. Follow content freeze.
  2. Take the backup of the dataset.
  3. Run the migration script for creating metadata first followed by the renaming lang field. [Production breaks for other language version]
  4. Manually trigger deploy to preprod, to ensure static pages are built correctly.
  5. Verify everything is working fine in prod.
  6. Deploy to production only for the current dataset.
  7. Modify the _lang field in the webhook. (if global)
  8. 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.

Date Dataset Completed
08-07-2024 Poland
09-07-2024 Japan Celticsea
10-07-2024 Argentina Storage Germany
11-07-2024 Gobal secret
12-07-2024 Equinorfondene Southkorea Brazil

Updated Schedule

Date Dataset Completed
30-07-2024 Japan Celticsea
31-07-2024 Argentina Storage Germany
01-08-2024 Equinorfondene Southkorea Brazil
02-08-2024 Global Secret