Differential D21621 Diff 51466 src/applications/differential/query/DifferentialRevisionSearchEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialRevisionSearchEngine.php
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | protected function buildQueryFromParameters(array $map) { | ||||
} | } | ||||
if ($map['modifiedStart'] || $map['modifiedEnd']) { | if ($map['modifiedStart'] || $map['modifiedEnd']) { | ||||
$query->withUpdatedEpochBetween( | $query->withUpdatedEpochBetween( | ||||
$map['modifiedStart'], | $map['modifiedStart'], | ||||
$map['modifiedEnd']); | $map['modifiedEnd']); | ||||
} | } | ||||
if ($map['affectedPaths']) { | |||||
$query->withPaths($map['affectedPaths']); | |||||
} | |||||
return $query; | return $query; | ||||
} | } | ||||
protected function buildCustomSearchFields() { | protected function buildCustomSearchFields() { | ||||
return array( | return array( | ||||
id(new PhabricatorSearchDatasourceField()) | id(new PhabricatorSearchDatasourceField()) | ||||
->setLabel(pht('Responsible Users')) | ->setLabel(pht('Responsible Users')) | ||||
->setKey('responsiblePHIDs') | ->setKey('responsiblePHIDs') | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | return array( | ||||
->setDescription( | ->setDescription( | ||||
pht('Find revisions modified at or after a particular time.')), | pht('Find revisions modified at or after a particular time.')), | ||||
id(new PhabricatorSearchDateField()) | id(new PhabricatorSearchDateField()) | ||||
->setLabel(pht('Modified Before')) | ->setLabel(pht('Modified Before')) | ||||
->setKey('modifiedEnd') | ->setKey('modifiedEnd') | ||||
->setIsHidden(true) | ->setIsHidden(true) | ||||
->setDescription( | ->setDescription( | ||||
pht('Find revisions modified at or before a particular time.')), | pht('Find revisions modified at or before a particular time.')), | ||||
id(new PhabricatorSearchStringListField()) | |||||
->setKey('affectedPaths') | |||||
->setLabel(pht('Affected Paths')) | |||||
->setDescription( | |||||
pht('Search for revisions affecting particular paths.')) | |||||
->setIsHidden(true), | |||||
); | ); | ||||
} | } | ||||
protected function getURI($path) { | protected function getURI($path) { | ||||
return '/differential/'.$path; | return '/differential/'.$path; | ||||
} | } | ||||
protected function getBuiltinQueryNames() { | protected function getBuiltinQueryNames() { | ||||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |