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

Added separate features for Requests subtabs #17524

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

h-kataria
Copy link
Contributor

Separated features for each "Requests" sub tab under Automation/Automate/Requests & Compute/Infrastructure/Requests to provide users with capability to allow access to each type individually. Currently there was only features for Service/Requests user was forced to have access to Service/Requests features to be able to see Automation or Host Provisioning requests.

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

@bdunne
Copy link
Member

bdunne commented Jun 12, 2018

It feels strange to duplicate this. Is there a reason that a user would be allowed to see requests in one place (Automation Requests), but not another (Service Requests)?

I ask because I wouldn't expect the API to differentiate between them. I would expect GET /api/requests to show everything (automation, service, host_provision, etc.).

@h-kataria
Copy link
Contributor Author

UI PR: ManageIQ/manageiq-ui-classic#4062
@bdunne User can only have access to see specific type of Requests depending upon where they were redirected from to main Requests tab under Services in UI. User can access Requests screen from different places in UI and in absence of access to main Requests tab features under Services and not having an access to any of the other subtabs under a maintab users were not able to see any of their Requests, we had to add separate features for each individual "Requests" subtab. This PR makes it simple for admins to give access to Users to each individual Requests type tabs and features related to Requests. See screenshots in UI PR.

@martinpovolny
Copy link
Member

It feels strange to duplicate this. Is there a reason that a user would be allowed to see requests in one place

Those are different requests. From the admin perspective those are different things.

I ask because I wouldn't expect the API to differentiate between them. I would expect GET /api/requests to show everything (automation, service, host_provision, etc.).

Well then the API should be changed as well. We need to model the API and the UI according to the requirements not vice versa ;-)

@martinpovolny
Copy link
Member

@bdunne : Unless you have further notes. I'd merge this one. The UI part may need some cleanups, but the features will be needed.

@bdunne
Copy link
Member

bdunne commented Jun 13, 2018

@martinpovolny All of you are more experienced with this than I am, so merge if you feel it is correct.

Separated features for each "Requests" sub tab under Automation/Automate/Requests & Compute/Infrastructure/Requests to provide users with capability to allow access to each type individually. Currently there was only features for Service/Requests user was forced to have access to Service/Requests features to be able to see Automation or Host Provisioning requests.

https://bugzilla.redhat.com/show_bug.cgi?id=1508490
@h-kataria h-kataria force-pushed the miq_request_features_changes branch from 3c93832 to c3de340 Compare June 14, 2018 13:26
@miq-bot
Copy link
Member

miq-bot commented Jun 14, 2018

Checked commit h-kataria@c3de340 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 🏆

@dclarizio dclarizio merged commit 64a240b into ManageIQ:master Jun 18, 2018
@dclarizio dclarizio deleted the miq_request_features_changes branch June 18, 2018 15:58
@dclarizio dclarizio added this to the Sprint 88 Ending Jun 18, 2018 milestone Jun 18, 2018
@dclarizio dclarizio assigned dclarizio and unassigned martinpovolny Jun 18, 2018
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