-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add policy checking for retirement request. #14641
Conversation
@@ -153,6 +153,14 @@ def self.miq_event_enforce_policy(obj, _inputs) | |||
event_object_from_workspace(obj).process_evm_event | |||
end | |||
|
|||
def self.miq_check_policy_prevent(obj, _inputs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lfu
Can we add a spec for this method.
0ecc13e
to
5761dc0
Compare
5761dc0
to
6b74aa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. We can add the create_notification call in a separate PR.
@lfu Looks good. |
@@ -166,6 +166,11 @@ request_service_stop,Service Stop Request,Default,service_process | |||
service_stopped,Service Stopped,Default,service_process | |||
|
|||
# | |||
# Orchestration | |||
# | |||
request_orchestration_stack_retire,Orchestration Stack Retire Request,Default,orchestration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lfu This needs a corresponding miq_event_definition_set instance for orchestration
added to db/fixtures/miq_event_definition_sets.csv.
Following the existing pattern for VM and Service the set should be called orchestration_process
6b74aa4
to
67db0f4
Compare
Checked commits lfu/manageiq@d26ec21~...67db0f4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@lfu Please open a git issue in the UI repo to add an icon for this event. It currently shows the default ⭐️ icon. Probably want to use something like the stack icon from the |
Add policy checking for retirement request. (cherry picked from commit 302e14c) https://bugzilla.redhat.com/show_bug.cgi?id=1440324
Fine backport details:
|
Add policy checking for retirement request. (cherry picked from commit 302e14c) https://bugzilla.redhat.com/show_bug.cgi?id=1440402
Euwe backport details:
|
All events are sent to automate for processing since Event Switchboard PR.
Since then the policy checking for prevent action has changed from a sync process to an async process.
Depends on #86.
https://bugzilla.redhat.com/show_bug.cgi?id=1439331
@miq-bot assign @gmcculloug
@miq-bot add_label bug, control, darga/yes, euwe/yes, automate, fine/yes