Wikipedia:Bots/Requests for approval/TheSandBot 4
This is the current revision of this page, as edited by TheSandDoctor (talk | contribs) at 05:41, 14 September 2019 (withdrawn. closing.). The present address (URL) is a permanent link to this version.
- 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
Withdrawn by operator.
Operator: TheSandDoctor (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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:
- Moves category
- Reads the category page itself to determine if any of its categories need switching (if so, they are done now)
- Iterates through category contents (currently under previous name) and moves them to the current category
- Looks for any links from the old category name. If they are found, corrects them to new name
Discussion
[edit]- @Alex 21 and Gonnym: Courtesy ping --TheSandDoctor Talk 06:53, 9 June 2019 (UTC)[reply]
- 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. — JJMC89 (T·C) 08:45, 9 June 2019 (UTC)[reply]
- TheSandDoctor, is there a reason the above isn't being utilized? Primefac (talk) 12:34, 15 June 2019 (UTC)[reply]
- My apologies for the delay in my response, Primefac. 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. —TheSandDoctor Talk 20:58, 15 June 2019 (UTC)[reply]
- Unless you're going to handle the necessary cleanup after the category moves, I'd prefer that the standard process (CFD) be used. — JJMC89 (T·C) 23:05, 15 June 2019 (UTC)[reply]
- I have gone through them all, JJMC89. 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? --TheSandDoctor Talk 04:51, 17 June 2019 (UTC)[reply]
- For the record, those 12 categories happen to be:
- Category:Supernatural (U.S. TV series) characters
- Category:Supernatural (U.S. TV series) seasons
- Category:The Apprentice (U.S. TV series)
- Category:The Apprentice (UK TV series) seasons
- Category:The Late Late Show (U.S. TV series)
- Category:Supernatural (U.S. TV series) episodes
- Category:Survivor (U.S. TV series) contestants
- Category:Survivor (U.S. TV series) winners
- Category:MasterChef (U.S. TV series)
- Category:The Apprentice (U.S. TV series) seasons
- Category:The Newsroom (U.S. TV series) episodes
- Category:Wipeout (2008 U.S. game show)
- --TheSandDoctor Talk 05:06, 17 June 2019 (UTC)[reply]
- 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). — JJMC89 (T·C) 02:49, 19 June 2019 (UTC)[reply]
- @JJMC89: That specific example has now been added to the code base. --TheSandDoctor Talk 04:34, 19 June 2019 (UTC)[reply]
- 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? --TheSandDoctor Talk 04:37, 19 June 2019 (UTC)[reply]
- 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. — JJMC89 (T·C) 02:33, 20 June 2019 (UTC)[reply]
- 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? --TheSandDoctor Talk 04:37, 19 June 2019 (UTC)[reply]
- @JJMC89: That specific example has now been added to the code base. --TheSandDoctor Talk 04:34, 19 June 2019 (UTC)[reply]
- 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). — JJMC89 (T·C) 02:49, 19 June 2019 (UTC)[reply]
- Unless you're going to handle the necessary cleanup after the category moves, I'd prefer that the standard process (CFD) be used. — JJMC89 (T·C) 23:05, 15 June 2019 (UTC)[reply]
- My apologies for the delay in my response, Primefac. 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. —TheSandDoctor Talk 20:58, 15 June 2019 (UTC)[reply]
- TheSandDoctor, is there a reason the above isn't being utilized? Primefac (talk) 12:34, 15 June 2019 (UTC)[reply]
- Looking at your code, the category contents doesn't get moved since
move_cat_contents
isn't called. — JJMC89 (T·C) 08:45, 9 June 2019 (UTC)[reply]- I forgot to do a 'git push' last night. Now called JJMC89. --TheSandDoctor Talk 15:52, 9 June 2019 (UTC)[reply]
Withdrawn by operator. - Task no longer necessary. Closing. --TheSandDoctor Talk 05:40, 14 September 2019 (UTC)[reply]
- 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.