Jump to content

User:DWalden (WMF)/(Un)delete associated talk page/20220225

From mediawiki.org

Testing only on the API for now.

Regression testing

[edit]

Just delete and restore some pages without passing the new parameter:

Testing the new parameter

[edit]

Delete content page while passing the new parameter (deletetalk):

Passing the param when there is no talk page, example response from API:

{
    "warnings": {
        "delete": {
            "*": "Cannot delete a non-existing associated talk page."
        }
    },
    "delete": {
        "title": "Conflict-title-0.26559895660280075-I\u00f1t\u00ebrn\u00e2ti\u00f4n\u00e0liz\u00e6ti\u00f8n",
        "reason": "",
        "logid": 328091
    }
}

Permissions

[edit]

Blocked my user from talk namespace, tried to delete https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.1983013317976241-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n (which has/had a talk page) with deletetalk param:

{
    "error": {
        "code": "blocked",
        "info": "You have been blocked from editing this page.",
    ...
}

But the page deleted fine without the param.

Logs

[edit]

While doing the above testing I monitored the logs. I saw no errors or exceptions related to our work.