Created attachment 1221470 [details] VM Compliance Check with actions Description of problem: Removing actions from VM Compliance Check event removes the event from the compliance policy completely, there is no way to get the event back other than by deleting the compliance policy and recreating it. Version-Release number of selected component (if applicable): 5.6.1.2.20160810181333_8ba817b How reproducible: Steps to Reproduce: 1. Create a VM compliance policy 2. Assign actions to the VM Compliance Check event, save changes. 3. Remove all actions from the VM Compliance Check event, save changes. Actual results: VM Compliance Check event is removed from the compliance policy. Expected results: Should be able to edit VM Compliance Check event and add new actions. Additional info:
Created attachment 1221471 [details] Actions removed from VM Compliance Check, event disappears
https://github.com/ManageIQ/manageiq-ui-classic/pull/112
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/92d65910a50ed4a96aaeb713138f802b01fc2fba commit 92d65910a50ed4a96aaeb713138f802b01fc2fba Author: Harpreet Kataria <hkataria> AuthorDate: Mon Jan 9 16:06:06 2017 -0500 Commit: Harpreet Kataria <hkataria> CommitDate: Tue Jan 10 09:27:48 2017 -0500 Policy Event must have at least one action assigned to it Made changes to not allow deleting all actions from a Policy Event, at least one action should be there. https://bugzilla.redhat.com/show_bug.cgi?id=1395965 app/controllers/miq_policy_controller/events.rb | 6 +++ .../miq_policy_controller/events_spec.rb | 61 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 spec/controllers/miq_policy_controller/events_spec.rb
Verified in 5.8.0.3.20170301174324_1e2e0c4, it's not possible to delete all actions from a compliance policy.