Hi Strainu,
This touches on an issue with the internal representation of "protection changed" event. I filed a ticket for fixing it. 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.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
-- Daniel Kinzler Principal Software Engineer MediaWiki Engineering Group Wikimedia Foundation