Page MenuHomePhabricator

[WMDE-Fundraising] Create way to configure the application
Closed, ResolvedPublic10 Story Points

Event Timeline

JeroenDeDauw raised the priority of this task from to Medium.
JeroenDeDauw updated the task description. (Show Details)
JeroenDeDauw set Security to None.
JeroenDeDauw edited a custom field.

After talking to @WMDE-Fisch and @kai.nissen we came to the following conclusions on the following requirements for the configuration:

  1. Configuration data must not be stored in the repo. Instead, we have a configuration template in app/config. The template has the suffix json.dist.
  2. The deployment script checks if a config file exists and if it has the same key structure as the template file. If one of these conditions is not met, the deployment fails.
  3. We'll use JSON as a config format since it is easily parsed without external libraries and has a properly defined format and encoding.
  4. If the configuration values get too complex, we can use the Symfony Config component to validate.
Tobi_WMDE_SW edited projects, added Story; removed Epic.Jan 7 2016, 4:28 PM

I've done something with now. Base config at config/config.dist.json. Application merge overrides with config/ when present and the tests use config/config.test.json.

Tobi_WMDE_SW closed this task as Resolved.Apr 7 2017, 11:26 AM
Restricted Application added a project: WMDE-FUN-Team. · View Herald TranscriptApr 7 2017, 11:26 AM