-
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 owner to orch stack model provisioning #18209
Add owner to orch stack model provisioning #18209
Conversation
Checked commit d-m-u@5621fd7 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
This comment has been minimized.
This comment has been minimized.
@miq-bot add_reviewer @tinaafitz |
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.
The specs look great.
I'm hoping that you can get rid of the before_validation
and it will just work.
Ping me if this breaks / or if this works (so I can merge)
@@ -93,6 +97,10 @@ def stdout(format = nil) | |||
format.nil? ? try(:raw_stdout) : try(:raw_stdout, format) | |||
end | |||
|
|||
def set_tenant_from_group |
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.
Does the OwnershipMixin
already do this for you?
(will this code work if you remove this validation and method?)
The logic behind the scenes for set_tenant_from_group
is quite complex. Otherwise we end up running quite a few queries for code that is not altering the group.
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.
Nope. It won't work if you remove the validation and method.
Also, yeah, they are beautiful tests, aren't they? Stolen directly from you.
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.
LGTM 👍
Add owner to orch stacks so that when we retire them, we can have some concept of who the retiree is. This is exact the same's we do for services.