Jump to content

Wikipedia:Bots/Requests for approval/Jmax-bot: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Discussion: is it solved ?
Thehelpfulbot (talk | contribs)
m Robot: Renaming "Category:Wikipedia approved bot requests" and general fixes to page;
 
(28 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Wikipedia bot requests for approval]]</noinclude>
<noinclude>
[[Category:Approved Wikipedia bot requests for approval|Jmax-bot]]
<div class="boilerplate metadata" style="background-color: #dedaca; margin: 2em 0 0 0; padding: 0 10px 0 10px; border: 1px solid #AAAAAA;">
==[[User:Jmax-bot|Jmax-bot]]==
:''The following discussion is an archived debate. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.'' The result of the discussion was [[File:Symbol keep vote.svg|20px]] '''Approved'''.<!-- from Template:Bot Top-->
== [[User:Jmax-bot|Jmax-bot]] ==
{{Newbot|Jmax-bot}}
{{Newbot|Jmax-bot}}


Line 12: Line 15:


<!--Please keep Function Summary SHORT-->
<!--Please keep Function Summary SHORT-->
'''Function Summary:''' [[WP:FA]] counting
'''Function Summary:''' [[Wikipedia:FA]] counting


'''Edit period(s)''' ''(e.g. Continuous, daily, one time run)''''':''' Daily
'''Edit period(s)''' ''(e.g. Continuous, daily, one time run)''''':''' Daily
Line 23: Line 26:


<!--List full function details here-->
<!--List full function details here-->
'''Function Details:''' Currently, it merely counts the number of [[WP:FA|Featured Articles]] and places them on [[User:Jmax-bot/FACounter]], as per [[Wikipedia:Bot_requests#featured_article_counter|this request]] by [[User:BanyanTree]]. Perhaps more at a future date, pending any requests.
'''Function Details:''' Currently, it merely counts the number of [[Wikipedia:FA|Featured Articles]] and places them on [[User:Jmax-bot/FACounter]], as per [[Wikipedia:Bot_requests#featured_article_counter|this request]] by [[User:BanyanTree]]. Perhaps more at a future date, pending any requests.


===Discussion===
=== Discussion ===
*Quick question - can you explain a little about the whitelist? (And how a newly registered account can't mess it up by making a vandalism at the right moment). Also, if/when it is given the admin flag, I assume it can be retargetted at [[template:FA number]], right? [[User:Raul654|Raul654]] 03:43, 11 December 2006 (UTC)
*Quick question - can you explain a little about the whitelist? (And how a newly registered account can't mess it up by making a vandalism at the right moment). Also, if/when it is given the admin flag, I assume it can be retargetted at [[Template:FA number]], right? [[User:Raul654|Raul654]] 03:43, 11 December 2006 (UTC)
From [http://en.wikipedia.org/wiki/Wikipedia_talk:Featured_articles#bot_request_for_approval the example here:]
From [http://en.wikipedia.org/wiki/Wikipedia_talk:Featured_articles#bot_request_for_approval the example here:]
* One question. What happens if an RC patroller reverts the vandalism? Neither UserA nor VandalReverter would be on the whitelist... what would the bot do then? [[User:Titoxd|Tito]][[Wikipedia:Esperanza |<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]])</sup> 04:30, 11 December 2006 (UTC)
* One question. What happens if an RC patroller reverts the vandalism? Neither UserA nor VandalReverter would be on the whitelist... what would the bot do then? [[User:Titoxd|Tito]][[Wikipedia:Esperanza |<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]])</sup> 04:30, 11 December 2006 (UTC)
Line 83: Line 86:
:You presume correctly. Perhaps I should go one step further to make it post on the talk page in that case, or some other way to notify you three in that situtation (currently it merely prints an error). --[[User:Jmax-|Jmax-]] 22:39, 12 December 2006 (UTC)
:You presume correctly. Perhaps I should go one step further to make it post on the talk page in that case, or some other way to notify you three in that situtation (currently it merely prints an error). --[[User:Jmax-|Jmax-]] 22:39, 12 December 2006 (UTC)
::That seems excessive, as it would mean about 23 talk posts a day given that the total on WP:FA changes at best once in 24 hrs. The update will show up on watchlists? That should be oversight enough. [[User:Marskell|Marskell]] 03:45, 13 December 2006 (UTC)
::That seems excessive, as it would mean about 23 talk posts a day given that the total on WP:FA changes at best once in 24 hrs. The update will show up on watchlists? That should be oversight enough. [[User:Marskell|Marskell]] 03:45, 13 December 2006 (UTC)
::: I think Jmax means that if of the last 15 revisons to [[WP:FA]], ''none'' are by either one of you three, to ask at [[WT:FA]]? That would be a good idea. The only thing I would like for it is to store in memory the revision_id of the last edit it processed, so if indeed hell freezes over and no "authorized user" edits the page substantially, it doesn't warn over and over again every hour. [[User:Titoxd|Tito]][[Wikipedia:Esperanza |<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]])</sup> 07:48, 14 December 2006 (UTC)
::: I think Jmax means that if of the last 15 revisons to [[Wikipedia:FA]], ''none'' are by either one of you three, to ask at [[Wikipedia talk:FA]]? That would be a good idea. The only thing I would like for it is to store in memory the revision_id of the last edit it processed, so if indeed hell freezes over and no "authorized user" edits the page substantially, it doesn't warn over and over again every hour. [[User:Titoxd|Tito]][[Wikipedia:Esperanza |<span style="color:#008000;">xd</span>]]<sup>([[User talk:Titoxd|?!?]])</sup> 07:48, 14 December 2006 (UTC)
:::: That's a given. So, what is the status on this? The bot is ready, and has been for some time. Oh, another question: Should I expand the bot to count WP:GA? --[[User:Jmax-|Jmax-]] 09:46, 14 December 2006 (UTC)
:::: That's a given. So, what is the status on this? The bot is ready, and has been for some time. Oh, another question: Should I expand the bot to count WP:GA? --[[User:Jmax-|Jmax-]] 09:46, 14 December 2006 (UTC)
::::: I would think GA would be pretty hard to count, because anyone can add and delete. If you're offering to expand, [[WIkipedia:Former featured articles]] has a count in the text which myself, Joelr31 and Marskell are keeping manually. The structure of the article is very similar to [[WP:FA]], except that there is a comment field for tally by area, which is a hassle. [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 12:34, 14 December 2006 (UTC)
::::: I would think GA would be pretty hard to count, because anyone can add and delete. If you're offering to expand, [[WIkipedia:Former featured articles]] has a count in the text which myself, Joelr31 and Marskell are keeping manually. The structure of the article is very similar to [[Wikipedia:FA]], except that there is a comment field for tally by area, which is a hassle. [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 12:34, 14 December 2006 (UTC)


(reindent)It depends on if you want the vandal-spoofing feature, the lack of which is a total deal breaker if the number appears on the Main Page. It would be nice to be able to transclude a FFA count, perhaps to a [[Template:FFA number]] with a commented section like {{tl|FA number}}, as a way for final troubleshooting. Otherwise, I'm running out of questions. - [[User:BanyanTree|Banyan]][[User talk:BanyanTree|Tree]] 14:05, 14 December 2006 (UTC)
(reindent)It depends on if you want the vandal-spoofing feature, the lack of which is a total deal breaker if the number appears on the Main Page. It would be nice to be able to transclude a FFA count, perhaps to a [[Template:FFA number]] with a commented section like {{tl|FA number}}, as a way for final troubleshooting. Otherwise, I'm running out of questions. - [[User:BanyanTree|Banyan]][[User talk:BanyanTree|Tree]] 14:05, 14 December 2006 (UTC)
:I've updated the debug report to include a list of whitelisted users. I have also added FFA counts. See [[User:Jmax-bot/FFACounter]] --[[User:Jmax-|Jmax-]]
:I've updated the debug report to include a list of whitelisted users. I have also added FFA counts. See [[User:Jmax-bot/FFACounter]] --[[User:Jmax-|Jmax-]]
::Sweet! Can you have the bot put the most recent FFA number into [[Template:FFA number]]? We can then transclude the number back into [[WP:FFA]], so people can avoid the manual update. Thanks! - [[User:BanyanTree|Banyan]][[User talk:BanyanTree|Tree]] 01:53, 15 December 2006 (UTC)
::Sweet! Can you have the bot put the most recent FFA number into [[Template:FFA number]]? We can then transclude the number back into [[Wikipedia:FFA]], so people can avoid the manual update. Thanks! - [[User:BanyanTree|Banyan]][[User talk:BanyanTree|Tree]] 01:53, 15 December 2006 (UTC)
:::This is great, Jmax. My count on FFAs is one off from the bot, so as I soon as I finish up some other work, I'll run through that and see what's up. Thanks so much. Back to you later, [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 02:00, 15 December 2006 (UTC)
:::This is great, Jmax. My count on FFAs is one off from the bot, so as I soon as I finish up some other work, I'll run through that and see what's up. Thanks so much. Back to you later, [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 02:00, 15 December 2006 (UTC)
Please make sure that there are no "red herrings" in the FFA count debug. It only checks for links between two specified boundaries, and could possibly pick up false positives. I'll run it right now for you. --[[User:Jmax-|Jmax-]] 02:07, 15 December 2006 (UTC)
Please make sure that there are no "red herrings" in the FFA count debug. It only checks for links between two specified boundaries, and could possibly pick up false positives. I'll run it right now for you. --[[User:Jmax-|Jmax-]] 02:07, 15 December 2006 (UTC)
:I see WP:FA in the bot count, which appears to coming from the link in the final section header, "Former featured articles that have been re-promoted". - [[User:BanyanTree|Banyan]][[User talk:BanyanTree|Tree]] 02:14, 15 December 2006 (UTC)
:I see WP:FA in the bot count, which appears to coming from the link in the final section header, "Former featured articles that have been re-promoted". - [[User:BanyanTree|Banyan]][[User talk:BanyanTree|Tree]] 02:14, 15 December 2006 (UTC)
::I just finished the other stuff I was working on - is it solved, then, or should I have a look? If the bot is going to be counting, I'm going to delete those goofy commented subcounts by section, which are a chore. [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 03:19, 15 December 2006 (UTC)
::I just finished the other stuff I was working on - is it solved, then, or should I have a look? If the bot is going to be counting, I'm going to delete those goofy commented subcounts by section, which are a chore. [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 03:19, 15 December 2006 (UTC)
:::Yes, that was it; it was counting the WP:FA in the heading. [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 03:30, 15 December 2006 (UTC)
Status - As I told Jmax, I'm letting it run for a few days. If nothing problematic happens (and so far, nothing has) then I'm going to set the bot and sysop flags on the Jmax bot account, and then all Jmax has to do is set it to target the FA num template. [[User:Raul654|Raul654]] 18:52, 14 December 2006 (UTC)
Status - As I told Jmax, I'm letting it run for a few days. If nothing problematic happens (and so far, nothing has) then I'm going to set the bot and sysop flags on the Jmax bot account, and then all Jmax has to do is set it to target the FA num template. [[User:Raul654|Raul654]] 18:52, 14 December 2006 (UTC)
:Note - I promoted two FAs today and it [http://en.wikipedia.org/enwiki/w/index.php?title=User:Jmax-bot/FACounter&diff=94350052&oldid=94337218 worked like a charm] [[User:Raul654|Raul654]] 20:17, 14 December 2006 (UTC)
:Note - I promoted two FAs today and it [http://en.wikipedia.org/enwiki/w/index.php?title=User:Jmax-bot/FACounter&diff=94350052&oldid=94337218 worked like a charm] [[User:Raul654|Raul654]] 20:17, 14 December 2006 (UTC)
::Of course! --[[User:Jmax-|Jmax-]] 01:42, 15 December 2006 (UTC)
::Of course! --[[User:Jmax-|Jmax-]] 01:42, 15 December 2006 (UTC)

Ok, thanks for your help BT! I've made the change and it's updated now. --[[User:Jmax-|Jmax-]] 04:53, 15 December 2006 (UTC)

'''Anything w/ sysop privs''' needs full code published. If anyone read the massive [http://en.wikipedia.org/wiki/Wikipedia:Requests_for_adminship/TawkerbotTorA TawkerbotTorA] discussion, sysop bots are not exactly a ordinary thing, it's not something any 'crat can just set rights on. At the very least, the code for this one needs to be published -- [[User:Tawker|Tawker]] 07:50, 15 December 2006 (UTC)

:I am philosophically opposed to allowing a non-admin to control a bot account with admin rights. If Jmax- publishes his code, I would not be opposed to allowing an existing admin to set up a bot account to run it. Or even just have Jmax- run all the code except the part requiring admin rights and have seperate bot controlled by an admin copy over the figures. [[User:Dragons flight|Dragons flight]] 08:05, 15 December 2006 (UTC)

::I understand fully. If there are any admins with Perl experience who would like to use (perhaps contribute) the bot and accompanying framework (which is currently rather bare, but shall hopefully grow), then I would prefer that. Alternatively, Werdna (on IRC - #wikipedia) suggested that the count be placed in a sub-page of User:Jmax-bot with the suffix '.js', which would make it only editable by that user, and sysops. This feels like a dirty hack, however, and may not be the best solution. In addition, I will publish the code shortly. --[[User:Jmax-|Jmax-]] 08:24, 15 December 2006 (UTC)

:I agree that giving a bot +sysop is not to be taken lightly. This is like creating a [[setuid]] program. The [[Trusted Computing Base]] should be minimized. If the only need for sysop priviledges is to update a protected template, I recommend splitting the functionality into two bots, 1) a non-admin bot that updates a non-protected page (or equivalently edit a local file, send an email, etc.), and 2) an admin bot which does the necessary edit to the protected page with published, minimum number of lines of code. <span class="user-sig user-Quarl"><i>—[[User:Quarl|Quarl]] <sup>([[User Talk:Quarl|talk]])</sup> <small>2006-12-15 08:41Z</small></i></span>

: Would support the dirty hack (it was my first thought as an alternative), doubt I'd support it as an admin bot. As previous RFAs for bot accounts have shown, people are pretty wary of giving out those privileges unless there is a clear benefit outweighing the downside, in the scheme of things I can't see saving an admina single edit per day (or the FA count being wrong for while) being considered to be that huge a benefit. --[[User talk:Pgk|pgk]] 11:48, 15 December 2006 (UTC)
::I was neutral on TawkerbotTorA, but at least there was a decent rationale (a few hundred blocks per month). This is one edit per day? Opposed to sysopping it. [[User talk:Thatcher131|Thatcher131]] 15:19, 15 December 2006 (UTC)
:I'd also support the .js subpage, which makes a lot more sense than sysopping the bot. --[[User:ais523|ais523]] 16:09, 15 December 2006 ([[User:ais523|U]][[User talk:ais523|T]][[Special:Contributions/Ais523|C]])

The hack is not a good idea. However, I don't have any objections to Jmax supplying the code to someone who does have an admin account, who could schedule it as a cron job on their own admin account. I looked over the code myself a few days ago, and it seems straightforward (or as straightforward as Perl can be, at any rate). [[User:Raul654|Raul654]] 17:01, 15 December 2006 (UTC)
: Can you expand on why it is not a good idea? I can't see any technical issues. --[[User talk:Pgk|pgk]] 17:59, 15 December 2006 (UTC)
::I don't see technical issues - it's just a major misuse of the .js file for something it was never intended for. It feels... icky. [[User:Raul654|Raul654]] 18:06, 15 December 2006 (UTC)
:::That's the feeling of a hack, alright. Anyways, if consensus proves to be to use the hack, I'll gladly do it. --[[User:Jmax-|Jmax-]] 22:18, 15 December 2006 (UTC)

OK, in that case, Jmax, can you please modify the bot to add the number (and just the number) to the Jmax bot's .js file? [[User:Raul654|Raul654]] 18:18, 16 December 2006 (UTC)

'''Approved''' and article count put on the main page -- [[User:Tawker|Tawker]] 08:08, 17 December 2006 (UTC)

:<s>Is the FFA [[Wikipedia:Former featured articles]] count also approved, and if so, where is it being put? </s>[[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 15:51, 17 December 2006 (UTC)
::I see it's already done - thanks ! [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 16:00, 17 December 2006 (UTC)

Marskell removed an article, and it updated correctly in both places. [[User:SandyGeorgia|Sandy]] ([[User talk:SandyGeorgia|Talk]]) 17:31, 18 December 2006 (UTC)

:''The above discussion is preserved as an archive of the debate. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.''<!-- from Template:Bot Bottom --></div>
</noinclude>

Latest revision as of 22:58, 26 February 2009