Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13983564
D18588.id44633.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
D18588.id44633.diff
View Options
diff --git a/src/applications/repository/query/PhabricatorRepositoryQuery.php b/src/applications/repository/query/PhabricatorRepositoryQuery.php
--- a/src/applications/repository/query/PhabricatorRepositoryQuery.php
+++ b/src/applications/repository/query/PhabricatorRepositoryQuery.php
@@ -8,7 +8,6 @@
private $callsigns;
private $types;
private $uuids;
- private $nameContains;
private $uris;
private $datasourceQuery;
private $slugs;
@@ -116,11 +115,6 @@
return $this;
}
- public function withNameContains($contains) {
- $this->nameContains = $contains;
- return $this;
- }
-
public function withURIs(array $uris) {
$this->uris = $uris;
return $this;
@@ -661,13 +655,6 @@
$this->uuids);
}
- if (strlen($this->nameContains)) {
- $where[] = qsprintf(
- $conn,
- 'r.name LIKE %~',
- $this->nameContains);
- }
-
if (strlen($this->datasourceQuery)) {
// This handles having "rP" match callsigns starting with "P...".
$query = trim($this->datasourceQuery);
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,9 +24,6 @@
id(new PhabricatorSearchStringListField())
->setLabel(pht('Callsigns'))
->setKey('callsigns'),
- id(new PhabricatorSearchTextField())
- ->setLabel(pht('Name Contains'))
- ->setKey('name'),
id(new PhabricatorSearchSelectField())
->setLabel(pht('Status'))
->setKey('status')
@@ -72,10 +69,6 @@
$query->withTypes($map['types']);
}
- if (strlen($map['name'])) {
- $query->withNameContains($map['name']);
- }
-
if ($map['uris']) {
$query->withURIs($map['uris']);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 21, 7:18 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6732012
Default Alt Text
D18588.id44633.diff (1 KB)
Attached To
Mode
D18588: Remove "Name Contains" query constraint from Diffusion for Repositories
Attached
Detach File
Event Timeline
Log In to Comment