mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
Config - add phd.variant-config to suppress "Daemon & Web config" error message on a per key basis
Summary: Fixes T6959. Test Plan: When I was ready to test the feature, the "Daemon & Web config" error already showed up, from having added phd.variant-config. I went meta and changed the value of phd.variant-config to have phd.variant-config. The config error disappeared. I then changed the conpherence setting about conpherence email prefix and the error showed up again. Removing the conpherence config setting made the error disappear once more. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6959 Differential Revision: https://secure.phabricator.com/D11399
This commit is contained in:
parent
f55647736a
commit
923096efc8
2 changed files with 11 additions and 1 deletions
|
@ -63,6 +63,13 @@ final class PhabricatorPHDConfigOptions
|
|||
"ENORMOUS amount of output, but can help debug issues. Daemons ".
|
||||
"launched in debug mode with 'phd debug' are always launched in ".
|
||||
"trace mdoe. See also 'phd.verbose'.")),
|
||||
$this->newOption('phd.variant-config', 'list<string>', array())
|
||||
->setDescription(
|
||||
pht(
|
||||
'Specify config keys that can safely vary between the web tier '.
|
||||
'and the daemons. Primarily, this is a way to suppress the '.
|
||||
'"Daemons and Web Have Different Config" setup issue on a per '.
|
||||
'config key basis.')),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
5
src/infrastructure/env/PhabricatorEnv.php
vendored
5
src/infrastructure/env/PhabricatorEnv.php
vendored
|
@ -232,7 +232,10 @@ final class PhabricatorEnv {
|
|||
|
||||
public static function calculateEnvironmentHash() {
|
||||
$keys = array_keys(self::getAllConfigKeys());
|
||||
ksort($keys);
|
||||
sort($keys);
|
||||
|
||||
$skip_keys = self::getEnvConfig('phd.variant-config');
|
||||
$keys = array_diff($keys, $skip_keys);
|
||||
|
||||
$values = array();
|
||||
foreach ($keys as $key) {
|
||||
|
|
Loading…
Reference in a new issue