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/transactions
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
..
application Allow ApplicationTransaction comments to be edited and deleted 2012-12-11 14:01:51 -08:00
constants Make timeline view prettier 2012-12-11 13:59:35 -08:00
controller Rename setViewer() to setUser() in views 2012-12-21 12:18:55 -08:00
editor Repair invalid configuration by setting values back to defaults 2013-01-17 16:25:38 -08:00
exception Add ApplicationTransaction handling for transactions with no effect 2012-12-11 17:27:40 -08:00
feed Add feed integration to generic transactions 2012-12-11 14:00:21 -08:00
query Allow ApplicationTransaction comments to be edited and deleted 2012-12-11 14:01:51 -08:00
response Add previews to ApplicationTransaction 2012-12-21 05:51:33 -08:00
storage Add ApplicationTransaction handling for transactions with no effect 2012-12-11 17:27:40 -08:00
view Minor, fix a bad merge on my part. 2012-12-21 07:58:31 -08:00