Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/check/PhabricatorExtraConfigSetupCheck.php
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | foreach ($defined_keys as $key => $value) { | ||||
// In the future, before we stop reading database configuration for | // In the future, before we stop reading database configuration for | ||||
// locked values, we either need to add a flag which lets these values | // locked values, we either need to add a flag which lets these values | ||||
// continue reading from the database or move them to some other storage | // continue reading from the database or move them to some other storage | ||||
// mechanism. | // mechanism. | ||||
$soft_locks = array( | $soft_locks = array( | ||||
'phabricator.uninstalled-applications', | 'phabricator.uninstalled-applications', | ||||
'phabricator.application-settings', | 'phabricator.application-settings', | ||||
'config.ignore-issues', | 'config.ignore-issues', | ||||
'auth.lock-config', | |||||
); | ); | ||||
$soft_locks = array_fuse($soft_locks); | $soft_locks = array_fuse($soft_locks); | ||||
if (isset($soft_locks[$key])) { | if (isset($soft_locks[$key])) { | ||||
continue; | continue; | ||||
} | } | ||||
$doc_name = 'Configuration Guide: Locked and Hidden Configuration'; | $doc_name = 'Configuration Guide: Locked and Hidden Configuration'; | ||||
$doc_href = PhabricatorEnv::getDoclink($doc_name); | $doc_href = PhabricatorEnv::getDoclink($doc_name); | ||||
Show All 9 Lines | foreach ($defined_keys as $key => $value) { | ||||
'Configuration value "%s" is locked, but has a value in the database.', | 'Configuration value "%s" is locked, but has a value in the database.', | ||||
$key); | $key); | ||||
$message = pht( | $message = pht( | ||||
'The configuration value "%s" is locked (so it can not be edited '. | 'The configuration value "%s" is locked (so it can not be edited '. | ||||
'from the web UI), but has a database value. Usually, this means '. | 'from the web UI), but has a database value. Usually, this means '. | ||||
'that it was previously not locked, you set it using the web UI, '. | 'that it was previously not locked, you set it using the web UI, '. | ||||
'and it later became locked.'. | 'and it later became locked.'. | ||||
"\n\n". | "\n\n". | ||||
'You should copy this configuration value in a local configuration '. | 'You should copy this configuration value to a local configuration '. | ||||
'source (usually by using %s) and then remove it from the database '. | 'source (usually by using %s) and then remove it from the database '. | ||||
'with the command below.'. | 'with the command below.'. | ||||
"\n\n". | "\n\n". | ||||
'For more information on locked and hidden configuration, including '. | 'For more information on locked and hidden configuration, including '. | ||||
'details about this setup issue, see %s.'. | 'details about this setup issue, see %s.'. | ||||
"\n\n". | "\n\n". | ||||
'This database value is currently respected, but a future version '. | 'This database value is currently respected, but a future version '. | ||||
'of Phabricator will stop respecting database values for locked '. | 'of Phabricator will stop respecting database values for locked '. | ||||
▲ Show 20 Lines • Show All 386 Lines • Show Last 20 Lines |