This task tracks a tech debt-y wishlist item identified by Sam and Stephen. The task itself is to investigate adding an API to allow changing the MobileFrontend extension's config by making an HTTP request. This is a very low priority wish for Android which currently updates styles from MediaWiki production code instead of the preferred local Vagrant instance just to enable MinervaApplyKnownTemplateHacks.
The task encompasses the follow work:
- Identify a kind of generic way to change the config to another versioned config _iff_ the service is a Vagrant development instance; this effort will only be used on MobileFrontend initially but should work for other extensions as well if found to be useful later
- Just do it or create a new task to:
- Add a new development config, enwiki-dev.json, that uses the defaults on English Wikipedia
- Add support to register configs; a Vagrant development instance will also register any available configs beyond config.json
- Add API support to change a config to a given registered config
- Update the MobileFrontend readme with a summary of the different configs, what they are, and the current configs available (config.json, enwiki-dev.json)
- Check in with the rest of the Reading Web team to make sure you haven't introduced a security hole somehow
- Ping Android to update their CSS sync script to use a local Vagrant instance with the new API (revert the last commit to use prod and add the API change)