Wikipedia:Bots/Requests for approval/AvicBot 6


 * 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

AvicBot 6
Operator:

Time filed: 20:29, Friday July 29, 2011 (UTC)

Automatic or Manual: Automatic unsupervised

Programming language(s): AutoWikiBrowser

Source code available: Yes

Function overview: Maintain indef blocked categories

Links to relevant discussions (where appropriate):

Edit period(s): daily

Estimated number of pages affected: unknown

Exclusion compliant (Y/N): Yes

Already has a bot flag (Y/N): Yes

Function details: Will grab users in the indef block categories, and check to see if they are, in fact, indef blocked. If a user is not found to be blocked, the username will be set aside on a subpage. If, after two weeks, the user is still in the category, and still unblocked, AvicBot will remove the category from the user talk page.

Categories affected:
 * Category:Wikipedians who are indefinitely blocked for a violation of the username policy
 * Category:Wikipedians who are indefinitely blocked for advertising
 * Category:Wikipedians who are indefinitely blocked for link-spamming
 * Category:Wikipedians who are indefinitely blocked for promotional user names
 * Category:Wikipedians who are indefinitely blocked for spamming

Discussion
Is there a policy/guideline/discussion regarding their use that you can link in "relevant discussion" as a "consensus for this task"? If not, could you leave a note on the category talk/some noticeboard regarding this, please. Although I doubt this will be controversial. — HELL KNOWZ  ▎TALK 10:11, 30 July 2011 (UTC)
 * All the category pages (except the last one) have the note "Users who are not blocked should be removed from the category" on them. Still, I can post to the talk pages, though not sure which, if any, noticeboards might be interested in this. Avic ennasis  @ 11:08, 28 Tamuz 5771 / 30 July 2011 (UTC)
 * It's more of a bureaucratic point than anything else. So you can point out you invited wider discussion even if no one replies. — HELL KNOWZ  ▎TALK 11:54, 30 July 2011 (UTC)
 * I posted a notice to all the category talk pages, as well as Wikipedia talk:Template messages/User talk namespace, which is also the talk page for WP:WikiProject user warnings, as it seemed most relevant to this request. Avic ennasis  @ 22:49, 4 Av 5771 / 4 August 2011 (UTC)

Anyway, Take however long you need to make the page list (if you haven't already). — HELL KNOWZ  ▎TALK 11:54, 30 July 2011 (UTC)
 * Avic ennasis  @ 22:26, 5 Av 5771 / 5 August 2011 (UTC)
 * I reviewed the contribs for this run. It appears to have gone very well. I don't see any problems, or concerns with this task. SQL Query me!  07:49, 6 August 2011 (UTC)
 * I see that this mostly affects pages with a subst'ed block template. There are two cases I see where the bot could make a better edit by also removing the surrounding conditional:   and   . Not a deal-breaker, but could be nice. Are you are willing to implement these?  Anyway, let's catch any more weird cases to see that nothing breaks. —  HELL KNOWZ  ▎TALK 08:07, 6 August 2011 (UTC)


 * - Implemented above suggestions. Removes   when it finds the whole sting, e.g., here, else it removes  , e.g., here. Likewise with other cats. Avic ennasis  @ 05:46, 19 Av 5771 / 05:46, 19 August 2011 (UTC)


 * Hmm. I haven't looked at most of the edits yet, but the one you refer to above with the switch coding link is blocked, or perhaps more properly, globally locked and hidden. Is there anyway your bot could account for cases like that? Hers fold  (t/a/c) 16:40, 19 August 2011 (UTC)


 * I'm not sure. Currently, the script uses an API call to check for blocks, e.g. like this. The same API call for the locked account looks the same as an unblocked account. Avic ennasis @ 17:34, 19 Av 5771 / 17:34, 19 August 2011 (UTC)


 * It looks like the block appears using the "globaluserinfo" call: . It also shows the account is locked and hidden. Hers fold  (t/a/c) 18:06, 19 August 2011 (UTC)


 * Looks like this issue happened a number of other times; at least 22 of the user talk pages uncategorized in the last trial belong to users who are blocked locally and globally locked and hidden. There are several others that I'm not sure about, although it's possible they just never got blocked in the first place. Would it be possible to try and fix this for one last trial run? <em style="font-family:Bradley Hand ITC;color:blue">Hers <em style="font-family:Bradley Hand ITC;color:gold">fold  (t/a/c) 20:20, 19 August 2011 (UTC)
 * Shouldn't be hard to re-work the script, assuming the above API call can catch both local blocks and global locks, and it looks like it does. How many more would you like for the next trial? <sup style="color:red;">Avic <sub style="color:blue;">ennasis @ 03:55, 20 Av 5771 / 03:55, 20 August 2011 (UTC)
 * Take however many pages you need to be sure the new call is working - try in increments of ten, perhaps, and see how it goes. <em style="font-family:Bradley Hand ITC;color:blue">Hers <em style="font-family:Bradley Hand ITC;color:gold">fold  (t/a/c) 04:31, 20 August 2011 (UTC)
 * Actually, before you run that, note that the globaluser thing will probably only return results when the local account is unified to a global account. In general, that'll be most of them, but I have seen a few recent accounts on checkuser that are *not* unified. So you may want to check both just in case. <em style="font-family:Bradley Hand ITC;color:blue">Hers <em style="font-family:Bradley Hand ITC;color:gold">fold  (t/a/c) 04:34, 20 August 2011 (UTC)

- Any updates on how this is going? <em style="font-family:Bradley Hand ITC;color:blue">Hers <em style="font-family:Bradley Hand ITC;color:gold">fold  (t/a/c) 15:40, 28 August 2011 (UTC)
 * Well, with the additional check, the scripts have been pretty slow - and I haven't had much time for testing this lately. I'll probably have some definite results within the week. <sup style="color:red;">Avic <sub style="color:blue;">ennasis @ 23:00, 28 Av 5771 / 23:00, 28 August 2011 (UTC)


 * Ok, I believe I've got it down (and have re-coded some things so it's much faster.) AvicBot parsed Category:Wikipedians who are indefinitely blocked for spamming, and removed all locally blocked users from it's working list, as well as a globally locked account, and found ~80 or so that matched the criteria. (Non-indef-blocked, non-locked accounts in an indef-blocked category.) I processed 30 of them here. <sup style="color:red;">Avic <sub style="color:blue;">ennasis @ 21:30, 6 Elul 5771 / 21:30, 5 September 2011 (UTC)
 * ~55 more here. I believe I have all the kinks worked out now. <sup style="color:red;">Avic <sub style="color:blue;">ennasis @ 23:25, 17 Elul 5771 / 23:25, 16 September 2011 (UTC)


 * I see everything looks good, and no reason to deny this bot, can a BAGer give the go ahead? ΔT The only constant 16:37, 11 October 2011 (UTC)

Looks good -- Chris 11:11, 13 October 2011 (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.