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

Allow Approver user to deny the request #5255

Merged

Conversation

hstastna
Copy link
Contributor

@hstastna hstastna commented Feb 20, 2019

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

What:
This PR fixes the problem that Approver user was not able to deny the request, only to approve it.
Of course, this makes no sense, the user should have permissions also to deny the request.
The button for denying the request was missing in the toolbar -

Details:
The problem was that miq_request_deny does not exist, there aren't two different features - for approving and denying the request. It is the one - miq_request_approval, and the two buttons for appropriate actions.
Check also https://github.com/hstastna/manageiq/blob/master/db/fixtures/miq_product_features.yml#L162,
there is Approve and Deny feature, not the two ones.

How to test:
You can try the db provided by the reporter of this bug and just click on some already created request under Services -> Requests and you will see that, with this PR, the button is not missing anymore. Or .. you can follow the steps in the BZ ticket and create Approver user and a VM creation request but it is not necessary.

Before:
app_before

After:
app_after

@miq-bot miq-bot added the wip label Feb 20, 2019
@hstastna
Copy link
Contributor Author

@miq-bot add_label bug, hammer/yes

@miq-bot
Copy link
Member

miq-bot commented Feb 20, 2019

Checked commits hstastna/manageiq-ui-classic@3822b48~...ae0a45e 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. 🍰

@hstastna hstastna changed the title [WIP] Allow Approver user to deny the request Allow Approver user to deny the request Feb 20, 2019
@miq-bot miq-bot removed the wip label Feb 20, 2019
@h-kataria h-kataria self-assigned this Mar 4, 2019
@h-kataria h-kataria added this to the Sprint 106 Ending Mar 4, 2019 milestone Mar 4, 2019
@h-kataria h-kataria merged commit 7296655 into ManageIQ:master Mar 4, 2019
simaishi pushed a commit that referenced this pull request Mar 6, 2019
@simaishi
Copy link
Contributor

simaishi commented Mar 6, 2019

Hammer backport details:

$ git log -1
commit c2b483ce9e03c65eebace6268557885c22783f75
Author: Harpreet Kataria <hkataria@redhat.com>
Date:   Mon Mar 4 09:27:41 2019 -0500

    Merge pull request #5255 from hstastna/Approver_user_cannot_deny_request
    
    Allow Approver user to deny the request
    
    (cherry picked from commit 72966552117085cee04f46be0f9e6b06e21273cf)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1686090

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.

None yet

4 participants