Page MenuHomePhabricator

Moving a translatable page makes all translation units no longer outdated
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Move a translatable page that has at least one outdated translation unit (this happened on MediaWiki.org when I moved https://www.mediawiki.org/wiki/Wikia to https://www.mediawiki.org/wiki/Fandom)

Actual Results:

All previously-outdated translations are no longer marked as outdated. For example, see https://www.mediawiki.org/w/index.php?title=Fandom/ru&diff=prev&oldid=4418282

Expected Results:

Any translation units that were outdated before making the move stay outdated.

Outcome

Information about translation status is no longer lost during a move of a translatable page.

Event Timeline

Nikerabbit subscribed.

If you look at the subsequent diffs, it's okay: https://www.mediawiki.org/w/index.php?title=Fandom/ru&type=revision&diff=4419350&oldid=4188098&diffmode=source

The issue is that we forgot to add moving & deletion handling of the metadata key that controls this behavior.

Change 666357 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Fix metadata handling for translatable page moves and deletions

https://gerrit.wikimedia.org/r/666357

Nikerabbit triaged this task as Medium priority.

Simple fix, related to on going work.

Change 666357 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Fix metadata handling for translatable page moves and deletions

https://gerrit.wikimedia.org/r/666357

Noted in the code review: the patch above does not fix this problem. Further investigation and changes are needed.

Change 670826 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/Translate@master] Move copy selected revtags to the new revision on move

https://gerrit.wikimedia.org/r/670826

Change 670826 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Copy selected revtags for a new revisions with unchanged content

https://gerrit.wikimedia.org/r/670826

Works as expected on translatewiki.net. Should be confirmed on production as well to be sure.

Nikerabbit updated the task description. (Show Details)