Page MenuHomePhabricator

D19230.id46046.diff
No OneTemporary

D19230.id46046.diff

diff --git a/MESSAGE b/MESSAGE
new file mode 100644
--- /dev/null
+++ b/MESSAGE
@@ -1,0 +1,3 @@
+ test example
+
+ example example
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

Mime Type
text/plain
Expires
Sun, Mar 16, 12:47 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707068
Default Alt Text
D19230.id46046.diff (1 KB)

Event Timeline