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
Fixes #24268 - Add permissions to canned admin #7532
Conversation
|
Issues: #24268 |
|
[test katello] |
|
Tests will be failing until the foreman part is merged. |
|
I am getting a error, on rake:compile while I try to compile it with foreman's PR. |
lib/katello/plugin.rb
Outdated
| @@ -300,6 +300,8 @@ | |||
| Katello::PermissionCreator.new(self).define | |||
| add_all_permissions_to_default_roles | |||
|
|
|||
| add_permissions_to_default_roles 'Canned admin' => [:create_lifecycle_environments, :create_content_views] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a name change here to System admin
cc404a9
to
0e1f545
Compare
|
Rebased and updated. |
|
[test katello] |
|
@xprazak2 Looks like we have another "rake aborted!" error in the tests. |
|
[test katello] |
|
@johnsonm325, what do I have to do to make the tests pass? The db still fails to get configured properly... |
|
[test katello] |
| @@ -315,6 +315,8 @@ | |||
| Katello::PermissionCreator.new(self).define | |||
| add_all_permissions_to_default_roles | |||
|
|
|||
| add_permissions_to_default_roles 'System admin' => [:create_lifecycle_environments, :create_content_views] | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think add_permissions_to_default_roles needs to go inside Foreman::Plugin.register :katello do to work properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm, I can't count.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole file is one big block, I think it is inside.
|
So I had another look at this. Please have a look at |
|
core side has been merged |
|
[test katello] |
|
Tests pass now. Rubocop is unhappy, but that's unrelated to this PR. |
|
[test katello] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jturel Tests are passing now
|
is this no longer "blocked by another pr"? |
|
Correct, both the core feature and the test fix were merged |
|
Yes, the core feature is merged, I have one question though, if this is merged now, will we still get this in katello 3.9 RC (if there's another) or it goes in 3.10 ? |
|
Looks good. I pinged @zjhuntin on getting it into 3.9 since he is the release owner. One question - how was the determination made as to which permissions should be applied to 'System admin' |
|
'System admin' is supposed to create new organizations and because the organization default content view and library lifecycle env are created during that process, permissions for these two are needed for organization to be successfully created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as advertised 🥇
|
@san7ket this will be part of 3.9! |
|
I opened #7826 with a cp into 3.9 branch. |
Depends on theforeman/foreman#5841