Commons:Bots/Requests/KrinkleBot (2)

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

KrinkleBot (talk · contribs)

Operator:Krinkletalk

Bot's tasks:

Currently I am running this script as a sysop on User:Krinkle/enwiki mainpage. Purpose of this script: Protect files used on English Wikipedia's main page on Commons (since Wikipedia's cascading protection doesn't rule here). The system works as follows:

  • Periodically (every 10-15 minutes[1]) the bot looks which images are used on the main page of Wikipedia
  • It prepares an edit with a ‎<gallery> to be saved to Commons. If nothing has changed, edit will collapse as a null-edit (no revision saved). If something has changed, there will be a new revision thus updating the cascading protection
  • The target page (currently User:Krinkle/enwiki mainpage, in the future Commons:Auto-protected images/wikipedia/en) must be cascading sysop-protected. Which is why the bot must have sysop-rights (that's what this request is for).
[1]: Originally I did this once a day (since the main page is per-day), however several parts (trancluded parts, such as DYI) change more often or at least not at the same time as the rest. Therefor I choose to run it every 10 minutes. In most cases, due to null-edit collapsing, there is not actually an edit made every 10 minutes. It only saves an edit if something actually changes which is only about 5 or 6 times a day

Automatic or manually assisted: Automatic

Edit type : Periodically (cronjob)

Maximum edit rate (eg edits per minute): Edits once every 10-15 minutes. Right now this would only be for en.wikipedia (so that's 1 edit attempt in 10 minutes - which, as described above, is about 5-6 actual edits per day). If more wikis request this (which I am planning), it would be a little higher.

Bot flag: Already have a bot flag. Requesting sysop.

Programming language(s): Python (fileprotectionsync.py)

Krinkletalk 18:50, 2 October 2011 (UTC)Reply[reply]

Discussion

Was about to make one for zhwiki and realized there's already one running :P Jimmy Xu (talk) 11:36, 3 October 2011 (UTC)Reply[reply]

I think it's reasonable to give administrator status, otherwise testing will be impossible. From other side it's good idea to run it for small amount of time (day-two) to check functionality before "production". --EugeneZelenko (talk) 14:50, 3 October 2011 (UTC)Reply[reply]

Symbol keep vote.svg Agree --Jarekt (talk) 15:01, 6 October 2011 (UTC)Reply[reply]

This can be very beneficial if the bot is open for different projects to use. zh.wikipedia just saw the first case of main page image vandalism last week and this definitely is going to help. --Ben.MQ (talk) 16:32, 6 October 2011 (UTC)Reply[reply]

If there is no objections, I think we sgould grant administrator status to bot for further testing. --EugeneZelenko (talk) 14:47, 9 October 2011 (UTC)Reply[reply]

Bot has administrator status. --EugeneZelenko (talk) 14:54, 11 October 2011 (UTC)Reply[reply]
I created Commons:Auto-protected files. Testing enwiki and zhwiki currently. –Krinkletalk 21:30, 16 October 2011 (UTC)Reply[reply]

I think will be good idea to create copies o main pages with templates called in future time (like 20 minutes ahead) instead of main page with current time. So protection will be more reliable. --EugeneZelenko (talk) 14:53, 24 October 2011 (UTC)Reply[reply]

Is it possible to apply upload protection by using cascading protection? I tried to access reupload interface using my alternate account without admin flag, and it was possible to access the page, but I did not upload anything. I wonder this method would really work. Best regards. – Kwj2772 (msg) 04:52, 23 November 2011 (UTC)Reply[reply]
You will receive an error message after clicking upload, I think. Bencmq (talk) 14:58, 23 November 2011 (UTC)Reply[reply]

  • The bot has been working well for some time, I propose that we formally approve and close this. --99of9 (talk) 02:09, 22 May 2012 (UTC)Reply[reply]