Changeset View
Changeset View
Standalone View
Standalone View
src/applications/config/option/PhabricatorCoreConfigOptions.php
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | return array( | ||||
| "non-standard locations.\n\n". | "non-standard locations.\n\n". | ||||
| "Note that you can also put binaries in ". | "Note that you can also put binaries in ". | ||||
| "`phabricator/support/bin/` (for example, by symlinking them).\n\n". | "`phabricator/support/bin/` (for example, by symlinking them).\n\n". | ||||
| "The current value of PATH after configuration is applied is:\n\n". | "The current value of PATH after configuration is applied is:\n\n". | ||||
| " lang=text\n". | " lang=text\n". | ||||
| " %s", $path)) | " %s", $path)) | ||||
| ->addExample('/usr/local/bin', pht('Add One Path')) | ->addExample('/usr/local/bin', pht('Add One Path')) | ||||
| ->addExample("/usr/bin\n/usr/local/bin", pht('Add Multiple Paths')), | ->addExample("/usr/bin\n/usr/local/bin", pht('Add Multiple Paths')), | ||||
| $this->newOption('tokenizer.ondemand', 'bool', false) | |||||
| ->setBoolOptions( | |||||
| array( | |||||
| pht("Query on demand"), | |||||
| pht("Query on page load"), | |||||
| )) | |||||
| ->setSummary( | |||||
| pht("Query for tokenizer fields on demand.")) | |||||
| ->setDescription( | |||||
| pht( | |||||
| "Tokenizers are UI controls which let the user select other ". | |||||
| "users, email addresses, project names, etc., by typing the ". | |||||
| "first few letters and having the control autocomplete from a ". | |||||
| "list. They can load their data in two ways: either in a big ". | |||||
| "chunk up front, or as the user types. By default, the data is ". | |||||
| "loaded in a big chunk. This is simpler and performs better for ". | |||||
| "small datasets. However, if you have a very large number of ". | |||||
| "users or projects, (in the ballpark of more than a thousand), ". | |||||
| "loading all that data may become slow enough that it's ". | |||||
| "worthwhile to query on demand instead. This makes the typeahead ". | |||||
| "slightly less responsive but overall performance will be much ". | |||||
| "better if you have a ton of stuff. You can figure out which ". | |||||
| "setting is best for your install by changing this setting and ". | |||||
| "then playing with a user tokenizer (like the user selectors in ". | |||||
| "Maniphest or Differential) and seeing which setting loads ". | |||||
| "faster and feels better.")), | |||||
| $this->newOption('config.lock', 'set', array()) | $this->newOption('config.lock', 'set', array()) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setDescription(pht('Additional configuration options to lock.')), | ->setDescription(pht('Additional configuration options to lock.')), | ||||
| $this->newOption('config.hide', 'set', array()) | $this->newOption('config.hide', 'set', array()) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ->setDescription(pht('Additional configuration options to hide.')), | ->setDescription(pht('Additional configuration options to hide.')), | ||||
| $this->newOption('config.mask', 'set', array()) | $this->newOption('config.mask', 'set', array()) | ||||
| ->setLocked(true) | ->setLocked(true) | ||||
| ▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines | |||||