Commons:Bots/Requests/Leaderbot
Operator: Leaderboard (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)
Bot's tasks for which permission is being sought:: Upload graphs for meta:Global statistics
Automatic or manually assisted:: Automatic
Edit type (e.g. Continuous, daily, one time run): Daily Daily, but with a minimum of 6 days' gap for any given wiki
Maximum edit rate (e.g. edits per minute): ~1000/day ~1000 every six days (one for the upload, one for the accompanying wikitext for that file)
Bot flag requested: (Y/N): Y
Programming language(s): Python
I'm thinking of introducing graphs for Global Statistics, and (due to issues with the Graph extension) the only option is to upload images - which I plan to do on Commons. The graphs would be SVGs, and all graphs would have a common category. The account already has a bot flag and has been running for about a year on Meta.
Leaderboard (talk) 06:52, 13 February 2024 (UTC)
- Discussion
- Please create bot's user and talk pages and make test run. --EugeneZelenko (talk) 16:41, 13 February 2024 (UTC)
- @EugeneZelenko: , the bot does have a global user page (it just doesn't have a local account) - can I route the user talk page to mine? Regarding test runs, is there a specific limit (say 50)? Leaderboard (talk) 16:58, 13 February 2024 (UTC)
- Bot should have local user page with information about owner. See other bots as example. It's fine to redirect bot's talk page to yours. There is no specific limit, but 50 is too much on my mind. --EugeneZelenko (talk) 16:29, 14 February 2024 (UTC)
- Hi @EugeneZelenko: would a test on the meta:Beta Cluster (i.e, https://commons.wikimedia.beta.wmflabs.org/wiki/Main_Page) be enough? Leaderboard (talk) 16:50, 23 February 2024 (UTC)
- What is preventing uploads directly on Commons? --EugeneZelenko (talk) 16:17, 24 February 2024 (UTC)
- @EugeneZelenko: I'm asking mostly as a way to alleviate your concern on "There is no specific limit, but 50 is too much on my mind". Normally the testing process involves running it on the Beta Cluster, and then switching it to the main sites if things are OK on the cluster. The Meta people was fine on that; didn't know what Commons' preference was. If you want me to run the test directly I can do so. Leaderboard (talk) 05:57, 25 February 2024 (UTC)
- Please test on Commons. Krd 15:48, 26 February 2024 (UTC)
- @Krd: Got it. This is likely to take a few days since I'm busy at the moment; I'll ping both of you when I get it done. Leaderboard (talk) 06:12, 27 February 2024 (UTC)
- @Krd and EugeneZelenko: Done, though the bot couldn't create pages due to it being hit by captchas - I've requested temp confirmed access at Commons:Requests_for_rights#Confirmed. As a result, the bot only uploaded the images. Leaderboard (talk) 18:05, 4 March 2024 (UTC)
- Now that the bot has confirmed rights, test Done Leaderboard (talk) 18:24, 4 March 2024 (UTC)
- Will statistics be updated several times a day? How about raw data instead of particular chart type? --EugeneZelenko (talk) 16:41, 5 March 2024 (UTC)
- Hi @EugeneZelenko: ,
- It's expected to be updated once a day.
- Raw data can be seen at meta:Global statistics, however, only up to ~40000 rows can be seen due to MediaWiki's 2 MB limit per page.
- Leaderboard (talk) 16:59, 5 March 2024 (UTC)
- Hi @EugeneZelenko: ,
- Will statistics be updated several times a day? How about raw data instead of particular chart type? --EugeneZelenko (talk) 16:41, 5 March 2024 (UTC)
- @Krd: Got it. This is likely to take a few days since I'm busy at the moment; I'll ping both of you when I get it done. Leaderboard (talk) 06:12, 27 February 2024 (UTC)
- Please test on Commons. Krd 15:48, 26 February 2024 (UTC)
- @EugeneZelenko: I'm asking mostly as a way to alleviate your concern on "There is no specific limit, but 50 is too much on my mind". Normally the testing process involves running it on the Beta Cluster, and then switching it to the main sites if things are OK on the cluster. The Meta people was fine on that; didn't know what Commons' preference was. If you want me to run the test directly I can do so. Leaderboard (talk) 05:57, 25 February 2024 (UTC)
- What is preventing uploads directly on Commons? --EugeneZelenko (talk) 16:17, 24 February 2024 (UTC)
- Hi @EugeneZelenko: would a test on the meta:Beta Cluster (i.e, https://commons.wikimedia.beta.wmflabs.org/wiki/Main_Page) be enough? Leaderboard (talk) 16:50, 23 February 2024 (UTC)
- Bot should have local user page with information about owner. See other bots as example. It's fine to redirect bot's talk page to yours. There is no specific limit, but 50 is too much on my mind. --EugeneZelenko (talk) 16:29, 14 February 2024 (UTC)
- @EugeneZelenko: , the bot does have a global user page (it just doesn't have a local account) - can I route the user talk page to mine? Regarding test runs, is there a specific limit (say 50)? Leaderboard (talk) 16:58, 13 February 2024 (UTC)
- I think daily differences will be hardly visible in the graphic. Perhaps it's sufficient to do it weekly, and even then only if the output has changed? --Krd 05:00, 7 March 2024 (UTC)
- Hi @Krd: I can do that, however, by "if the output has changed" it would depend on MediaWiki letting the bot know if it's uploading an exact copy (which would be the case if nothing has changed). Does that work? Leaderboard (talk) 06:23, 7 March 2024 (UTC)
- I'd say the last uploaded file could be stored locally, and if the new file is identical, the upload try could be skipped. Does that make sense? --Krd 05:00, 8 March 2024 (UTC)
- @Krd: It does; I'm thinking more on the lines of technical feasibility as the program is not designed to leave temp files like that. Regardless, this is something I can look at implementing either way. Leaderboard (talk) 07:01, 8 March 2024 (UTC)
- @Krd: This has now been implemented on both parts (i.e, it will only upload if it's at least ~6 days old and the file is different) - can this now be approved? Leaderboard (talk) 08:35, 10 March 2024 (UTC)
- @Krd: It does; I'm thinking more on the lines of technical feasibility as the program is not designed to leave temp files like that. Regardless, this is something I can look at implementing either way. Leaderboard (talk) 07:01, 8 March 2024 (UTC)
- I'd say the last uploaded file could be stored locally, and if the new file is identical, the upload try could be skipped. Does that make sense? --Krd 05:00, 8 March 2024 (UTC)
- Hi @Krd: I can do that, however, by "if the output has changed" it would depend on MediaWiki letting the bot know if it's uploading an exact copy (which would be the case if nothing has changed). Does that work? Leaderboard (talk) 06:23, 7 March 2024 (UTC)
Approved. --Krd 03:13, 11 March 2024 (UTC)