mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
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:
parent
e83cfa295b
commit
fc1ee20efe
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue