Wikipedia:Bots/Requests for approval/Aidan9382-Bot 3
[[User:Aidan9382-Bot|Aidan9382-Bot 3]]
{{BRFA help}}
{{Newbot|Aidan9382-Bot|3}}
Operator: {{botop|Aidan9382}}
Time filed: 22:02, Monday, September 4, 2023 (UTC)
Function overview: Automatically move subpages left behind (orphaned) after moves of a parent page
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: The exact task script is not yet made, but will be derived off of [https://github.com/9382/python-wikibot/blob/main/Tasks/TrackBadMoves.py this existing task] - Task now exists on [https://github.com/9382/python-wikibot/blob/main/Tasks/FixBadMoves.py GitHub]
Links to relevant discussions (where appropriate):
Edit period(s): Twice per day or so
Estimated number of pages affected: 0-4 pages a day
Namespace(s): Just Talk:
Exclusion compliant (Yes/No): Yes, including on subpages intended to be moved (none will be moved if any have exclusion)
Function details: The bot would watch Special:Log/move for page moves, and if it finds a page move which has lead to the orphaning of subpages, it'll keep watch on it. After some amount of time to avoid participating in a move war/revert (7 days or so), if the subpages are still orphaned, and if it's sure all the subpages can be moved without issue, and assuming there's nothing else that's happened which could make it non-trivial, the bot would automatically move the subpages to under the new title, as well as adjusting any archiving related templates on the parent page ({{User:HBC Archive Indexerbot/OptIn}}, {{User:MiszaBot/config}}, {{User:ClueBot III/ArchiveThis}}).
This task is kind of like an expanded scope of my currently approved task, which does basically the same thing, but only for pages using {{User:MiszaBot/config}}. I've been running a userspace report to track moves which caused orphaned subpages here, which gives an idea about how often this happens. Aidan9382 (talk) 22:02, 4 September 2023 (UTC)
=Discussion=
{{BotTrial|edits=50|days=14|first=yes}} Primefac (talk) 10:21, 12 September 2023 (UTC)
:{{ping|Primefac}} Quick question: Should I count each page fixed as an "edit" or count each subpage move as 1 edit and the base page edit to fix template as 1 edit? (I assume the latter). I intend to run it on the already existing list of pages, so I fully expect to hit the edit count before the day count (once the script is made). Aidan9382 (talk) 11:05, 12 September 2023 (UTC)
::Each move. Primefac (talk) 11:20, 12 September 2023 (UTC)
{{BotTrialComplete}} Some [https://en.wikipedia.org/w/index.php?title=Special:Contributions/Aidan9382-Bot&dir=prev&offset=20231003060000&limit=19&target=Aidan9382-Bot testing edits] and the [https://en.wikipedia.org/w/index.php?title=Special:Contributions/Aidan9382-Bot&dir=prev&offset=20231003193000&limit=96&target=Aidan9382-Bot 50 trial edits]. Spot-checked some of the moves and all of the template changing edits and found no bugs. I purposefully made the bot make 49 edits during fixing to have the final edit be it updating the report, which is why many pages are left untouched. Aidan9382 (talk) 19:55, 3 October 2023 (UTC)
:{{BotApproved}} Primefac (talk) 09:24, 24 October 2023 (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 Wikipedia:Bots/Noticeboard.