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

Add migration aimed at removing RBAC on RBAC roles #192

Merged
merged 3 commits into from
Jan 28, 2020

Conversation

wcmitchell
Copy link
Contributor

This seems like it works from some local testing, but definitely needs a couple of extra eyes on it.

Signed-off-by: Chris Mitchell [email protected]

@wcmitchell
Copy link
Contributor Author

Ugh, and tests failing. let me fix that. Left in some PDB statements

@wcmitchell wcmitchell force-pushed the RonR_removal_migration branch from bb778c1 to b2e663a Compare January 24, 2020 19:30
# if so, just delete the access object we know is RBAC, and leave the role
if non_rbac_permissions:
# this will still delete the resource definitions for the access object
access.delete()
Copy link
Contributor

Choose a reason for hiding this comment

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

This actually needs to be rbac_permission here, I believe?

Suggested change
access.delete()
rbac_permission.delete()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I think you're right. That's what I get for playing with naming just before submitting >_<

Comment on lines 26 to 28



Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit, but we can probably do away with a few of these newlines?

Copy link
Contributor

@coderbydesign coderbydesign left a comment

Choose a reason for hiding this comment

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

Just checked both branches of the logic here and found one minor issue, but I tried the fix locally and it seemed to worked both ways.

Copy link
Contributor

@astrozzc astrozzc left a comment

Choose a reason for hiding this comment

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

Nice 👍

Copy link
Contributor

@coderbydesign coderbydesign left a comment

Choose a reason for hiding this comment

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

Looks good!! 👍

@wcmitchell wcmitchell merged commit c1fb096 into RedHatInsights:master Jan 28, 2020
lpichler pushed a commit that referenced this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants