Wikipedia:Bots/Requests for approval/AnomieBOT 71


 * 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

AnomieBOT 71
Operator:

Time filed: 01:55, Thursday October 10, 2013 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): Perl

Source code available: User:AnomieBOT/source/tasks/TemplateTalkRedirectCreator.pm

Function overview: Create redirects for talk pages of certain pages, such as template /doc subpages, where discussion should be centralized on a corresponding "main" talk page.

Links to relevant discussions (where appropriate): Bots/Requests_for_approval/BlakesBot

Edit period(s): Periodic

Estimated number of pages affected: There are currently 26690 pages meeting criteria #1 and #2 (some of these may be excluded by #3 or #4). After that, it depends on the rate of creation of new pages resulting in matches for the bot's criteria.

Exclusion compliant (Y/N): N/A, as a nonexistent page cannot have an exclusion template (but yes)

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

Function details: The bot will query the replicated database on Tool Labs and the API to find pages matching certain patterns where the following conditions hold: When these conditions are satisfied, the talk page in #2 will be created as a redirect to the corresponding "main" talk page (or to its target if that page is a redirect).
 * 1) The subjectspace page exists (e.g. Template:Example/doc)
 * 2) The talk page does not exist (e.g. Template talk:Example/doc)
 * 3) The corresponding "main" talk page exists (e.g. Template talk:Example)
 * 4) If the corresponding "main" talk page is a redirect, its target also exists

Discussion
Note this task was previously approved for trial for BlakesBot, but the operator seems to have disappeared since August. It was then approved for trial for Gabrielchihonglee-Bot, but after running into issues that request was withdrawn.

The current list of patterns and the corresponding "main" talk pages is: I've worded the task to be open to additions to this list. At the moment the redirects will be created "bare"; if someone wants to create an appropriate redirect template I'd be happy to start using it. Anomie⚔ 01:55, 10 October 2013 (UTC)
 * Template talk:Example/doc → Template talk:Example
 * Template talk:Example/sandbox → Template talk:Example
 * Template talk:Example/testcases → Template talk:Example
 * Template talk:Example/TemplateData → Template talk:Example
 * Module talk:Example/doc → Module talk:Example
 * Technical Code Review: Logic is straight forward and makes sense. Technically it does everything it's supposed to. Hasteur (talk) 18:57, 10 October 2013 (UTC)

BAGAssistanceNeeded Well? Anomie⚔ 21:09, 20 October 2013 (UTC)

— HELL KNOWZ  ▎TALK 18:58, 26 October 2013 (UTC)
 * Edits are at [//en.wikipedia.org/w/index.php?title=Special:Contributions/AnomieBOT&offset=20131026224400&limit=100&target=AnomieBOT]. Note how the bot avoided a double redirect when creating Template talk:-importance/sandbox. You may also notice that around edit #65 it suddenly has a run of pages with en-dashes; I realized that the bot was skipping these because the data from the database was coming in flagged as binary rather than text and so the bot was finding that the resulting mojibaked titles didn't exist. Anomie⚔ 22:48, 26 October 2013 (UTC)
 * So, the trial was a success? Josh Parris 10:53, 5 November 2013 (UTC)
 * BAGAssistanceNeeded Anomie⚔ 20:23, 5 November 2013 (UTC)
 * A simple yes or no will do. Josh Parris 21:17, 5 November 2013 (UTC)

Don't see any double redirects or misnames, random sample looks good. — HELL KNOWZ  ▎TALK 22:18, 5 November 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.