1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +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:
epriestley 2021-03-15 16:01:24 -07:00
parent 6d33ba7dc4
commit 30d58de1bc

View file

@ -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),
);
}