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

[WIP] Allow more specific restriction types for roles #8891

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaywcarman
Copy link
Member

@jaywcarman jaywcarman commented Aug 10, 2023

Related to:

Follow up to #8833, which introduced separate restrictions for Catalog Items.

This changes further splits the role restriction settings to include the following types:

  • Catalog Items
  • Key Pairs
  • Orchestration Stacks
  • Services
  • VMs and Templates

Follow 5323ff4 in allowing more specific restriction types.
@jaywcarman jaywcarman force-pushed the allow_more_specific_restriction_types_for_roles branch from c84e2ed to 595bd50 Compare August 10, 2023 19:32
@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2023

Checked commit jaywcarman@595bd50 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
3 files checked, 5 offenses detected

app/controllers/ops_controller/ops_rbac.rb

app/views/ops/_rbac_role_details.html.haml

  • ⚠️ - Line 37 - Avoid using instance variables in partials views
  • ⚠️ - Line 49 - Avoid using instance variables in partials views
  • ⚠️ - Line 61 - Avoid using instance variables in partials views
  • ⚠️ - Line 73 - Avoid using instance variables in partials views

@jaywcarman
Copy link
Member Author

Before this change, viewing a role:
image

Before this change, editing a role:
image

With this change, viewing a role:
image

With this change, editing a role:
image

@@ -19,28 +19,64 @@
= javascript_tag(javascript_focus('name'))
.form-group
%label.col-md-4.control-label
= _('Access Restriction for Orchestration Stacks, Key Pairs, Services, VMs, and Templates')
= _('Access Restriction for Catalog Items')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it is functional, I don't really like the new role view. The phrase "Access Restriction for ..." is repeated five times. This also causes each access restriction label to wrap onto two lines. Yuck 🥴 !

I'm looking into grouping the restriction settings to improve. Suggestions are welcome 😄

@miq-bot miq-bot added the stale label Nov 13, 2023
@miq-bot
Copy link
Member

miq-bot commented Nov 13, 2023

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot
Copy link
Member

miq-bot commented Feb 19, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

1 similar comment
@miq-bot
Copy link
Member

miq-bot commented May 20, 2024

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s).

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

2 participants