Wikipedia:Bots/Requests for approval/TheSandBot 2


 * 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 2
Operator:

Time filed: 16:38, Thursday, November 29, 2018 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Python

Source code available:

Function overview: Removes orphan, uncategorized, and underlinked where present in the draft namespace.

Links to relevant discussions (where appropriate): N/A

Edit period(s): Periodic, as necessary

Estimated number of pages affected: Variable. Currently around 561

Exclusion compliant (Yes/No): No (N/A)

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

Function details: Removes orphan, uncategorized, and underlinked where present in the draft namespace. This is done since the various templates are non-applicable to drafts and they do not make sense to be present within the draft namespace. Though I have not started working on the code for this (could have that done within a few minutes probably, just don't have time right this moment), it would essentially take the draft namespace transclusions of each category and go through them. Once it finds the template, it simply would remove it with an edit summary similar to "rm X template, N/A in the draft namespace".

Discussion
- Seems like a pretty easy task, that makes a lot of sense. . Please link to this brfa in the edit summary. SQL Query me! 00:58, 2 December 2018 (UTC)
 * So far the bot has updated 1 page (successfully) but ran into programatic issues afterwords that I have not had the time to resolve as I am bogged down with final projects and upcoming final exams. Is it okay if this waits for a week? Everything will be cleared up for me by December 13th and then I will be able to look into it in greater detail and resolve the issues to resume the trial. -- The SandDoctor Talk 18:13, 4 December 2018 (UTC)
 * , Yep, not a problem! SQL Query me!  18:17, 4 December 2018 (UTC)
 * Thanks! -- The SandDoctor Talk 18:23, 4 December 2018 (UTC)


 * Programatic problems resolved. Turned out I format to import the errors library, check for blank titles(?), and my getTransclusions method was returning a multidimensional list, which I wasn't exactly expecting and was a holdover from a proof of concept. -- The SandDoctor Talk 20:30, 13 December 2018 (UTC)
 * Source code added. -- The SandDoctor Talk 20:41, 13 December 2018 (UTC)
 * In looking through these, I noticed in Special:Diff/873565408 that the unreferenced tag was not removed. This strikes me as another maintenance tag that should be added to the list. Is there a reason only these three were chosen? As a minor note, please link to your bot's diffs when completing a trial. Primefac (talk) 21:22, 16 December 2018 (UTC)
 * The tag was not excluded for any particular reason, it was merely one that I had not thought of. It has now been added. If there are others you would like added, I can happily do so. I will add the aliases of the four currently included shortly and push the change as well. As for linking diffs, I chose not to run the bot after the trials instead in this case as it is a time consuming hassle to link 100 diffs. That said, I will link random (relevant) ones in the future if that is acceptable? -- The SandDoctor Talk 22:31, 16 December 2018 (UTC)
 * Aliases added -- The SandDoctor  Talk 23:03, 16 December 2018 (UTC)
 * Just as a note, you don't have to link to the individual diffs; for example, these are the diffs for my trial of task 25. Primefac (talk) 23:12, 16 December 2018 (UTC)
 * Oh, didn't think of that. For the record, here they are . -- The SandDoctor Talk 23:22, 16 December 2018 (UTC)
 * Would you like any other templates added to its list to remove? -- The SandDoctor Talk 17:39, 17 December 2018 (UTC)

If there are other mainspace maintenance categories that are found to be heavily in use, please post them on the talk page and ping a BAG member to approve it. Primefac (talk) 19:50, 17 December 2018 (UTC)
 * Currently approved templates (and redirects):
 * orphan
 * uncategorized
 * underlinked
 * unreferenced
 * Added tasks
 * Unreferenced section 16:35, 4 January 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.