Support repository query by short name in Diffusion
Summary: See PHI432. Ref T13099. Short names never made it to the UI/API but seem stable now, so support them.
Test Plan: {F5465173}
Maniphest Tasks: T13099
Differential Revision: https://secure.phabricator.com/D19202
This commit is contained in:
@@ -24,6 +24,9 @@ final class PhabricatorRepositorySearchEngine
|
||||
id(new PhabricatorSearchStringListField())
|
||||
->setLabel(pht('Callsigns'))
|
||||
->setKey('callsigns'),
|
||||
id(new PhabricatorSearchStringListField())
|
||||
->setLabel(pht('Short Names'))
|
||||
->setKey('shortNames'),
|
||||
id(new PhabricatorSearchSelectField())
|
||||
->setLabel(pht('Status'))
|
||||
->setKey('status')
|
||||
@@ -51,6 +54,10 @@ final class PhabricatorRepositorySearchEngine
|
||||
$query->withCallsigns($map['callsigns']);
|
||||
}
|
||||
|
||||
if ($map['shortNames']) {
|
||||
$query->withSlugs($map['shortNames']);
|
||||
}
|
||||
|
||||
if ($map['status']) {
|
||||
$status = idx($this->getStatusValues(), $map['status']);
|
||||
if ($status) {
|
||||
|
||||
Reference in New Issue
Block a user