Skip to content
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

Retirement - remove auto_approve flag on request creation. #18638

Merged
merged 1 commit into from
Apr 8, 2019

Conversation

tinaafitz
Copy link
Member

@tinaafitz tinaafitz commented Apr 8, 2019

Make_retire_request was setting auto_approve to true which approves the request before the Automate auto approval state machine. Removing the auto_approve flag allows users to change the approval type in Automate.

Before the Retirement as a request enhancement, users would be able to stop/delay retirement by modifying the Automate state machine. In order to stop/delay Retirement with retirement as a request, users will need to be able to prevent the request from being approved, either by denying it, or setting the approval type to manual. The code change in this PR will give them the ability to do that.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1697600

request before the Automate auto approval state machine.  Removing the
auto_approve flag allows users to change the approval type in Automate.
@tinaafitz tinaafitz changed the title Retirement - remove auto_approve flag on request creation. [WIP] Retirement - remove auto_approve flag on request creation. Apr 8, 2019
@miq-bot miq-bot added the wip label Apr 8, 2019
@miq-bot
Copy link
Member

miq-bot commented Apr 8, 2019

Checked commit tinaafitz@b035ee4 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 🍪

@tinaafitz
Copy link
Member Author

@miq-bot add_label bug, hammer/yes

@tinaafitz tinaafitz changed the title [WIP] Retirement - remove auto_approve flag on request creation. Retirement - remove auto_approve flag on request creation. Apr 8, 2019
@miq-bot miq-bot removed the wip label Apr 8, 2019
@tinaafitz
Copy link
Member Author

@d-m-u @gmcculloug Please review.

@gmcculloug gmcculloug self-assigned this Apr 8, 2019
@gmcculloug gmcculloug requested a review from d-m-u April 8, 2019 20:27
@d-m-u
Copy link
Contributor

d-m-u commented Apr 8, 2019

I think there's a test for orch_stacks that maybe needs updating?

@tinaafitz
Copy link
Member Author

@d-m-u There is a spec test for orch stacks retirement, but it doesn't check for the auto-approve parameter.

@gmcculloug gmcculloug merged commit 0d66d43 into ManageIQ:master Apr 8, 2019
@gmcculloug gmcculloug added this to the Sprint 109 Ending Apr 15, 2019 milestone Apr 8, 2019
simaishi pushed a commit that referenced this pull request Apr 22, 2019
Retirement - remove auto_approve flag on request creation.

(cherry picked from commit 0d66d43)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1702075
@simaishi
Copy link
Contributor

Hammer backport details:

$ git log -1
commit 0f5297001698a7a8f27e5bb4500358d1b826af01
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Mon Apr 8 17:00:22 2019 -0400

    Merge pull request #18638 from tinaafitz/retirement_approval_fix
    
    Retirement - remove auto_approve flag on request creation.
    
    (cherry picked from commit 0d66d43b274bad97ac5a42a1413b76fb23d20c58)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1702075

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants