Project

General

Profile

Bug #19672

Plugins adding host bulk actions are broken in Foreman 1.15

Added by Marek Hulán almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

When #16043 was merged, a new method multiple_with_filter? has been introduced in hosts_controller and exposed via helper_method. It's also being used in generic helper HostsAndHostgroupsHelper#multiple_filter and it works since most actions are implemented in hosts controller. If plugin adds actions (e.g. foreman_openscap - assign compliance policy), a plugin controller is used and the method is undefined. This method should be probably available globally or the helper should duplicate the logic and check for search param presence. I believe this affects all plugins introducing custom bulk actions and should be fixed in 1.15 branch.


Related issues

Related to Foreman - Bug #16043: Unable to select all hosts from the GUIClosed2016-08-10
Has duplicate OpenSCAP - Bug #19916: Try assign policy of openscap to a host and error appear in new katello 3.4Duplicate2017-06-04
Has duplicate OpenSCAP - Bug #19518: Assign policy to hosts modal loads indefintelyDuplicate2017-05-11

Associated revisions

Revision 0bbcc6c3 (diff)
Added by Marek Hulán almost 6 years ago

Fixes #19672 - fix bulk actions for plugins

Revision c3169aca (diff)
Added by Marek Hulán almost 6 years ago

Fixes #19672 - fix bulk actions for plugins

(cherry picked from commit 0bbcc6c339113e2a4bf93e6a01c56f55a6641f22)

History

#1 Updated by Marek Hulán almost 6 years ago

  • Related to Bug #16043: Unable to select all hosts from the GUI added

#2 Updated by The Foreman Bot almost 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/foreman/pull/4557 added

#3 Updated by Daniel Lobato Garcia almost 6 years ago

  • Legacy Backlogs Release (now unused) set to 248

#4 Updated by Anonymous almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Ondřej Pražák almost 6 years ago

  • Has duplicate Bug #19916: Try assign policy of openscap to a host and error appear in new katello 3.4 added

#6 Updated by Ondřej Pražák almost 6 years ago

  • Has duplicate Bug #19518: Assign policy to hosts modal loads indefintely added

Also available in: Atom PDF