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

Update role identifiers for tasks collection #296

Merged
merged 1 commit into from
Jan 23, 2018

Conversation

jntullo
Copy link

@jntullo jntullo commented Jan 22, 2018

When user roles are seeded, they have either the miq_task_all_ui feature or miq_task_my_ui feature (or both), which is what the UI also uses to validate that they can view requests. However, the API uses tasks_view. This is causing a problem where users that are able to see tasks in the UI are unable to see tasks through the API. This updates the product features used in the API to match what is used in the UI.

Note, no changes were needed for this due to api_user_role_allows? method already accepting arrays, but have updated the api config spec accordingly, since this is the first place we are doing so.

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

…used in the UI

When user roles are seeded, they have either the miq_task_all_ui feature or miq_task_my_ui feature (or both), which is what the UI also uses to validate that they can view requests. However, the API uses tasks_view. This is causing a problem where users that are able to see tasks in the UI are unable to see tasks through the API. This updates the product features used in the API to match what is used in the UI.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1535962
@miq-bot
Copy link
Member

miq-bot commented Jan 22, 2018

Checked commit jntullo@d759db8 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🏆

@abellotti abellotti self-assigned this Jan 23, 2018
@abellotti
Copy link
Member

This LGTM. Thanks @jntullo 👍

@abellotti abellotti added this to the Sprint 78 Ending Jan 29, 2018 milestone Jan 23, 2018
@abellotti abellotti merged commit 79e5081 into ManageIQ:master Jan 23, 2018
@jntullo jntullo deleted the bz_1535962 branch February 14, 2018 19:34
simaishi pushed a commit that referenced this pull request Mar 6, 2018
Update role identifiers for tasks collection
(cherry picked from commit 79e5081)

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

simaishi commented Mar 6, 2018

Gaprindashvili backport details:

$ git log -1
commit e31423fb0df4650b067be4d268c7dafebfd69dd0
Author: Alberto Bellotti <abellotti@users.noreply.github.com>
Date:   Tue Jan 23 09:00:07 2018 -0500

    Merge pull request #296 from jntullo/bz_1535962
    
    Update role identifiers for tasks collection
    (cherry picked from commit 79e5081b52ba259cecd7e660dbd1b09e3e31c41f)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552278

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.

4 participants