Wikipedia:Bots/Requests for approval/PeerReviewBot 2
From Wikipedia, the free encyclopedia
- The following discussion is an archived debate. Please do not modify it. Subsequent comments should be made in a new section. The result of the discussion was Approved.
[edit] PeerReviewBot 2
tasks • contribs • count • sul • logs • page moves • block user • block log • flag log • flag bot
Automatic or Manually Assisted: Automatic
Programming Language(s): Perl
Function Summary: Add links to peer review pages when semi-auto peer reviews are created
Edit period(s) (e.g. Continuous, daily, one time run): Once daily
Already has a bot flag (Y/N): N (but task 1 is in trial)
Function Details: A generous user runs a script that makes semi-automated peer reviews. These generally look for MOS violations and other such things.
This task is to automatically add links to the main peer review pages to these automatically-generated reviews. To do this, I added an HTML comment to the template for the peer review page. When the script notices a new semi-automated review, it replaces the HTML comment with (subst:) Template:PR/semiauto.
The code for this task can be browsed on svn: latest revision.
[edit] Discussion
Looks like a good task. My only question would be, is the category its drawing files from checked before its run? If I created 1,000 nonsense pages formatted to look like the semi-automated PR, would it still scan them? More just a fear of it creating a large page of nonsense due to vandalism. MBisanz talk 20:06, 17 May 2008 (UTC)
- The semiautomated peer reviews have to be on the correct page and have a correctly formatted section title. They aren't picked from a category. Then the peer review corresponding to the semi-auto review has to be live, and has to have the magic tag that will be replaced (and can't be replaced twice, obviously). Only if all those things happen will any edit happen. — Carl (CBM · talk) 20:58, 17 May 2008 (UTC)
- I'd like to trial this task, without conflicting with the other ongoing trial. Can you shape the edit summaries to include "Task 1" for that task and "Task 2" for this one for trial periods? MBisanz talk 21:09, 17 May 2008 (UTC)
I coded the (server/post-expand expensive) template which this replaces. I checked some examples, and it looks very good so far! Geometry guy 23:11, 17 May 2008 (UTC)
I did some one-time runs just now to convert the existing pages. I'll continue the trial over the next few days, on new PR pages as they are added and semiauto reviews are made. — Carl (CBM · talk) 23:16, 17 May 2008 (UTC)
- It looks good at WP:Peer reviews by date (which is a good page for tracking this): April and May reviews seem to be linked correctly. There are minor spacing issues, but these are probably not the fault of the bot, and we need to adapt templates and bot accordingly to fix them. Geometry guy 23:28, 17 May 2008 (UTC)
- The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made in a new section.