Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15425478
D19230.id46047.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D19230.id46047.diff
View Options
diff --git a/src/applications/project/query/PhabricatorProjectSearchEngine.php b/src/applications/project/query/PhabricatorProjectSearchEngine.php
--- a/src/applications/project/query/PhabricatorProjectSearchEngine.php
+++ b/src/applications/project/query/PhabricatorProjectSearchEngine.php
@@ -23,6 +23,14 @@
id(new PhabricatorSearchTextField())
->setLabel(pht('Name'))
->setKey('name'),
+ id(new PhabricatorSearchStringListField())
+ ->setLabel(pht('Slugs'))
+ ->setIsHidden(true)
+ ->setKey('slugs')
+ ->setDescription(
+ pht(
+ 'Search for projects with particular slugs. (Slugs are the same '.
+ 'as project hashtags.)')),
id(new PhabricatorUsersSearchField())
->setLabel(pht('Members'))
->setKey('memberPHIDs')
@@ -81,6 +89,10 @@
$query->withNameTokens($tokens);
}
+ if ($map['slugs']) {
+ $query->withSlugs($map['slugs']);
+ }
+
if ($map['memberPHIDs']) {
$query->withMemberPHIDs($map['memberPHIDs']);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 24, 4:47 AM (1 d, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7475805
Default Alt Text
D19230.id46047.diff (1 KB)
Attached To
Mode
D19230: Allow projects to be queried by slug in "project.search"
Attached
Detach File
Event Timeline
Log In to Comment