Page MenuHomePhabricator

No indication that the associated talk page has been deleted or undeleted via API
Open, Needs TriagePublicBUG REPORT

Description

What is the problem?

When we delete or undelete a page and its associated talk page via the API (using the deletetalk or undeletetalk parameters) we only mention that the page was deleted/undeleted, not its associated talk page.

Moreover, when undeleting a page we report the number of revisions that were undeleted for the content page. However, it is actually the sum of the content page and its associated talk page, which might be misleading.

Steps to reproduce problem
  1. https://en.wikipedia.beta.wmflabs.org/wiki/Special:ApiSandbox#action=delete&format=json&title=Selenium_Echo_link_test_0.877682400562503&deletetalk=1
  2. Submit

Observed result:

{
    "delete": {
        "title": "Selenium Echo link test 0.877682400562503",
        "reason": "",
        "logid": 334567
    }
}

Expected result: It should probably mention that both Selenium_Echo_link_test_0.877682400562503 and Talk:Selenium_Echo_link_test_0.877682400562503 have been deleted

  1. https://en.wikipedia.beta.wmflabs.org/wiki/Special:ApiSandbox#action=undelete&format=json&title=Selenium_Echo_link_test_0.877682400562503&undeletetalk=1
  2. Submit

Observed result:

{
    "undelete": {
        "title": "Selenium Echo link test 0.877682400562503",
        "revisions": 2,
        "fileversions": 0,
        "reason": ""
    }
}

Expected result: It should probably mention both pages which have been undeleted. Also notice that, even though Selenium Echo link test 0.877682400562503 has only one revisions we report 2, because Talk:Selenium Echo link test 0.877682400562503 has 1 revision also.

Environment

Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.39.0-alpha (6876de7) 06:15, 6 April 2022.