equinor / energyvision

Home of the equinor.com website
https://www.equinor.com
MIT License
34 stars 8 forks source link

Upgrade internationalization plugin #1868

Closed fernandolucchesi closed 3 months ago

fernandolucchesi commented 1 year ago

Migration plan

  1. Content freeze for the dataset to be migrated.
  2. Take backup of the dataset.
  3. Push code to production for studio and web. ( At this point both studio and web breaks.)
  4. Run migration script createMetadata.mjs until no documents are found that is not migrated.
  5. Run migration script renameLangField.mjs until no documents are found that is not migrated.
  6. Modify the _lang field in the webhook.
  7. Rebuild web if necessary.
padms commented 1 year ago

Putting on hold, to discuss with sanity to see if there is a way to hide create option with out a language.

padms commented 1 year ago

On hold, because we want to hide the manage translations option

meols commented 10 months ago

@fernandolucchesi @padms - any updates from Sanity on this issue?

padms commented 10 months ago

@fernandolucchesi Should we introduce a new role to make the translations metadata document readonly as suggested here

fernandolucchesi commented 10 months ago

@padms that could work, we would then need to refactor all the custom roles we have and replace the default "Editor" role, since the default one cannot be edited. Afterwards, change the SSO role mapping so people don't need to re-apply on accessIT

image image
BorghildSelle commented 9 months ago

2140 Testing custom role to restrict and have a ticket with sanity regarding delete document when unset translation references

BorghildSelle commented 8 months ago

Have to modify plugin to hide the manage translation button

padms commented 6 months ago

Migration plan

  1. Content freeze for the dataset to be migrated.
  2. Take backup of the dataset.
  3. Push code to production for studio and web. ( At this point both studio and web breaks.)
  4. Run migration script createMetadata.mjs until no documents are found that is not migrated.
  5. Run migration script renameLangField.mjs until no documents are found that is not migrated.
  6. Rebuild web if necessary.
padms commented 6 months ago

@meols This is ready for testing. This upgrade affects all the documents. Hence, every aspect of creating, updating, deleting, duplicating a document and/or it translations has to be tested.

Actions like linking a reference document, allowing same slug etc has to be tested. Algolia indexing, redirects, routes are to be tested. Also, manage translation button is disabled for all roles except admin and developer.

meols commented 5 months ago

Some comments on this - will test further today, but we have more or less completed testing.

padms commented 5 months ago

@meols

meols commented 5 months ago

Thanks Padmaja! I'll do some more testing today. Here is a suggested order of sites to update:

padms commented 5 months ago

@meols Added the flag and the language on the document as well as at the bottom of the document. I am still working on the colors and I haven't figured out the stable fix yet, if its ok, can we take the colors fix in a new card?