@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Reduce application search engine results list for Dashboards

Summary: Ref T10390. Simplifies dropdown by rolling out canUseInPanel in useless panels

Test Plan: Add a query panel, see less options.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T10390

Differential Revision: https://secure.phabricator.com/D17341

+108 -8
+1 -1
src/applications/audit/query/PhabricatorCommitSearchEngine.php
··· 4 4 extends PhabricatorApplicationSearchEngine { 5 5 6 6 public function getResultTypeDescription() { 7 - return pht('Commits'); 7 + return pht('Diffusion Commits'); 8 8 } 9 9 10 10 public function getApplicationClassName() {
+5 -1
src/applications/auth/query/PhabricatorAuthInviteSearchEngine.php
··· 4 4 extends PhabricatorApplicationSearchEngine { 5 5 6 6 public function getResultTypeDescription() { 7 - return pht('Email Invites'); 7 + return pht('Auth Email Invites'); 8 8 } 9 9 10 10 public function getApplicationClassName() { 11 11 return 'PhabricatorAuthApplication'; 12 + } 13 + 14 + public function canUseInPanelContext() { 15 + return false; 12 16 } 13 17 14 18 public function buildSavedQueryFromRequest(AphrontRequest $request) {
+1 -1
src/applications/badges/query/PhabricatorBadgesSearchEngine.php
··· 4 4 extends PhabricatorApplicationSearchEngine { 5 5 6 6 public function getResultTypeDescription() { 7 - return pht('Badge'); 7 + return pht('Badges'); 8 8 } 9 9 10 10 public function getApplicationClassName() {
+4
src/applications/calendar/query/PhabricatorCalendarExportSearchEngine.php
··· 11 11 return 'PhabricatorCalendarApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 $viewer = $this->requireViewer(); 16 20
+4
src/applications/calendar/query/PhabricatorCalendarImportLogSearchEngine.php
··· 11 11 return 'PhabricatorCalendarApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return new PhabricatorCalendarImportLogQuery(); 16 20 }
+4
src/applications/calendar/query/PhabricatorCalendarImportSearchEngine.php
··· 11 11 return 'PhabricatorCalendarApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return new PhabricatorCalendarImportQuery(); 16 20 }
+4
src/applications/conduit/query/PhabricatorConduitLogSearchEngine.php
··· 11 11 return 'PhabricatorConduitApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return new PhabricatorConduitLogQuery(); 16 20 }
+4
src/applications/conduit/query/PhabricatorConduitSearchEngine.php
··· 11 11 return 'PhabricatorConduitApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function getPageSize(PhabricatorSavedQuery $saved) { 15 19 return PHP_INT_MAX - 1; 16 20 }
+1 -1
src/applications/conpherence/query/ConpherenceThreadSearchEngine.php
··· 4 4 extends PhabricatorApplicationSearchEngine { 5 5 6 6 public function getResultTypeDescription() { 7 - return pht('Rooms'); 7 + return pht('Conpherence Rooms'); 8 8 } 9 9 10 10 public function getApplicationClassName() {
+4
src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
··· 15 15 return new PhabricatorDashboardPanelQuery(); 16 16 } 17 17 18 + public function canUseInPanelContext() { 19 + return false; 20 + } 21 + 18 22 protected function buildQueryFromParameters(array $map) { 19 23 $query = $this->newQuery(); 20 24 if ($map['status']) {
+4
src/applications/dashboard/query/PhabricatorDashboardSearchEngine.php
··· 16 16 ->needPanels(true); 17 17 } 18 18 19 + public function canUseInPanelContext() { 20 + return false; 21 + } 22 + 19 23 protected function buildCustomSearchFields() { 20 24 return array( 21 25 id(new PhabricatorSearchTextField())
+4
src/applications/diviner/query/DivinerAtomSearchEngine.php
··· 10 10 return 'PhabricatorDivinerApplication'; 11 11 } 12 12 13 + public function canUseInPanelContext() { 14 + return false; 15 + } 16 + 13 17 public function buildSavedQueryFromRequest(AphrontRequest $request) { 14 18 $saved = new PhabricatorSavedQuery(); 15 19
+4
src/applications/files/query/PhabricatorFileSearchEngine.php
··· 11 11 return 'PhabricatorFilesApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return new PhabricatorFileQuery(); 16 20 }
+4
src/applications/herald/query/HeraldTranscriptSearchEngine.php
··· 11 11 return 'PhabricatorHeraldApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function buildSavedQueryFromRequest(AphrontRequest $request) { 15 19 $saved = new PhabricatorSavedQuery(); 16 20
+1 -1
src/applications/maniphest/query/ManiphestTaskSearchEngine.php
··· 31 31 } 32 32 33 33 public function getResultTypeDescription() { 34 - return pht('Tasks'); 34 + return pht('Maniphest Tasks'); 35 35 } 36 36 37 37 public function getApplicationClassName() {
+4
src/applications/metamta/query/PhabricatorMetaMTAMailSearchEngine.php
··· 11 11 return 'PhabricatorMetaMTAApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return new PhabricatorMetaMTAMailQuery(); 16 20 }
+4
src/applications/oauthserver/query/PhabricatorOAuthServerClientSearchEngine.php
··· 11 11 return 'PhabricatorOAuthServerApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return id(new PhabricatorOAuthServerClientQuery()); 16 20 }
+4
src/applications/owners/query/PhabricatorOwnersPackageSearchEngine.php
··· 15 15 return new PhabricatorOwnersPackageQuery(); 16 16 } 17 17 18 + public function canUseInPanelContext() { 19 + return false; 20 + } 21 + 18 22 protected function buildCustomSearchFields() { 19 23 return array( 20 24 id(new PhabricatorSearchDatasourceField())
+4
src/applications/packages/query/PhabricatorPackagesPackageSearchEngine.php
··· 15 15 return id(new PhabricatorPackagesPackageQuery()); 16 16 } 17 17 18 + public function canUseInPanelContext() { 19 + return false; 20 + } 21 + 18 22 protected function buildQueryFromParameters(array $map) { 19 23 $query = $this->newQuery(); 20 24
+4
src/applications/packages/query/PhabricatorPackagesPublisherSearchEngine.php
··· 15 15 return id(new PhabricatorPackagesPublisherQuery()); 16 16 } 17 17 18 + public function canUseInPanelContext() { 19 + return false; 20 + } 21 + 18 22 protected function buildQueryFromParameters(array $map) { 19 23 $query = $this->newQuery(); 20 24
+4
src/applications/packages/query/PhabricatorPackagesVersionSearchEngine.php
··· 15 15 return id(new PhabricatorPackagesVersionQuery()); 16 16 } 17 17 18 + public function canUseInPanelContext() { 19 + return false; 20 + } 21 + 18 22 protected function buildQueryFromParameters(array $map) { 19 23 $query = $this->newQuery(); 20 24
+5
src/applications/phrequent/query/PhrequentSearchEngine.php
··· 10 10 return 'PhabricatorPhrequentApplication'; 11 11 } 12 12 13 + public function canUseInPanelContext() { 14 + return false; 15 + } 16 + 17 + 13 18 public function getPageSize(PhabricatorSavedQuery $saved) { 14 19 return $saved->getParameter('limit', 1000); 15 20 }
+1 -1
src/applications/phurl/query/PhabricatorPhurlURLSearchEngine.php
··· 4 4 extends PhabricatorApplicationSearchEngine { 5 5 6 6 public function getResultTypeDescription() { 7 - return pht('Shortened URLs'); 7 + return pht('Phurl URLs'); 8 8 } 9 9 10 10 public function getApplicationClassName() {
+4 -1
src/applications/project/query/PhabricatorProjectColumnSearchEngine.php
··· 11 11 return 'PhabricatorProjectApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function newQuery() { 15 19 return new PhabricatorProjectColumnQuery(); 16 20 } ··· 24 28 ->setAliases(array('project', 'projects', 'projectPHID')), 25 29 ); 26 30 } 27 - 28 31 29 32 protected function buildQueryFromParameters(array $map) { 30 33 $query = $this->newQuery();
+4
src/applications/releeph/query/ReleephBranchSearchEngine.php
··· 9 9 return pht('Releeph Branches'); 10 10 } 11 11 12 + public function canUseInPanelContext() { 13 + return false; 14 + } 15 + 12 16 public function getApplicationClassName() { 13 17 return 'PhabricatorReleephApplication'; 14 18 }
+4
src/applications/releeph/query/ReleephProductSearchEngine.php
··· 11 11 return 'PhabricatorReleephApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function buildSavedQueryFromRequest(AphrontRequest $request) { 15 19 $saved = new PhabricatorSavedQuery(); 16 20
+4
src/applications/releeph/query/ReleephRequestSearchEngine.php
··· 14 14 return 'PhabricatorReleephApplication'; 15 15 } 16 16 17 + public function canUseInPanelContext() { 18 + return false; 19 + } 20 + 17 21 public function setBranch(ReleephBranch $branch) { 18 22 $this->branch = $branch; 19 23 return $this;
+4
src/applications/search/query/PhabricatorSearchApplicationSearchEngine.php
··· 11 11 return 'PhabricatorSearchApplication'; 12 12 } 13 13 14 + public function canUseInPanelContext() { 15 + return false; 16 + } 17 + 14 18 public function buildSavedQueryFromRequest(AphrontRequest $request) { 15 19 $saved = new PhabricatorSavedQuery(); 16 20
+4
src/applications/transactions/query/PhabricatorEditEngineSearchEngine.php
··· 15 15 return id(new PhabricatorEditEngineQuery()); 16 16 } 17 17 18 + public function canUseInPanelContext() { 19 + return false; 20 + } 21 + 18 22 protected function buildQueryFromParameters(array $map) { 19 23 $query = $this->newQuery(); 20 24 return $query;
+5 -1
src/infrastructure/daemon/workers/query/PhabricatorWorkerBulkJobSearchEngine.php
··· 4 4 extends PhabricatorApplicationSearchEngine { 5 5 6 6 public function getResultTypeDescription() { 7 - return pht('Bulk Jobs'); 7 + return pht('Daemon Bulk Jobs'); 8 8 } 9 9 10 10 public function getApplicationClassName() { ··· 13 13 14 14 public function newQuery() { 15 15 return id(new PhabricatorWorkerBulkJobQuery()); 16 + } 17 + 18 + public function canUseInPanelContext() { 19 + return false; 16 20 } 17 21 18 22 protected function buildQueryFromParameters(array $map) {