Thanks for picking this up Daniel!
Page protections seem to lag a bit behind other administrative tools in terms of easy of use/data availability, so any work in that area is welcome even if not immediately useful. I'll make sure to log the other weird stuff in Phabricator so the team can get an idea of the gap.
Best, Strainu
În mie., 8 oct. 2025 la 18:53, Daniel Kinzler dkinzler@wikimedia.org a scris:
Hi Strainu,
This touches on an issue with the internal representation of "protection changed" event. I filed a ticket for fixing it https://phabricator.wikimedia.org/T406751. Thanks to Tgr for bringing it to my attention.
Having a MediaWiki domain event fire when protection expires wouldn't directly solve your problem, but it would make it possible to eventually include it in a public event stream of some sort.
Cheers, daniel
Am 07.10.2025 um 15:06 schrieb Strainu:
Hi all,
I'm trying to automate wrangling protection templates. Adding them is trivial, but I'm having issues with the removal. The best I have is go waaay back on protections, check the expiration date and see if the page is still protected. But that's both expensive and useless for long-term protections.
Is there any event/notification/anything at all available through the API that would allow me to know which pages' protection expired recently without keeping a list of protected pages?
Thanks, Strainu
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.orghttps://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
-- Daniel Kinzler Principal Software Engineer MediaWiki Engineering Group Wikimedia Foundation