mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
Expose "affectedPaths" to "differential.revision.search" Conduit API method
Summary: Ref T13639. Support querying by "affectedPaths" in the API. Test Plan: {F8539347} Maniphest Tasks: T13639 Differential Revision: https://secure.phabricator.com/D21621
This commit is contained in:
parent
6d33ba7dc4
commit
30d58de1bc
1 changed files with 10 additions and 0 deletions
|
@ -57,6 +57,10 @@ final class DifferentialRevisionSearchEngine
|
|||
$map['modifiedEnd']);
|
||||
}
|
||||
|
||||
if ($map['affectedPaths']) {
|
||||
$query->withPaths($map['affectedPaths']);
|
||||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
@ -118,6 +122,12 @@ final class DifferentialRevisionSearchEngine
|
|||
->setIsHidden(true)
|
||||
->setDescription(
|
||||
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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue