User:DWalden (WMF)/(Un)delete associated talk page/20220225
Appearance
Testing only on the API for now.
Regression testing
[edit]Just delete and restore some pages without passing the new parameter:
- Pages without a talk page:
- https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.7652943326933876-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
- https://en.wikipedia.beta.wmflabs.org/wiki/Electric_football
- https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_diff_test_3 (big page, greater than 1000 edits; couldn't restore)
- Pages with a talk page:
Testing the new parameter
[edit]Delete content page while passing the new parameter (deletetalk
):
- Pages without a talk page:
- https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.26559895660280075-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
- https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_Edit_Test (Try a big page...test out error handling when it realises there is no talk page to delete)
- Pages with a talk page:
- https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.5389571563048114-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
- https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_Test_Edit (big content page; small talk page)
- deleted the talk page immediately, content page via job
- https://en.wikipedia.beta.wmflabs.org/wiki/Echo_at_test (small content page; big talk page)
- API response does not warn that it could take a while
- https://en.wikipedia.beta.wmflabs.org/wiki/File:Icon_for_char_%E8%A8%BE_tyrianpurple_pastelpink_32x32_moved.png
- https://en.wikipedia.beta.wmflabs.org/wiki/TemplateUsageArticle125 (big content page; big talk page)
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.