-
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
Retire Task deliver_to_automate now uses tenant_identity #18104
Conversation
6496fd5
to
f870703
Compare
f870703
to
9558cd6
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.
lookin good
app/models/miq_retire_task.rb
Outdated
:miq_group_id => 2, | ||
:tenant_id => 1, | ||
:user_id => tenant_identity.id, | ||
:miq_group_id => tenant_identity.miq_groups.first.id, |
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.
:miq_group_id => tenant_identity.miq_groups.first.id, | |
:miq_group_id => tenant_identity.current_group.id, |
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.
technically, this could be current_group_id
, but you need to download current_group
for the next line, so probably close enough
app/models/miq_retire_task.rb
Outdated
:tenant_id => 1, | ||
:user_id => tenant_identity.id, | ||
:miq_group_id => tenant_identity.miq_groups.first.id, | ||
:tenant_id => tenant_identity.miq_groups.first.tenant.id, |
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.
:tenant_id => tenant_identity.miq_groups.first.tenant.id, | |
:tenant_id => tenant_identity.current_group.tenant_id, |
9558cd6
to
48c6d5e
Compare
@miq-bot remove_label wip |
48c6d5e
to
567b40d
Compare
567b40d
to
a396837
Compare
Checked commit d-m-u@a396837 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Retire Task deliver_to_automate now uses tenant_identity (cherry picked from commit af80b91) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1640618
Hammer backport details:
|
In
app/models/miq_retire_task.rb
Change hardcoded user reference to the request user and tenant
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1640618