1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 09:42:41 +01:00
phorge-phorge/src/applications/config/check
epriestley a86fd38394 Allow configuration to be explicitly validated, including validation of complex attributes
Summary:
  - Allows us to implement setup warnings for edits which don't go through the web UI, e.g. "you edited a config file and set value X to something goofy".
  - Allows us to implement more sophisticated validations, beyond basic type checks (e.g., "phabricator.base-uri" must be a URI).
  - Fixes T358 (or, close enough -- fixes it for all options which have been migrated as per T2255.

Test Plan: Set "darkconsole.enabled" to "xyz" in my config, observed setup warning. Added fake validation, observed web UI edit error.

Reviewers: codeblock, btrahan

Reviewed By: codeblock

CC: aran

Maniphest Tasks: T2255, T358

Differential Revision: https://secure.phabricator.com/D4315
2013-01-01 18:15:03 -08:00
..
PhabricatorSetupCheck.php Detect and raise setup warnings from within Phabricator 2012-12-30 06:37:49 -08:00
PhabricatorSetupCheckAPC.php Detect and raise setup warnings from within Phabricator 2012-12-30 06:37:49 -08:00
PhabricatorSetupCheckExtraConfig.php Add Disqus, Facebook, Google, GitHub auth config; AWS config 2013-01-01 14:09:29 -08:00
PhabricatorSetupCheckInvalidConfig.php Allow configuration to be explicitly validated, including validation of complex attributes 2013-01-01 18:15:03 -08:00
PhabricatorSetupCheckTimezone.php Improve resolution process for nonfatal setup issues 2012-12-30 17:04:38 -08:00