User talk:Legoktm/February 2024


Administrators' newsletter – February 2024

News and updates for administrators from the past month (January 2024).

  Administrator changes

 
 

  Bureaucrat changes

  Worm That Turned
 

  CheckUser changes

  Wugapodes

  Interface administrator changes

 

  Guideline and policy news

  • An RfC about increasing the inactivity requirement for Interface administrators is open for feedback.

  Technical news

  • Pages that use the JSON contentmodel will now use tabs instead of spaces for auto-indentation. This will significantly reduce the page size. (T326065)

  Arbitration

  • Following a motion, the Arbitration Committee adopted a new enforcement restriction on January 4, 2024, wherein the Committee may apply the 'Reliable source consensus-required restriction' to specified topic areas.
  • Community feedback is requested for a draft to replace the "Information for administrators processing requests" section at WP:AE.

  Miscellaneous


Coverme

Hello friend. You're the maintainer of coverme, right? I tried to use it this morning and it seems like it is timing out. I get Wikimedia Toolforge Error. Our servers are currently experiencing a technical problem. This is probably temporary and should be fixed soon. Please try again later. after a couple minutes. Might need fixing when you get a chance. Thanks and enjoy your vacation! –Novem Linguae (talk) 16:15, 1 February 2024 (UTC)

@Novem Linguae: could you file this in Phab so it doesn't get lost? Legoktm (talk) 17:40, 1 February 2024 (UTC)
Sure, will do. Thanks for the quick reply! –Novem Linguae (talk) 18:49, 1 February 2024 (UTC)

I want a new list

User:WhatamIdoing/Possibly underlinked medicine articles from Wikipedia:Bot requests/Archive 85#Early idea is going to be empty very soon. Could you give me a new list from Wikipedia:WikiProject Africa and Wikipedia:WikiProject Food and drink? It can go in the same page. WhatamIdoing (talk) 23:45, 1 February 2024 (UTC)

TFA Protector Bot

Hello Legoktm, the bot seems to have stopped applying edit protection to TFAs? JennyOz (talk) 04:40, 3 February 2024 (UTC)

I'm not sure why, but it stalled at 2024-02-01T23:00:16.584686Z. I've restarted it for now, will look in more detail later this week. Legoktm (talk) 01:22, 5 February 2024 (UTC)
Thanks very much for restarting. JennyOz (talk) 08:51, 5 February 2024 (UTC)

Tech News: 2024-06

MediaWiki message delivery 19:20, 5 February 2024 (UTC)

User:HaleBot

Hello, Legoktm,

I think the bot needs to be restarted or get a tune-up. It's not just the report I use, it looks like it overslept. Thanks. Liz Read! Talk! 03:45, 9 February 2024 (UTC)

The Signpost: 13 February 2024

Tech News: 2024-07

MediaWiki message delivery 05:47, 13 February 2024 (UTC)

Tech News: 2024-08

MediaWiki message delivery 15:35, 19 February 2024 (UTC)

Wikipedia:Database reports/Unused non-free files

While investigating why User:B-bot hadn't tagged a particular unused nonfree image - it doesn't matter which one, it turned out to be something completely unrelated - I looked into the query HaleBot uses to update this page (which B-bot uses as a source).

It's not listing any files that are in use in any mainspace, rather than ones that aren't used in the main namespace in particular; and, more problematically, it's not listing files that have any file redirects, whether or not any of those redirects are in use.

In practice, the first isn't much of an issue, since there's at least one bot that removes such uses. The second, though, is; it's causing unused unfree files not to be tagged or deleted, sometimes for a long time. I've looked into two in particular as a sanity check - File:15 (Phatfish album - cover art).jpg (with redirect File:15 cover.jpg) was likely last removed from an article in June 2023, and File:Whitney Houston – One of Those Days.jpg (with redirects File:Houston onethosedays.jpg and File:Whitney Houston - One of Those Days.jpg) was likely last removed in October 2022. I'm seeing nearly 500 such images, comparing quarry:query/80400 to Wikipedia:Database reports/Unused non-free files.

Anyway, my question to you is, are these omissions intentional? It's ok if so, it just means I've got to take this up with User:B instead, and he's mostly inactive. —Cryptic 22:16, 14 February 2024 (UTC)

No, I don't think it's intentional. If you have a better query for HaleBot to use that fixes these issues that would be great, we can get the report updated (otherwise I can try to poke at it...later). Legoktm (talk) 04:00, 16 February 2024 (UTC)
quarry:query/80422 works, but it's significantly slower - I just timed it at 68 seconds on uncached data, compared to 11.5 for the current version.
I suspect the subquery at the end, which checks for usage of a redirect and is most of what slows it down so much, isn't necessary - every use of a file redirect currently has a row in imagelinks both for the redirect and for the file it points to - but I don't know how reliable that is. —Cryptic 08:19, 16 February 2024 (UTC)
Thanks! The slowness is fine, that's still relatively fast for the other queries HaleBot runs :) Applied, it should take effect for the next report run. Legoktm (talk) 05:28, 21 February 2024 (UTC)

Possible fix for Legobot "rfc top" issue

Hey,

I just wanted to give this a bump as I think it fell off your talk page during a period when you were inactive. I think I've figured out a fix for Legobot incorrectly matching the {{rfctop}} tag, the details are here in the archive. There's one broken regex that I've suggested a fix for, but I don't have git installed on any of my devices at the moment so couldn't make a pull request for it.

Happy to discuss though, if you get a moment to check it out. :) Sideswipe9th (talk) 04:04, 16 February 2024 (UTC)

Hi! Sorry about not replying earlier. I appreciate you providing a solution but I don't really have the bandwith to fully test it nor be around to fix it if something breaks. So if you have the ability to test it and are confident in it, I'm happy to apply it, but otherwise I'd prefer to stick with the known broken behavior instead of unknowns. Legoktm (talk) 05:08, 21 February 2024 (UTC)
I'm confident if you replace the regex on line 168 with the suggested one in my reply, it will prevent that regex matching on the {{rfctop}} and {{rfcbottom}} tags. That same regex also appears on line 185, where replacing it would have the same effect.
There are 6 other regexes in rfcbot.php that use the negative lookahead ?(?!\s+(top|bottom)), these are on lines 147, 149, 190, 205, 206, and 240. I know Enterprisy's 2019 pull requests to prevent Legobot matching on {{rfc top}} and {{rfc bottom}} tags modified all 8 regexes that currently contain this negative lookahead (the line numbers changed between the 2019 pull requests and today, but the regexes themselves haven't). I have manually tested with a regex debugger and I am confident that making my suggested replacement for all 8 of those regexes will have the same effect as the 2019 pull request, plus it will also prevent those regexes from matching on the {{rfctop}} and {{rfcbottom}} tags. I am also confident that this will not stop Legobot from correctly matching on a {{rfc}} tag, with or without an |rfcid= parameter.
The only thing I'm not sure of is whether you need to replace all 8 instances of of the negative lookahead, or if you only need to change one or both of the instances on lines 168 and 185. Because Enterprisy's original pull requests modified all 8 to prevent matching on {{rfc top}} and {{rfc bottom}} I suspect you might need to replace all 8, as that pull request partially fixed this issue for those two tags specifically. But I can't quite follow the logic flow of the the rfcbot module to be sure which of the 8 regexes are currently erroneously matching on {{rfctop}}, or if replacing all 8 is necessary.
Sorry if that's a little unclear. I'd love to be able to spin up a webdev environment with both MediaWiki and a Legobot instance to test the modified code in the context of a live page edit, but I'm not able to at the moment, and I can't quite figure out from the documentation what the environment requirements are beyond MediaWiki, Pywikibot, and a current version of PHP. Sideswipe9th (talk) 03:16, 22 February 2024 (UTC)

HaleBot

Hello, Legoktm,

I just thought I'd let you know that Wikipedia:Database reports/Empty categories hasn't been updated since February 18th. I do have that alternative source for empty categories but in case this is a problem with HaleBot, I thought I'd alert you. Thank you. Liz Read! Talk! 02:08, 22 February 2024 (UTC)

Ugh, I missed that, thanks. Seems something got stuck on Toolforge, filed T358175. Legoktm (talk) 04:16, 22 February 2024 (UTC)

Tech News: 2024-09

MediaWiki message delivery 19:21, 26 February 2024 (UTC)

MfD nomination of Wikipedia:Template editor/sandbox

  Wikipedia:Template editor/sandbox, a page which you created or substantially contributed to, has been nominated for deletion. Your opinions on the matter are welcome; you may participate in the discussion by adding your comments at Wikipedia:Miscellany for deletion/Wikipedia:Template editor/sandbox and please be sure to sign your comments with four tildes (~~~~). You are free to edit the content of Wikipedia:Template editor/sandbox during the discussion but should not remove the miscellany for deletion template from the top of the page; such a removal will not end the deletion discussion. Thank you. Awesome Aasim 22:47, 27 February 2024 (UTC)