Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14012082
D11399.id27379.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11399.id27379.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -5214,6 +5214,7 @@
'PhabricatorOAuthServerClient' => array(
'PhabricatorOAuthServerDAO',
'PhabricatorPolicyInterface',
+ 'PhabricatorDestructibleInterface',
),
'PhabricatorOAuthServerClientAuthorizationPHIDType' => 'PhabricatorPHIDType',
'PhabricatorOAuthServerClientPHIDType' => 'PhabricatorPHIDType',
@@ -5350,6 +5351,7 @@
'PhabricatorPolicy' => array(
'PhabricatorPolicyDAO',
'PhabricatorPolicyInterface',
+ 'PhabricatorDestructibleInterface',
),
'PhabricatorPolicyApplication' => 'PhabricatorApplication',
'PhabricatorPolicyAwareQuery' => 'PhabricatorOffsetPagedQuery',
diff --git a/src/applications/config/option/PhabricatorPHDConfigOptions.php b/src/applications/config/option/PhabricatorPHDConfigOptions.php
--- a/src/applications/config/option/PhabricatorPHDConfigOptions.php
+++ b/src/applications/config/option/PhabricatorPHDConfigOptions.php
@@ -63,6 +63,13 @@
"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.')),
);
}
diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php
--- a/src/infrastructure/env/PhabricatorEnv.php
+++ b/src/infrastructure/env/PhabricatorEnv.php
@@ -232,7 +232,10 @@
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) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 2, 7:14 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6750874
Default Alt Text
D11399.id27379.diff (2 KB)
Attached To
Mode
D11399: Config - add phd.variant-config to suppress "Daemon & Web config" error message on a per key basis
Attached
Detach File
Event Timeline
Log In to Comment