Commons:Bots/Requests/RileyBot 4

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

RileyBot (talk · contribs) 4

Operator: Riley Huntley (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Simple find and replace task in the file namespace;

  • Replace | Permission = See below with | Permission =
  • Regex: (?P<start>\|(\s*)[Pp]ermission\s*)=(\s*)[Ss]ee [Bb]elow([. ]+)?(?P<end>\n|\}\}) to \g<start>=\g<end>
  • Examples: Normal Capitals Period

Automatic or manually assisted: Automatic

Edit type (e.g. Continuous, daily, one time run): Continuous

Maximum edit rate (eg edits per minute): 20epm maxlag:5

Bot flag requested: (Y/N): N

Programming language(s): AWB Python (Pywikipedia)

Riley Huntley (talk) 01:05, 10 March 2013 (UTC)[reply]

Discussion

Looks OK for me. But I think will be good idea to combine such clean up with others, like section headers internationalization. --EugeneZelenko (talk) 14:57, 10 March 2013 (UTC)[reply]
I am currently writing a bot for another cleanup task like this but in regards to section headers internationalization, there are bots that currently do that task. (I found that out in RileyBot 3) Riley Huntley (talk) 20:16, 10 March 2013 (UTC)[reply]
Even if we have dedicated bot for this task, it's still good idea to make one clean up edit instead of two. --EugeneZelenko (talk) 14:43, 11 March 2013 (UTC)[reply]
  • Ok, that sounds very reasonable. While I agree with Eugene that consolidation of bot tasks would be nice to keep the overall bot edit frequency down it is true that such a coordination seems very difficult at this time. I suggest we do a role call of bot operators in the near future and get an inventory of bot activities to see who is doing what and if they are still interested in doing their tasks. In the meantime I think we should not make you wait for that to happen. Why don't you go ahead and show us some test edits. --Dschwen (talk) 16:06, 12 March 2013 (UTC)[reply]
  • Yikes, now i don't understand the regexp anymore. Will have to look up the <start> syntax. Anyhow. Last thing I would suggest is making the edit summary a bit more specific, since your bot performs exactly one sub task of cleaning up the file description. Namely: "Removing see below from permission data in file Information template". Then I approve, but let's give Eugene some time to comment on this first..--Dschwen (talk) 21:37, 12 March 2013 (UTC)[reply]
  • Yea, the regexp is hard to understand now but basically the only difference is that when I had the old regex it would change lets say "| Permission = See below and blahblah" to "| Permission = and blahblah". So now, it will just skip a string like that and move on. In regards to the edit summary, thank you! I find the hardest thing about bots is finding the right edit summary. :P Riley Huntley (talk) 22:31, 12 March 2013 (UTC)[reply]

Approved. --Dschwen (talk) 19:52, 18 March 2013 (UTC)[reply]