Pretty basic, but you can now search panels by type (query, text, tab).
Details
Details
- Reviewers
epriestley btrahan - Commits
- Restricted Diffusion Commit
rP0b2697bb92b2: Add ability to query dashboard panels by paneltype
Searched for a few different types of panels, results look correct
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- dashboard-panel
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4512 Build 4526: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
src/applications/dashboard/query/PhabricatorDashboardPanelSearchEngine.php | ||
---|---|---|
71–73 | 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) |