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

Testing only on the API for now.

Regression testing
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:
 * https://en.wikipedia.beta.wmflabs.org/wiki/Conflict-title-0.34034600529694337-I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n
 * https://en.wikipedia.beta.wmflabs.org/wiki/Birdman_(film) (big page; didn't try to restore)

Testing the new parameter
Delete content page while passing the new parameter :
 * 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:

Permissions
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: But the page deleted fine without the param.

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