Page MenuHomePhabricator

Add ability to query dashboard panels by paneltype
ClosedPublic

Authored by chad on Feb 17 2015, 2:55 AM.
Tags
None
Referenced Files
F18799175: D11782.id28403.diff
Fri, Oct 17, 12:20 PM
F18776991: D11782.id28445.diff
Sat, Oct 11, 12:26 AM
F18775983: D11782.diff
Fri, Oct 10, 8:52 PM
F18687419: D11782.id.diff
Sep 26 2025, 2:22 PM
F18673587: D11782.diff
Sep 25 2025, 11:15 AM
F18619416: D11782.id.diff
Sep 15 2025, 2:27 AM
F18619415: D11782.id.diff
Sep 15 2025, 2:26 AM
F18594040: D11782.diff
Sep 12 2025, 4:47 PM
Subscribers

Details

Summary

Pretty basic, but you can now search panels by type (query, text, tab).

Test Plan

Searched for a few different types of panels, results look correct

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Add ability to query dashboard panels by paneltype.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php
76–78

This should be auto-generated, so new panel types show up automatically as we (or third parties) add them.

You can do something like this, I think:

$panel_types = PhabricatorDashboardPanelType::getAllPanelTypes();
$panel_types = mpull($panel_types, 'getPanelTypeName', 'getPanelTypeKey');
asort($panel_types);
$panel_types = array(
  '' => pht('(All Types)'),
+ $panel_types;

And then:

->setOptions($panel_types)
This revision now requires changes to proceed.Feb 17 2015, 1:04 PM
chad edited edge metadata.
  • Update per comments
epriestley edited edge metadata.
This revision is now accepted and ready to land.Feb 18 2015, 6:49 PM
This revision was automatically updated to reflect the committed changes.