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
Approved.
Operator: TheSandDoctor (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 16:38, Thursday, November 29, 2018 (UTC)
Automatic, Supervised, or Manual: automatic
Programming language(s): Python
Source code available: [1]
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
editTheSandDoctor - Seems like a pretty easy task, that makes a lot of sense. Approved for trial (100 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete.. Please link to this brfa in the edit summary. SQLQuery me! 00:58, 2 December 2018 (UTC)[reply]
- @SQL: 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. --TheSandDoctor Talk 18:13, 4 December 2018 (UTC)[reply]
- TheSandDoctor, Yep, not a problem! SQLQuery me! 18:17, 4 December 2018 (UTC)[reply]
- @SQL: Thanks! --TheSandDoctor Talk 18:23, 4 December 2018 (UTC)[reply]
- TheSandDoctor, Yep, not a problem! SQLQuery me! 18:17, 4 December 2018 (UTC)[reply]
Trial complete. @SQL: 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. --TheSandDoctor Talk 20:30, 13 December 2018 (UTC)[reply]
- Source code added. --TheSandDoctor Talk 20:41, 13 December 2018 (UTC)[reply]
- 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)[reply]
- @Primefac: 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? --TheSandDoctor Talk 22:31, 16 December 2018 (UTC)[reply]
- Aliases added [2] --TheSandDoctor Talk 23:03, 16 December 2018 (UTC)[reply]
- 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)[reply]
- @Primefac: Oh, didn't think of that. For the record, here they are [3]. --TheSandDoctor Talk 23:22, 16 December 2018 (UTC)[reply]
- @Primefac: Would you like any other templates added to its list to remove? --TheSandDoctor Talk 17:39, 17 December 2018 (UTC)[reply]
- 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)[reply]
- 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)[reply]
- Source code added. --TheSandDoctor Talk 20:41, 13 December 2018 (UTC)[reply]
Approved. 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)[reply]
- 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.