-
Notifications
You must be signed in to change notification settings - Fork 136
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
Create galaxy_ng specific Roles #1058
Create galaxy_ng specific Roles #1058
Conversation
galaxy_ng/app/signals/handlers.py
Outdated
locked_roles = GALAXY_VIEWSETS[viewset]['LOCKED_ROLES'] | ||
if locked_roles is not None: | ||
desired_roles.update(locked_roles or {}) | ||
adjust_roles(apps, role_prefix, desired_roles, 0) |
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 would use either of these (or if you really want to shut it up pass it as kwarg verbosity=0
.)
adjust_roles(apps, role_prefix, desired_roles, 0) | |
adjust_roles(apps, role_prefix, desired_roles) |
adjust_roles(apps, role_prefix, desired_roles, 0) | |
adjust_roles(apps, role_prefix, desired_roles, verbosity=kwargs.get("verbosity", 0)) |
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.
Thanks for catching this. I meant to correct it before opening the PR...
3a8521e
to
02666fc
Compare
@mdellweg Can |
I guess so. can you file a request for this? |
@@ -48,6 +50,26 @@ def create_namespace_if_not_present(sender, instance, created, **kwargs): | |||
Namespace.objects.get_or_create(name=instance.namespace) | |||
|
|||
|
|||
def set_role_definitions(sender, **kwargs): |
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 just realized, you could do
def set_role_definitions(sender, **kwargs): | |
def set_role_definitions(sender, apps=None, verbosity=1, **kwargs): |
instead of the kwargs.get
. (Just a matter of preference...)
fcc5e8e
to
126156c
Compare
/retest |
aad4e50
to
0b8f56f
Compare
6d74484
to
509d1a3
Compare
743f987
to
36ef4c4
Compare
/retest |
3f4d717
to
5fc46da
Compare
/retest |
Update to pulpcore 3.17.3 Issue: AAH-1092
Issue: AAH-1092
Issue: AAH-1092
Issue: AAH-1092
Issue: AAH-1092
Issue: AAH-1092
5fc46da
to
1b2e1e8
Compare
🗞️ 🎢 🛼 |
Revert "Create galaxy_ng specific Roles (ansible#1058)" This reverts commit 3fefab0. No-Issue
Before:
After:
Issue: AAH-1092