Differential D20429 Diff 48763 src/applications/search/engine/PhabricatorApplicationSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engine/PhabricatorApplicationSearchEngine.php
Show First 20 Lines • Show All 1,136 Lines • ▼ Show 20 Lines | if (!strlen($query_key)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Query key "%s" does not correspond to a valid query.', | 'Query key "%s" does not correspond to a valid query.', | ||||
$query_key)); | $query_key)); | ||||
} | } | ||||
} | } | ||||
$constraints = $request->getValue('constraints', array()); | $constraints = $request->getValue('constraints', array()); | ||||
if (!is_array($constraints)) { | |||||
throw new Exception( | |||||
pht( | |||||
'Parameter "constraints" must be a map of constraints, got "%s".', | |||||
phutil_describe_type($constraints))); | |||||
} | |||||
$fields = $this->getSearchFieldsForConduit(); | $fields = $this->getSearchFieldsForConduit(); | ||||
foreach ($fields as $key => $field) { | foreach ($fields as $key => $field) { | ||||
if (!$field->getConduitParameterType()) { | if (!$field->getConduitParameterType()) { | ||||
unset($fields[$key]); | unset($fields[$key]); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 455 Lines • Show Last 20 Lines |