Wikipedia:Bots/Requests for approval/HasteurBot 3


 * 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 Symbol keep vote.svg Approved

HasteurBot 3
Operator:

Time filed: 13:06, Tuesday August 6, 2013 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): python/pywikibot

Source code available: evaluate_active_cat.py/evaluate_disabled_cat.py

Function overview: Once a day, traverse Category:AfC submissions with missing AfC template and evaluate the membership looking for any AfC template that applies the AfC submissions by date category (currently AFC declined and AFC draft). If at least 1 template exists, remove the defect tracking category. If the defect tracking category exists on the page but is disabled, remove it.

Links to relevant discussions (where appropriate): Wikipedia_talk:WikiProject_Articles_for_creation/2013_4 and Wikipedia_talk:AFC

Edit period(s): Daily

Estimated number of pages affected: Dependant on how much effort volunteers make at cleaning this backlog, could be several hundred or zero per day period.

Exclusion compliant (Yes/No): Yes

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

Function details: If an editor does some work to add AFC templates, such as [//en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_creation/Adam_Kahn&diff=prev&oldid=566445319], the category is not removed and must be removed [//en.wikipedia.org/w/index.php?title=Wikipedia_talk:Articles_for_creation/Adam_Kahn&diff=next&oldid=566445319 later] in order to delist the submission from the category because it no longer meets membership. This bot will check for the 2 AFC templates and remove the category. It will also check to see if the category exists on the page and is just disabled (by a prefixing colon).

Discussion
BAGAssistanceNeeded Paging BAG Hasteur (talk) 14:07, 14 August 2013 (UTC)
 * At this point I'm simply asking for a general feasability from BAG before I invest a significant amount of time in coding this. Hasteur (talk) 22:18, 18 August 2013 (UTC)

"If the defect tracking category exists on the page but is disabled, remove it." -- wouldn't the pages not be in the defect category to begin with if it is disabled? — HELL KNOWZ  ▎TALK 19:42, 20 August 2013 (UTC)
 * I'm working out how to scan the current vesion of pages to look for the disabled category, but the case would be when a decatting tool would run across the submissions and improperly disable it. So not really part of the main process, but tied in to the Category:AfC submissions with missing AfC template task. Hasteur (talk) 19:46, 20 August 2013 (UTC)
 * I'm still not sure what is happening. Can you give me an example? What does it mean in category but at the same time category is disabled. Those are contradictory. — HELL KNOWZ  ▎TALK 19:55, 20 August 2013 (UTC)
 * Step 1, notice how the category becomes disabled, but still kinda on the page. Step 2 where I go in and remove the disabled category.  I know for the search of disabled categories, I'm going to have to reach into the back end of the database to find these. Hasteur (talk) 19:59, 20 August 2013 (UTC)
 * So you are just removing disabled category, gotcha. It's not tied to anything else. I would argue we generally don't do that (cosmetic bot and all), but I guess keeping newbie-friendly source trumps that. — HELL KNOWZ  ▎TALK 20:03, 20 August 2013 (UTC)

Doesn't matter how many is first or second part of the task, as long as both appear for at least a few edits. — HELL KNOWZ  ▎TALK 20:03, 20 August 2013 (UTC)
 * for the ones actively in the category. Hasteur (talk) 00:38, 30 August 2013 (UTC)
 * is the ones that were already disabled but invalidly still present. Hasteur (talk) 02:27, 30 August 2013 (UTC)

Ok, I've shown examples of enabled category and disabled category. The string does show up on a few article space pages (under 5) so I'll adjust those personally. Hasteur (talk) 02:33, 30 August 2013 (UTC) BAGAssistanceNeeded

Edits look good, simple task. — HELL KNOWZ  ▎TALK 23:08, 19 September 2013 (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.