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

Role RBAC tree and feature fixes #8281

Merged
merged 4 commits into from
Apr 28, 2016

Conversation

martinpovolny
Copy link
Member

@martinpovolny martinpovolny commented Apr 27, 2016

Make Role RBAC tree editor work:

  • Fix feature fixtures for middleware, network and containers.
  • Simplify interface of rbac_expand_features and rbac_compact_features.
  • Extract recurse_sections_and_features from rbac_role_get_form_vars to add support for multi-level sections.

@martinpovolny
Copy link
Member Author

@h-kataria : can you take a look, please?

I am trying to write some specs for these changes.

@h-kataria
Copy link
Contributor

Fix verified in UI. Looks good.

@chessbyte chessbyte closed this Apr 27, 2016
@chessbyte chessbyte reopened this Apr 27, 2016
@chessbyte chessbyte closed this Apr 27, 2016
@chessbyte chessbyte reopened this Apr 27, 2016
@chessbyte
Copy link
Member

Now that #8291 is merged, closed/reopened to restart Travis

@chessbyte chessbyte closed this Apr 27, 2016
@chessbyte chessbyte reopened this Apr 27, 2016
@martinpovolny
Copy link
Member Author

martinpovolny commented Apr 28, 2016

Restarted travis, all is green now.

@h-kataria
Copy link
Contributor

@martinpovolny looks like Travis did not finish running.

@martinpovolny
Copy link
Member Author

martinpovolny commented Apr 28, 2016

Travis was green from last night until I pushed the specs in #8312. Strange.

Add default value for the 2nd argument so that it's not the caller's
resposibility to pass the correct value.
Extract recurse_sections_and_features from rbac_role_get_form_vars
deduplicating the logic in recurse_sections_and_features and adding
support for nested menu sections.
@miq-bot
Copy link
Member

miq-bot commented Apr 28, 2016

Checked commits martinpovolny/manageiq@ccef8fc~...010dd5a with ruby 2.2.3, rubocop 0.37.2, and haml-lint 0.16.1
2 files checked, 1 offense detected

app/controllers/ops_controller/ops_rbac.rb

  • 🔹 - Line 1225, Col 3 - Metrics/AbcSize - Assignment Branch Condition size for recurse_sections_and_features is too high. [16.61/15]

@h-kataria h-kataria added this to the Sprint 40 Ending May 9, 2016 milestone Apr 28, 2016
@h-kataria h-kataria merged commit 91b798c into ManageIQ:master Apr 28, 2016
@chessbyte
Copy link
Member

@martinpovolny @h-kataria @dclarizio is this for darga or not?

@dclarizio
Copy link

@chessbyte added yes, not a blocker, but really needed for setting RBAC features in roles

chessbyte pushed a commit that referenced this pull request Apr 28, 2016
Role RBAC tree and feature fixes
(cherry picked from commit 91b798c)
@martinpovolny martinpovolny deleted the role_rbac_fixes branch November 28, 2017 18:53
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

5 participants