1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/config/check
epriestley b0d815d157 Repair invalid configuration by setting values back to defaults
Summary:
When configuration is set incorrectly (e.g., of the wrong type), detect and repair it by setting it to the default value. A setup warning will be raised separately.

Notably, this removes the need to hard-code all the class types.

This runs separately from the "invalid config" check because we need to run it on every page, but do setup checks only once per restart (some of them are slow).

Also dirty setup when we edit configuration.

Test Plan: Set config incorrectly on purpose, saw Phabricator correct it on restart and on every subsequent page load until it was fixed.

Reviewers: btrahan, vrana

Reviewed By: vrana

CC: aran

Maniphest Tasks: T2292

Differential Revision: https://secure.phabricator.com/D4492
2013-01-17 16:25:38 -08:00
..
PhabricatorSetupCheck.php Repair invalid configuration by setting values back to defaults 2013-01-17 16:25:38 -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 Repair invalid configuration by setting values back to defaults 2013-01-17 16:25:38 -08:00
PhabricatorSetupCheckTimezone.php Improve resolution process for nonfatal setup issues 2012-12-30 17:04:38 -08:00