Wikipedia:Bots/Requests for approval/RonBot 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

RonBot 6
Operator:

Time filed: 15:49, Tuesday, July 3, 2018 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Python

Source code available: User:RonBot/6/Source1

Function overview: WP:RESTRICT has 4 sub-pages, each with one table. The bot will move any lines in the table that have expired or the user(s) have been inactive for more than 2 years to the Archive tables. In addition it will move back any rows from the archive tables, where the user has become active.

Links to relevant discussions (where appropriate): Bot_requests and User_talk:Beeblebrox

Edit period(s): Monthly

Estimated number of pages affected: Eight only

Namespace(s): Wikipedia

Exclusion compliant (Yes/No): Yes, but is unlikely to be used

Adminbot (Yes/No): Yes, for getting the date of last deleted edit of a user

Function details: There are 8 pages to be processed:
 * 1) Editing restrictions/Placed by the Arbitration Committee
 * 2) Editing restrictions/Placed by the Wikipedia community
 * 3) Editing restrictions/Voluntary
 * 4) Editing restrictions/Unblock conditions
 * 5) Editing restrictions/Archive/Placed by the Arbitration Committee
 * 6) Editing restrictions/Archive/Placed by the Wikipedia community
 * 7) Editing restrictions/Archive/Voluntary
 * 8) Editing restrictions/Archive/Unblock conditions
 * Each page is processed in turn.
 * The rows of the tables are separated with newlines to ensure a clean change (this is undone before saving).
 * The end of table marker is changed to a new row, so as to avoid unnecessary checking when the last row is moved (this is undone before saving).
 * In the main pages (1 to 4), where the users quoted in the first cell of a row, have been inactive for over 2 years OR the restriction (in the final column) has expired, the row will be moved to the archive page.
 * Then the pages 5-8 are processed to see if any users on an unexpired restriction have started to edit again, and if so the row is moved back to the main page.
 * Both normal edits and deleted edits are checked to get the user's very last edit.
 * Trial in user space (using copies of real pages) can be found at Special:Contributions/RonBot at 15:42, 3 July 2018 to 15:48, 3 July 2018 (all marked "Trial D"). NB:Pages 3 and 7 were unchanged, so no entry in RonBot's log.

Discussion
1 full run. Revert things if they go wrong. Headbomb {t · c · p · b} 16:11, 3 July 2018 (UTC)
 * See Special:Contributions/RonBot 18:13, 3 July 2018 to 18:19, 3 July 2018. No surprises. Ron h jones (Talk) 18:24, 3 July 2018 (UTC)


 * Keep an eye out on the few next update to see if there's anything weird with it, but no need for more bureaucracy than needed here. Headbomb {t · c · p · b} 21:28, 3 July 2018 (UTC)


 * closing note. I would suggest putting the archive links in the edit summary. Headbomb {t · c · p · b} 21:32, 3 July 2018 (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.