Page MenuHomePhabricator

After mass deletion of translation pages, Translate extension creates pages with edit summary "Mass deletion of pages added by X"
Closed, ResolvedPublic4 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Open Special:Contributions of a user
  • By clicking "mass delete" link, open Special:Nuke
  • Mass-delete pages (including translation pages)

What happens?:
The Translate extension creates pages with edit summary "Mass deletion of pages added by X".
Examples:
https://www.mediawiki.org/wiki/Special:Log?type=create&user=Clump&wpdate=2021-09-24&limit=500

What should have happened instead?:
Mass-deleted pages should be deleted.

Event Timeline

Tacsipacsi subscribed.

In the hope that someone will soon delete the untranslated pages, I changed the link to point to the page creation log, which contains entries for deleted pages as well.

I am wondering why those translation pages were not created when the bad translations were made? Or were they but then deleted, how? Could someone with access to deleted revisions help to puzzle this together? Does Special:Nuke allow deleting the translation pages as well the translation unit pages?

My guess is that Special:Nuke allows deleting translation pages too (there is no check to prevent it, other than the web UI which offers to do it in a better way). If translation page is deleted before the translation unit page, then the deletion of the unit page triggers rebuild of the translation page.

If that's true, this is not a regression, just a long-standing bug.

Change 724010 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[translatewiki@master] Remove English from disabled target language list

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

Special:Nuke allows deletion of all types of pages including translatable page, translation pages and unit pages.

I was only able to reproduce this bug by first nuking the translation page, and then deleting the translation unit pages.

Special:Nuke lists pages in descending order of creation time.
Translation page will be deleted before some translation units.
After deleting translation unit #1, translation page will be re-created.

  • translation unit #N
  • ...
  • translation unit #3
  • Translation Page
  • translation unit #2
  • translation unit #1

Screenshot of Special:Nuke on MediaWiki.org

MassDelete.png (520×793 px, 12 KB)

Pginer-WMF triaged this task as Medium priority.Oct 4 2021, 11:55 AM
Nikerabbit set the point value for this task to 4.Mar 31 2022, 11:11 AM

Change 799383 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] Avoid updating translation pages on bulk deletion of translation units

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

Change 799383 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Avoid recreation of translation pages on bulk deletion of pages

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

The fix was deployed and tested on translatewiki.net. After bulk deletion of a translatable page, no translations were re-created.