Wikipedia:Bots/Requests for approval/EarwigBot 19


 * 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

EarwigBot 19
Operator:

Time filed: 19:50, Saturday July 28, 2012 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: GitHub

Function overview: Clerks for the dispute resolution noticeboard.

Links to relevant discussions (where appropriate):

Edit period(s): Continuous (following the IRC RC feed) and hourly checks to make sure nothing is missed.

Estimated number of pages affected: 2 often + 1 infrequently + user talk pages for notices

Exclusion compliant (Yes/No): No

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

Function details: This is by request of Steven Zhang.

The bot will carry out various clerking tasks for WP:DRN, primarily managing the DR case status template which is present at the top of every case. You can see a demo of how this new system will be laid out here. To summarize:


 * When a case is filed, its status is "new". The bot will ensure that all parties mentioned in the dispute are notified with {{subst:DRN-notice}}. If a volunteer (a user listed on this page) edits the case, the status is set to "open". If it is not edited by a volunteer in two days, its status is set to "needassist".
 * If an open case remains unedited for two days, its status is set to "stale". If it is edited in the stale state, it returns to open.
 * If an open case increases in size by more than 15kb since it was last edited by a volunteer, its status is set to "needassist". If a volunteer edits it, it returns to open.
 * If a case case remains open for over four days, regardless of who edits it, its status is set to "review". Cases in this state will remain marked as such until they are closed.
 * If a volunteer edits a case to the "closed" or "resolved" states, the bot will wait for one day of no edits before removing the "DoNotArchive" comment and adding DRN archive top/DRN archive bottom. Another bot will archive it soon afterwards.
 * If a case remains open for over seven five days, the DRN stale notice message will be posted to User talk:Szhang (WMF), per his request.
 * The bot tries to not edit war with other users. To that effect, it will not repeat a change it has just made if a user alters the case status.

Additionally, the task will save statistics on open cases to Template:DRN case status every hour half-hour. I used my AFC statistics task as reference here, so the chart output will be roughly based on Template:AFC statistics. Essentially the bot will compile an hourly list of cases showing their current status and some other information.

I'm told that the rollout of the new system for DRN will occur on August 1st. My hope is that we can get trial approval around then so we can test it as soon as possible. Thanks. — Earwig   talk  00:51, 30 July 2012 (UTC)

Discussion
Well this seems like a no-brainer, SZ ain't someone that would request something silly, and Earwig seems unlikely to let his bot go on a rampage, so let's have a trial. I'll trust SZ and Earwig's judgement on having the bot not doing silly things for its trial period and do the more experimental stuff in userspace first. Feel free to ask for approval before the 7 days are over if there are no outstanding issues left to resolve. Headbomb {talk / contribs / physics / books} 22:56, 30 July 2012 (UTC)
 * Thanks. I'll do a bunch of local userspace or non-editing tests to make sure there aren't any huge potholes before I fire up the bot around the 1st - and it'll be watched closely. Will report back in a few days. — Earwig   talk  07:10, 31 July 2012 (UTC)
 * After several hours of testing, I'm reasonably confident that there are no breaking bugs. You can see its first two edits to WP:DRN here and here; two statuses were changed the first time, one correctly and one incorrectly (the minor bug causing the latter was fixed, as you can see in the second edit). After a few tweaks, Template:DRN case status seems to be fine. Finally, notices to User talk:Szhang (WMF) appears to be working as he requested (here). I'm going to switch on the bot to its normal state (updates every time WP:DRN is edited and chart updates hourly on the hour) now and continue to watch closely. — Earwig   talk  18:38, 1 August 2012 (UTC)

Made a bunch of fixes along the way, but it's settled down for now. Everything seems to be okay, and I haven't gotten any complaints. See edits here. Note that the double-notifying at User talk:Szhang (WMF) has been fixed. — Earwig   talk  04:52, 7 August 2012 (UTC)

, since this seems somewhat urgent and having the bot offline for too long could confuse people. — Earwig   talk  18:34, 7 August 2012 (UTC)


 * Well it all looks good, so I don't see why it shouldn't be deployed. Headbomb {talk / contribs / physics / books} 01:11, 8 August 2012 (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.