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

Legoktm created this task.Sep 3 2017, 9:31 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 3 2017, 9:31 PM
Reedy updated the task description. (Show Details)Sep 3 2017, 9:38 PM
EddieGP triaged this task as Low priority.Sep 21 2017, 5:18 PM
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).

EddieGP claimed this task.EditedFeb 20 2018, 10:19 PM

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

demon added a subscriber: demon.Apr 25 2018, 12:20 AM

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?

EddieGP removed EddieGP as the assignee of this task.May 1 2018, 10:40 AM

Currently unable to commit time for this.

MarcoAurelio added a subscriber: MarcoAurelio.EditedMar 1 2019, 10:02 AM

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