Page MenuHomePhabricator

When transcluded page is deleted, parent page does not update
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Steps to Reproduce:

Two translatable pages: Base Page, Child Page (Transcluded in Base Page)
Both pages are marked for translation.
Both pages are translated to the language - fr

  1. Load the Base Page/fr. You should see the Child Page/fr transcluded
  2. Delete Child Page/fr
  3. Refresh Base Page/fr

Actual Results:

Base Page/fr still shows the deleted Child Page/fr

Expected Results:

Base Page/fr still should show the source language (eg: Child Page/en)

Related to: T47096: Add a way to transclude template or other page in the correct language

Event Timeline

Change 969970 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] page: Run HTMLCacheUpdateJob on delete for pages transclude the page

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

The provided patch set only fixed the issue when the page transclusion is done via {{:Child page}} or otherwise tracked in the templatelinks table, not sure about the example here.

It seems the wikitext is {{:Child page{{#translation:}}}} with the parser function provided by the translate extension, that should work after merge.

Change 969970 merged by jenkins-bot:

[mediawiki/core@master] page: Run HTMLCacheUpdateJob on delete for pages transclude the page

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

Umherirrender subscribed.

Not sure if this should be retested in the context of MediaWiki-extensions-Translate or can be seen as fixed.

abi_ changed the task status from Open to In Progress.Nov 20 2023, 10:26 AM
abi_ updated Other Assignee, added: abi_.

Appears to work well. I'll test this on translatewiki.net before resolving.

abi_ removed abi_ as the assignee of this task.Nov 20 2023, 10:26 AM
abi_ updated Other Assignee, added: Umherirrender; removed: abi_.

Tested on translatewiki.net. Marking as resolved.