Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14317195
D14411.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
890 B
Referenced Files
None
Subscribers
None
D14411.diff
View Options
diff --git a/src/applications/files/query/PhabricatorFileSearchEngine.php b/src/applications/files/query/PhabricatorFileSearchEngine.php
--- a/src/applications/files/query/PhabricatorFileSearchEngine.php
+++ b/src/applications/files/query/PhabricatorFileSearchEngine.php
@@ -17,6 +17,9 @@
protected function buildCustomSearchFields() {
return array(
+ id(new PhabricatorSearchTextField())
+ ->setKey('name')
+ ->setLabel(pht('Name')),
id(new PhabricatorUsersSearchField())
->setKey('authorPHIDs')
->setAliases(array('author', 'authors'))
@@ -48,6 +51,10 @@
protected function buildQueryFromParameters(array $map) {
$query = $this->newQuery();
+ if ($map['name'] !== null) {
+ $query->withNames(array($map['name']));
+ }
+
if ($map['authorPHIDs']) {
$query->withAuthorPHIDs($map['authorPHIDs']);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 7:53 AM (20 h, 33 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6906733
Default Alt Text
D14411.diff (890 B)
Attached To
Mode
D14411: Allow querying for files by name
Attached
Detach File
Event Timeline
Log In to Comment