Differential D16694 Diff 40224 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,109 Lines • ▼ Show 20 Lines | foreach ($constraints as $key => $constraint) { | ||||
} | } | ||||
} | } | ||||
foreach ($fields as $field) { | foreach ($fields as $field) { | ||||
if (!$field->getValueExistsInConduitRequest($constraints)) { | if (!$field->getValueExistsInConduitRequest($constraints)) { | ||||
continue; | continue; | ||||
} | } | ||||
$value = $field->readValueFromConduitRequest($constraints); | $value = $field->readValueFromConduitRequest( | ||||
$constraints, | |||||
$request->getIsStrictlyTyped()); | |||||
$saved_query->setParameter($field->getKey(), $value); | $saved_query->setParameter($field->getKey(), $value); | ||||
} | } | ||||
// NOTE: Currently, when running an ad-hoc query we never persist it into | // NOTE: Currently, when running an ad-hoc query we never persist it into | ||||
// a saved query. We might want to add an option to do this in the future | // a saved query. We might want to add an option to do this in the future | ||||
// (for example, to enable a CLI-to-Web workflow where user can view more | // (for example, to enable a CLI-to-Web workflow where user can view more | ||||
// details about results by following a link), but have no use cases for | // details about results by following a link), but have no use cases for | ||||
// it today. If we do identify a use case, we could save the query here. | // it today. If we do identify a use case, we could save the query here. | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |