Page MenuHomePhabricator

Convert ThrottleOverride to use a wiki page for storage
Open, LowPublic


In the spirit of

A page with a JSON backend using a storage structure similar to would be a good first step. Once that's established, we could build a proper editing frontend.

This automatically adds API support, revision history, diffs, etc.

Event Timeline

EddieGP added a subscriber: EddieGP.

Is there some extension which might be used as a reference for storing data as json within a wiki page?
I'm personally only aware of extensions storing single strings per wiki page (like translations, a paragraph gets it's own page and each translation gets it's own page as well) but not of any storing structured data (e.g. json, yaml, whatever).

Without any guarantees. I've just managed to get Special:OverrideThrottle to save to and read from Project:Throttle_overrides as a first step.

I propose declining this. I'm not a fan of store-the-config-in-random-NS_MEDIAWIKI-pages, and JsonConfig is no better.

Can we not look into using the core's Config interfaces instead?

and JsonConfig is no better.

Correction: JsonConfig is a flaming dumpster fire.

Can we not look into using the core's Config interfaces instead? ? From a quick glance, I don't see how to save anything into there, just how to read from it. How and where do you store the throttle data for in that approach?

Currently unable to commit time for this.

I'd advocate for a special page for this better than a wiki page which it seems it is using already at right?