Wikipedia:Bots/Requests for approval/Addbot 27


 * 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

Addbot 27
Operator:

Time filed: 04:15, Wednesday January 9, 2013 (UTC)

Automatic, Supervised, or Manual: Automatic

Programming language(s): PHP

Source code available: On request

Function overview: Removing Template:Dead end from pages with wikilinks

Links to relevant discussions (where appropriate):

Edit period(s): couple of times a week to being with progressing to weekly

Estimated number of pages affected: 50 a run from Category:Dead-end pages

Exclusion compliant (Yes/No): no

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

Function details: Get a list of pages from Category:Dead-end pages and check to see if they have wikilinks. If they do then remove the tag.

Discussion
Comment - Already running (almost daily) by User:BattyBot per this BRFA. Many times it will add Underlinked. GoingBatty (talk) 05:52, 9 January 2013 (UTC)
 * Don't think that they could interfere though, and redundancy isn't bad. Speedy approval would be great here since we already have a bot running. No objections to a trial either since I believe it runs seperate from AWB(?). Vacation nine 14:45, 9 January 2013 (UTC)
 * "Speedy approval would be great here since we already have a bot running." [..] "since I believe it runs seperate from AWB(?)" - it uses PHP, but why speedy when then bot is using a totally other source code? Every bot needs a trial unless it uses the same codebase as another bot (or AWB with a similar already approved bot task). mabdul 15:49, 9 January 2013 (UTC)
 * Ah yes, if it uses a different code base it shouldn't be speedied. Vacation nine 16:06, 9 January 2013 (UTC)
 * I have no problem with redundancy or a trial. Just ran my bot, which removed the tag from 4 of the 535 articles tagged with dead end.  At that rate, it will take quite a while to get up to 50 edits, so I'll be happy to stop running my bot during the trial period.  GoingBatty (talk) 02:22, 10 January 2013 (UTC)


 * Redundancy is not an issue for me. It's always good to have a backup.  I'm more concerned about bot conflicts.  Will your bot check for any changes to the page before submitting?— cyberpower ChatOffline 15:04, 10 January 2013 (UTC)
 * Bot conflicts wouldn't really be an issue. The processing of each page would take at most seconds from the point the page is loaded and then checked and then potentially edited. Of course I could check for edit conflicts.  ·Add§hore·  T alk T o M e ! 15:08, 10 January 2013 (UTC)
 * It would be ideal to have it check for that. In those few seconds, someone could push an edit, or the other bot could and your bot may overwrite something.— cyberpower ChatOffline 15:17, 10 January 2013 (UTC)


 *  MBisanz  talk 19:57, 10 January 2013 (UTC)
 * Coding  ·Add§hore·  T alk T o M e ! 09:37, 11 January 2013 (UTC)
 * Bot done. I will list edits as they happen in the list below  ·Add§hore·  T alk T o M e ! 13:45, 11 January 2013 (UTC)


 * 1) First run -
 * As with my task 28 I am going to modify the code to make it look for the template under a heading, If it finds the template in such a place it will add the |sections parameter to it! Otherwise the bot would ignore tags under headings.  ·Add§hore·  T alk T o M e ! 22:56, 13 January 2013 (UTC)


 * Has your bot made any more edits for this run. I'm any more.  Perhaps you could log it?— cyberpower ChatOnline 23:10, 13 January 2013 (UTC)
 * Just ran it again and now we also have  ·Add§hore·  T alk T o M e ! 23:17, 13 January 2013 (UTC)
 * I think it would be useful in this case if your bot logged every edit for this task. It doesn't seem to making many edits and this making it hard to follow among your bot's many other tasks.  If it's not too hard, do you think you could set up a temporary log?— cyberpower ChatOnline 00:17, 14 January 2013 (UTC)
 * Another option is to use Snottywong's User Edit Summary Search. GoingBatty (talk) 00:49, 14 January 2013 (UTC)
 * Ah, yes. Thank you.  I knew there was a tool for this.  I just couldn't remember where.— cyberpower Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 02:50, 14 January 2013 (UTC)
 * Also I am doing each run manually so there shouldn't be any edits I miss as I watch them come through on IRC   ·Add§hore·  <sup style="color:black;">T alk T o M e !  14:20, 14 January 2013 (UTC)
 * Another run gives us and   ·Add§hore·  <sup style="color:black;">T alk T o M e !  17:32, 16 January 2013 (UTC)
 * Realised the bot was ignoring links with spaces in it ..., , , , , , , , , , , ,  ·Add§hore·  <sup style="color:black;">T alk T o M e !  22:54, 16 January 2013 (UTC)
 * Is there anything causing it to skip Harlan Literary Society (like maybe the underscore in the article's wikilink)? GoingBatty (talk) 01:21, 17 January 2013 (UTC)
 * It would seem that I have also made it ignore underscores for some reason.. Will fix and give the bot another run  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 01:42, 17 January 2013 (UTC)
 * Done. Please see  ·Add§hore·  <sup style="color:black;">T alk T o M e !  01:53, 17 January 2013 (UTC)
 * Looks like your edit also removed the }} from many templates. GoingBatty (talk) 02:48, 17 January 2013 (UTC)
 * That may need some fixing.— cyberpower <sup style="color:red;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:red;font-family:arnprior">Offline 02:51, 17 January 2013 (UTC)
 * Yep, I noticed it removed the }} from the maintenance template but failed to notice the rest of the diff. Just trying to work out which part of the regex is causing this now. Testing in my sandbox with the article text, won't run again until it is fixed.  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 03:00, 17 January 2013 (UTC)

Looking at that last mod may reveal some answers, it didn't happen until that mod scanning for underscores was in place.— cyberpower <sup style="color:olive;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 03:10, 17 January 2013 (UTC)
 * Per this diff the bug is fixed. It turns out it wasn't my main regex but one that I added to deal with the multiple issues template.  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 03:41, 17 January 2013 (UTC)


 * Could I get some more eyes on this, I could be going mad, but...
 * Why is adding
 * Making an edit that was previously like this end up like this ?
 *  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 21:39, 18 January 2013 (UTC)
 * Try — cyberpower <sup style="color:olive;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 21:59, 18 January 2013 (UTC)
 * True! there are no parentheses around it so no need to escape it ·Add§hore·  <sup style="color:black;">T alk T o M e ! 22:00, 18 January 2013 (UTC)
 * *cough*  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 22:02, 18 January 2013 (UTC)
 * I take it that fixed it.— cyberpower <sup style="color:olive;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 22:06, 18 January 2013 (UTC)
 * Yep, it's always the smallest of things! Another edit done  ·Add§hore·  <sup style="color:black;">T alk T o M e !  22:09, 18 January 2013 (UTC)
 * Haha, yea that's too true. I once had nested for loops in a program but couldn't figure out why it wasn't working right and found that I had used the variable "i" in both loop parameters. A personal rule of mine is to never assume because results can be quite unpredictable.— cyberpower <sup style="color:olive;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 00:32, 19 January 2013 (UTC)
 *  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 17:24, 19 January 2013 (UTC)
 *  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 20:02, 20 January 2013 (UTC)
 * ,,  ·Add§hore·  <sup style="color:black;">T alk T o M e !  01:25, 22 January 2013 (UTC)
 * ,,,  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 10:03, 24 January 2013 (UTC)
 *  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 23:18, 24 January 2013 (UTC)
 *  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 22:45, 27 January 2013 (UTC)
 *  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 22:45, 27 January 2013 (UTC)
 * Go ahead and approve it Addshore. You're part of BAG now. ;)— cyberpower <sup style="color:olive;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 23:04, 27 January 2013 (UTC)
 * I think I'll avoid approving my own bots ;p  ·Add§hore·  <sup style="color:black;">T alk T o M e ! 23:07, 27 January 2013 (UTC)
 * Have fun with your new job. :)— cyberpower <sup style="color:olive;font-family:arnprior">Chat<sub style="margin-left:-4.4ex;color:olive;font-family:arnprior">Online 23:13, 27 January 2013 (UTC)
 *  MBisanz  talk 18:02, 28 January 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.