Wikipedia:Bots/Requests for approval/B-bot 5
- 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 Approved.
Operator: B (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 18:56, Tuesday, June 23, 2015 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): C#
Source code available: User:B-bot/source/Daily Page Creator
Function overview: At midnight GTC, check to see if the dated Category:Wikipedia files missing permission exists. If it does not, create it.
Links to relevant discussions (where appropriate):
Edit period(s): Just before midnight GTC
Estimated number of pages affected: Realistically, 1 per night
Exclusion compliant (Yes/No): N/A
Already has a bot flag (Yes/No): Yes
Function details: Normally, Hazard-Bot (talk · contribs) creates the daily pages at Category:Wikipedia_files_missing_permission, but it has been AWOL the last few days (since the tool server meltdown) and Hazard-SJ (talk · contribs) has not responded.
So what I would like to do is to add a B-bot task to serve as a backup for this page in particular or for any other page that is created daily.
I can make this task so that it will have a configurable on-wiki (fully protected) user subpage, so that way if DumbBOT (talk · contribs), who handles all of the other pages at CAT:CSD#Dated_deletion_categories, ever goes down, or if there is any other daily dated categories that may be requested in the future, I can handle it without a coding change.
B-bot will run at exactly midnight GTC, and look to see whether the page in question (e.g. Category:Wikipedia files missing permission as of 23 June 2015) exists. If it does not, it will create it. If it already exists, it will do nothing. If Hazard-Bot starts working again, B-bot will see the page exists and will do nothing.
My OTRS pending task does something similar for the monthly OTRS categories, so on the basis of that similar functionality already demonstrated as working, I'm hoping for speedy approval since right now, we're having to manually create these dated missing permission categories. --B (talk) 18:56, 23 June 2015 (UTC)[reply]
Discussion
[edit]- These categories are needed, so I support this proposal. Maybe also check whether the next one or two days exist and create those categories too? This would prevent problems if all bots are down on some day. --Stefan2 (talk) 21:34, 23 June 2015 (UTC)[reply]
- I have now completed a successful test in simulated mode with the results at User:B-bot/Event_log#Daily_Page_Creator_-_12:10.2C_24_June_2015_.28UTC.29. Since this is an immediate need and it's a straight forward and completely non-controversial task, can we do a speedy approval process? --B (talk) 12:12, 24 June 2015 (UTC)[reply]
((BAGAssistanceNeeded))
Approved for trial (5 days). Please provide a link to the relevant contributions and/or diffs when the trial is complete. -- Magioladitis (talk) 16:55, 27 June 2015 (UTC)[reply]
- Category:Wikipedia files missing permission as of 28 June 2015 was created twice. Why did this happen? --Stefan2 (talk) 17:43, 30 June 2015 (UTC)[reply]
- @Stefan2: The first time, it used the default edit summary, "Automatic page editing by robot". I decided to make it use a better edit summary, so I deleted the page and allowed the bot to re-create it in order to test my improved edit summary. Then, according to the log, Diannaa (talk · contribs) inadvertently deleted the category. When she restored it, she restored both revisions. So that's why you see two revisions there - it's not a bug - just me actually running it twice. --B (talk) 16:20, 1 July 2015 (UTC)[reply]
- My bad, I accidentally deleted some categories on the 27th by running a batch delete on the wrong page. Too many tabs open, is where I went wrong. Sorry, -- Diannaa (talk) 16:24, 1 July 2015 (UTC)[reply]
- @Diannaa: no problem - I think we've all deleted a category instead of the page we actually intended to delete once in a while. --B (talk) 16:31, 1 July 2015 (UTC)[reply]
- Twas very alarming. I will certainly be more careful with automated work in the future. Luckily using my deletion log I was able to quickly reverse the mistake. -- Diannaa (talk) 16:34, 1 July 2015 (UTC)[reply]
- @Diannaa: no problem - I think we've all deleted a category instead of the page we actually intended to delete once in a while. --B (talk) 16:31, 1 July 2015 (UTC)[reply]
- My bad, I accidentally deleted some categories on the 27th by running a batch delete on the wrong page. Too many tabs open, is where I went wrong. Sorry, -- Diannaa (talk) 16:24, 1 July 2015 (UTC)[reply]
- @Stefan2: The first time, it used the default edit summary, "Automatic page editing by robot". I decided to make it use a better edit summary, so I deleted the page and allowed the bot to re-create it in order to test my improved edit summary. Then, according to the log, Diannaa (talk · contribs) inadvertently deleted the category. When she restored it, she restored both revisions. So that's why you see two revisions there - it's not a bug - just me actually running it twice. --B (talk) 16:20, 1 July 2015 (UTC)[reply]
- Trial complete. @Magioladitis: The process has now run for five days without incident. --B (talk) 11:36, 2 July 2015 (UTC)[reply]
Approved. -- Magioladitis (talk) 08:10, 5 July 2015 (UTC)[reply]
- 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.