Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15427065
D19511.id46654.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
D19511.id46654.diff
View Options
diff --git a/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php b/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php
--- a/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php
+++ b/src/applications/dashboard/typeahead/PhabricatorDashboardPanelDatasource.php
@@ -20,13 +20,22 @@
return $this->filterResultsAgainstTokens($results);
}
-
protected function renderSpecialTokens(array $values) {
return $this->renderTokensFromResults($this->buildResults(), $values);
}
public function buildResults() {
- $query = id(new PhabricatorDashboardPanelQuery());
+ $query = new PhabricatorDashboardPanelQuery();
+
+ $raw_query = $this->getRawQuery();
+ if (preg_match('/^[wW]\d+\z/', $raw_query)) {
+ $id = trim($raw_query, 'wW');
+ $id = (int)$id;
+ $query->withIDs(array($id));
+ } else {
+ $query->withNameNgrams($raw_query);
+ }
+
$panels = $this->executeQuery($query);
$results = array();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 24, 12:32 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707031
Default Alt Text
D19511.id46654.diff (1 KB)
Attached To
Mode
D19511: Make the dashboard panel datasource work properly with hundreds of panels
Attached
Detach File
Event Timeline
Log In to Comment