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
- arcpatch-D11782
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4536 Build 4550: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
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) |