MozillaFoundation / foundation.mozilla.org

Mozilla Foundation website
https://foundation.mozilla.org
Mozilla Public License 2.0
389 stars 153 forks source link

Can’t edit some pages in the Common Voice minisite #9770

Closed TheoChevalier closed 1 year ago

TheoChevalier commented 2 years ago

We currently can’t edit the following pages:

Community, mobilisation & governance (live) Platform and Dataset (live) Blog (live)

wagtail-localize throws wagtail_localize.models.TranslationSource.MultipleObjectsReturned: get() returned more than one TranslationSource -- it returned 2!

Here’s what happened and what I’ve done

I was starting translation of these pages, but I didn’t realize I wasn’t looking at the English version of the tree: https://foundation.mozilla.org/cms/pages/19077/

So I started the translation FROM the French alias page, in all locales. Once I realized my mistake, I used the "Convert to alias page" button from the translated pages except for the French one because the option wasn’t available. So I had to delete the French (to French) translation, then correctly start the French translation from the English page.

It looks like deleting the French page left some kind of reference in the DB, and now we have two "translation source", I suppose a "French to French", and a "English to French".

What’s actionable in this ticket:

TheoChevalier commented 1 year ago

This has been fixed by the Wagtail 3.0 upgrade