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 Approved.
Operator: Ronhjones (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
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): Wikipedia:Bot_requests#WP:RESTRICT_archive_bot and User_talk:Beeblebrox#Wikipedia:Bot_requests#WP:RESTRICT_archive_bot
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:
- Wikipedia:Editing restrictions/Placed by the Arbitration Committee
- Wikipedia:Editing restrictions/Placed by the Wikipedia community
- Wikipedia:Editing restrictions/Voluntary
- Wikipedia:Editing restrictions/Unblock conditions
- Wikipedia:Editing restrictions/Archive/Placed by the Arbitration Committee
- Wikipedia:Editing restrictions/Archive/Placed by the Wikipedia community
- Wikipedia:Editing restrictions/Archive/Voluntary
- Wikipedia: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
[edit]Approved for trial. Please provide a link to the relevant contributions and/or diffs when the trial is complete. 1 full run. Revert things if they go wrong. Headbomb {t · c · p · b} 16:11, 3 July 2018 (UTC)[reply]
- Trial complete. See Special:Contributions/RonBot 18:13, 3 July 2018 to 18:19, 3 July 2018. No surprises. Ronhjones (Talk) 18:24, 3 July 2018 (UTC)[reply]
- Approved. 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)[reply]
- 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.