Wikipedia:Bots/Requests for approval/TheSandBot 4


 * The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was

TheSandBot 4
Operator:

Time filed: 06:51, Sunday, June 9, 2019 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available: https://github.com/TheSandDoctor/American_British_page_mover/blob/master/cats_british_american_converter_server.py

Function overview: An extension of WP:Bots/Requests for approval/TheSandBot 3, this task moves categories and their associated subpages. This task is different enough to necessitate its own BRFA.

Links to relevant discussions (where appropriate): WP:Bots/Requests for approval/TheSandBot 3

Edit period(s): Until done

Estimated number of pages affected: 88 categories worth, so probably few hundred to couple thousand

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): Yes

Function details: Reads category page names from User:Alex 21/sandbox2 into memory. Then the script repeats the following process on all listed categories:


 * 1) Moves category
 * 2) Reads the category page itself to determine if any of its categories need switching (if so, they are done now)
 * 3) Iterates through category contents (currently under previous name) and moves them to the current category
 * 4) Looks for any links from the old category name. If they are found, corrects them to new name

Discussion

 * Courtesy ping -- The SandDoctor Talk 06:53, 9 June 2019 (UTC)
 * I think it would be better to list the categories at WP:CFDS. We already have bots to handle those requests. Category:The Office (UK TV series) episodes is already under discussion at CFD, so it shouldn't be moved by this task. —&thinsp;JJMC89&thinsp; (T·C) 08:45, 9 June 2019 (UTC)
 * , is there a reason the above isn't being utilized? Primefac (talk) 12:34, 15 June 2019 (UTC)
 * My apologies for the delay in my response, . I just had a moment to quickly respond so here it is. This was almost covered by the previous BRFA related to the convention change but determined it should be its own run. As such, I filed this and wrote the script to do it. (There shouldn’t be any issues with it.) I was not aware that there was a bot for this already as I do not frequent CfD, but also do not think that that should necessarily disqualify this task. Having more than one bot wouldnt be a conflict as they would never interact and could be a potential ’back-up’ of sorts. (This is also a one-off run). Though I definitely want to avoid an wp:OTHERSTUFF argument, there is one that could be made as we do have multiple bots for the same sort of tasks. Of course, I will respect any decision on this. — The SandDoctor  Talk 20:58, 15 June 2019 (UTC)
 * Unless you're going to handle the necessary cleanup after the category moves, I'd prefer that the standard process (CFD) be used. —&thinsp;JJMC89&thinsp; (T·C) 23:05, 15 June 2019 (UTC)
 * I have gone through them all, . A total of 12 would need manual cleanup (display title updates), which I am totally happy to do. Otherwise, I am not sure what "necessary cleanup" would be needed outside of what the script already does? -- The SandDoctor Talk 04:51, 17 June 2019 (UTC)
 * For the record, those 12 categories happen to be:
 * -- The SandDoctor Talk 05:06, 17 June 2019 (UTC)
 * The most common cleanup is fixing links to the old category names. Category:Supernatural (U.S. TV series) seasons, for example, should be changed for Draft:Supernatural (season 15). —&thinsp;JJMC89&thinsp; (T·C) 02:49, 19 June 2019 (UTC)
 * That specific example has now been added to the code base. -- The SandDoctor Talk 04:34, 19 June 2019 (UTC)
 * In updating the description, I just realized that the order of the operations most likely needs to be reversed or references may be lost/null. Probably to the order of 2,3,1, would you agree? -- The SandDoctor Talk 04:37, 19 June 2019 (UTC)
 * The problem with fixing backlinks automatically is that not all backlinks should be changed. From my example category, I would only update that one link. In terms of order: for CfD the bots 1) move the category, 2) move the category contents, including any subcats then a human 3) cleans up any backlinks. #1 then #2 makes sure the pages aren't categorized in a nonexistent category. —&thinsp;JJMC89&thinsp; (T·C) 02:33, 20 June 2019 (UTC)
 * Looking at your code, the category contents doesn't get moved since move_cat_contents isn't called. —&thinsp;JJMC89&thinsp; (T·C) 08:45, 9 June 2019 (UTC)
 * I forgot to do a 'git push' last night. Now called . -- The SandDoctor Talk 15:52, 9 June 2019 (UTC)
 * -- The SandDoctor Talk 05:06, 17 June 2019 (UTC)
 * The most common cleanup is fixing links to the old category names. Category:Supernatural (U.S. TV series) seasons, for example, should be changed for Draft:Supernatural (season 15). —&thinsp;JJMC89&thinsp; (T·C) 02:49, 19 June 2019 (UTC)
 * That specific example has now been added to the code base. -- The SandDoctor Talk 04:34, 19 June 2019 (UTC)
 * In updating the description, I just realized that the order of the operations most likely needs to be reversed or references may be lost/null. Probably to the order of 2,3,1, would you agree? -- The SandDoctor Talk 04:37, 19 June 2019 (UTC)
 * The problem with fixing backlinks automatically is that not all backlinks should be changed. From my example category, I would only update that one link. In terms of order: for CfD the bots 1) move the category, 2) move the category contents, including any subcats then a human 3) cleans up any backlinks. #1 then #2 makes sure the pages aren't categorized in a nonexistent category. —&thinsp;JJMC89&thinsp; (T·C) 02:33, 20 June 2019 (UTC)
 * Looking at your code, the category contents doesn't get moved since move_cat_contents isn't called. —&thinsp;JJMC89&thinsp; (T·C) 08:45, 9 June 2019 (UTC)
 * I forgot to do a 'git push' last night. Now called . -- The SandDoctor Talk 15:52, 9 June 2019 (UTC)
 * That specific example has now been added to the code base. -- The SandDoctor Talk 04:34, 19 June 2019 (UTC)
 * In updating the description, I just realized that the order of the operations most likely needs to be reversed or references may be lost/null. Probably to the order of 2,3,1, would you agree? -- The SandDoctor Talk 04:37, 19 June 2019 (UTC)
 * The problem with fixing backlinks automatically is that not all backlinks should be changed. From my example category, I would only update that one link. In terms of order: for CfD the bots 1) move the category, 2) move the category contents, including any subcats then a human 3) cleans up any backlinks. #1 then #2 makes sure the pages aren't categorized in a nonexistent category. —&thinsp;JJMC89&thinsp; (T·C) 02:33, 20 June 2019 (UTC)
 * Looking at your code, the category contents doesn't get moved since move_cat_contents isn't called. —&thinsp;JJMC89&thinsp; (T·C) 08:45, 9 June 2019 (UTC)
 * I forgot to do a 'git push' last night. Now called . -- The SandDoctor Talk 15:52, 9 June 2019 (UTC)

- Task no longer necessary. Closing. -- The SandDoctor Talk 05:40, 14 September 2019 (UTC)
 * The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.