Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15421773
D19202.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
962 B
Referenced Files
None
Subscribers
None
D19202.diff
View Options
diff --git a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
--- a/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
+++ b/src/applications/repository/query/PhabricatorRepositorySearchEngine.php
@@ -24,6 +24,9 @@
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 @@
$query->withCallsigns($map['callsigns']);
}
+ if ($map['shortNames']) {
+ $query->withSlugs($map['shortNames']);
+ }
+
if ($map['status']) {
$status = idx($this->getStatusValues(), $map['status']);
if ($status) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 2:08 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7717745
Default Alt Text
D19202.diff (962 B)
Attached To
Mode
D19202: Support repository query by short name in Diffusion
Attached
Detach File
Event Timeline
Log In to Comment