Feature #14424
closed
Allow plugin widgets to hook into the dashboard search box
Added by David Davis over 8 years ago.
Updated about 8 years ago.
Description
In Foreman, plugins can add widgets to the dashboard but it doesn't look like there is a way to easily add search fields to the search box on the dashboard page.
- Blocks Bug #14425: Dashboard search box does not work for katello widgets added
An easy test for this would be to install foreman_discovery and then do a search. The search should filter the list of discovered hosts on the foreman_discovery widget.
- Subject changed from Allow widgets to plug into the search box to Allow plugin widgets to hook into the search box
- Subject changed from Allow plugin widgets to hook into the search box to Allow plugin widgets to hook into the dashboard search box
- Status changed from New to Duplicate
The search parameters are now passed on to the widgets. They are also available for widgets on the `@data` instance variable as `@data.filter`. Filtered and authorized hosts are also available as `@data.hosts`.
- Is duplicate of Bug #16702: dashboard widgets ignore filters added
Also available in: Atom
PDF