See my mediawiki.org userpage.
User Details
- User Since
- Sep 19 2014, 7:30 PM (594 w, 6 d)
- Roles
- Administrator
- Availability
- Available
- IRC Nick
- legoktm
- LDAP User
- Legoktm
- MediaWiki User
- Unknown
Today
Wed, Feb 11
Tue, Feb 10
I guess T148274: Implement a convenient way to link to ISBNs without magic links should be duped into this issue now?
Thu, Feb 5
Based on https://en.wikipedia.org/wiki/Wikipedia:Bots/Noticeboard#c-The_Anome-20260204155000-Legoktm-20260204003800 this seems like it was a misunderstanding on what was going away.
I don't have a strong opinion on how this is implemented (really I haven't thought about it), I do want to flag one potential area for improvement though. The signature for the hook is:
public static function onLinkerMakeExternalLink( &$url, &$text, &$link, &$attribs, $linktype ) { ... }
Wed, Feb 4
Mon, Jan 26
Edited the description to use the category names instead of the numerical IDs.
Sun, Jan 25
Trying to edit https://te.wikipedia.org/wiki/%E0%B0%AE%E0%B1%82%E0%B0%B8:Message_box gives "Scribunto module" content is not allowed on page మూస:Message box in slot "Main" which feels related but might be a distinct issue?
Thu, Jan 22
Wed, Jan 21
I wonder why page_content_model was wrongly set though. Is this the same issue as T108663#1741046? :/ If so, might be worth resurrecting a modified version of https://phabricator.wikimedia.org/source/mediawiki/browse/REL1_43/maintenance/fixDefaultJsonContentPages.php;848a9f279f42ed0edb0c83bde65254585bc829cb but for Scribunto.
Jan 7 2026
Jan 5 2026
This is basically implemented now, I think there are still some rough edges, like the save page message not indicating what wiki the page was saved on, but I've been using it for the past few hours and it's pretty functional. Thanks to @XtexChooser for doing the first part in mwapi last year :)
Dec 30 2025
Dec 27 2025
Please re-open if that wasn't sufficient.
Dec 24 2025
P.S. I added you to https://www.mediawiki.org/w/index.php?title=Mwbot-rs&diff=8101926&oldid=7828836, please feel free to update it if you'd like to be credited differently. I couldn't find a wiki account under your username so I linked to gitlab.
Sorry, I had missed your initial ping. Thanks for the patch, it's great!!
Dec 21 2025
@GalStar no objection to moving it in the monorepo, I had kept it separate since it didn't have any intra-project dependencies whereas most of the monorepo depends on each other.
May 28 2025
Thanks all!
May 27 2025
Apr 29 2025
Apr 18 2025
Apr 17 2025
I've started https://www.mediawiki.org/wiki/Extension:Scribunto/New_Lua_version. Please add other new Lua features that would be useful there (I've already copied @Od1n's comment above).
Apr 15 2025
Apr 5 2025
I pushed a 1.2.0 tag. On the production side, there's nothing worth upgrading for.
Apr 2 2025
Also, is "puppet groups" a good label for this? Is there a better term?
Let's do it. Here's what I rigged up locally (will push to GitLab in a bit).
See T319104: mwbot-rs: Support operation on multiple wikis. I had always imagined that mwbot would have the logic to support multi-wiki operation and mwapi would continue to stay single-wiki for simplicity. I'm not really fixed on that concept and would love to see some progress on this, so feel free to give it a shot.
Feb 8 2025
Jan 31 2025
To expand on that, if we think it's older cached content, shouldn't there be a corresponding change that has fixed it for new entries? And given there's a max time limit on varnish content, said change would've needed to be deployed within that time window.
@HCoplin-WMF is there a reason no incident report was ever written for this? (If it was, I couldn't find it when searching https://wikitech.wikimedia.org/wiki/Incident_status)
Jan 26 2025
The endpoints don't seem to always be equivalent. For example, a POST request to https://en.wikipedia.org/api/rest_v1/transform/wikitext/to/lint/User%20talk:Loganwasgood returns:
[{"type":"night-mode-unaware-background-color","dsr":[59,7185,47,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[241,2032,95,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[339,2029,213,6],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[2033,7182,47,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[2081,4771,111,0],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[2193,4771,83,2],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[4772,7179,114,0],"templateInfo":null,"params":[]},{"type":"night-mode-unaware-background-color","dsr":[4887,7179,83,2],"templateInfo":null,"params":[]}]Closing as declined since I don't think we can support this until Parsoid supports editing parameters as HTML instead of wikitext. (Please re-open if I'm mistaken)
This is done in parsoid 0.10.0-rc.4; aiming to do a stable release soon. I was peeking at the git log and it was a team effort by myself, xtex, mirror-kt and CountCount :)
@Peachey88 should be fixed now, I've worked around the MW bug.
Jan 25 2025
See T374683#10495069.
For better or worse, all the requests I've tried on test.wikipedia.org are returning etags 🙃
This has become a much bigger issue because RESTbase is now redirecting to the REST API.
I found T357603: REST API: ETag missing from some responses from page HTML endpoint which seems to be the cause. In the prior example, when I remove ?redirect=false, an etag shows up:
$ curl -I 'https://en.wikipedia.org/w/rest.php/v1/page/Wikipedia%3ARequests_for_adminship%2Ftheleekycauldron_2/html'| grep etag etag: W/"1170967427/fbb0a9e1-da83-11ef-9f0b-99a171ff8019/view/html"
Jan 15 2025
How do we move forward here @daniel?
There are both security and legal issues here.
Jan 13 2025
Jan 5 2025
Dec 18 2024
Time is a flat circle, back to loading extension information from PHP it seems :) This was proposed as part of the original RfC even:
Reading and parsing a JSON file will be slower than loading a PHP file due to APC and other factors. However, we can mitigate that by providing a script to "compile" all the required JSON files into their PHP equivalents.
Nov 10 2024
I released mwapi 0.6.1 by backporting just this fix. Thanks for reporting!
For some reason multipart::Part::stream wasn't working, when I switch it to:
Nov 8 2024
I spent a few minutes looking at this today, I started by getting:
Nov 6 2024
A limit of 5 edits per minute is incredibly slow (considering RESTBase let us run at 200 pages per second).
Nov 5 2024
Most of my bots and tools that used RESTBase are now broken, and I suspect this is the cause based on timing. I expect there are probably 20-25 tools that are broken, and a similar number of bots across a number of wikis.
Upload does not go through, and Some("TODO".to_string()) is returned instead
Nov 3 2024
Should be fixed now, I bumped up the memory: https://wikitech.wikimedia.org/w/index.php?title=Tool%3ARustup&diff=2240867&oldid=2236350
Sorry Magnus! I thought I had fixed this but guess not.
If you use the job framework (see https://wikitech.wikimedia.org/wiki/Help:Toolforge/Jobs_framework), there's a mariadb image which contains mysqldump.
Oct 30 2024
Thanks for getting the update done; do we know if this is exploitable and merits backports?
Oct 25 2024
The new ccorg interwiki has now been added, so I've submitted two patches:
- https://gerrit.wikimedia.org/r/1082873 <-- updates license text right away
- https://gerrit.wikimedia.org/r/1082874 <-- adds a new message; once deployed we can migrate https://commons.wikimedia.org/wiki/Template:Cc-pd-mark-footer (10M transclusions)
our open source virtual event platform for Wikimania (eventyay.com)
Oct 24 2024
Oct 23 2024
The Phabricator part of this was deployed, so we should be all set here!
Oct 17 2024
Oct 16 2024
Oct 15 2024
I believe I filed this ticket because certain developers were strongly pushing the use of query builders in MediaWiki, so it seemed like a good general pattern for tools too. Maybe the tool author can check in with one of those MediaWiki developers for help? :)
Oct 10 2024
Oct 9 2024
Ack, thanks for the explanation. I'll create a new /cn/ route then and will send a MR to update Phabricator's links too.
