Skip to content

Commit

Permalink
More prints!
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Oct 12, 2023
1 parent 1813449 commit e8a765d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions galaxy_ng/app/access_control/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def to_internal_value(self, data):
except ValueError:
raise ValidationError(detail={'group': _('Invalid group name or ID')})

print(f'GROUP FIELD INTERNAL FINAL: {internal}')
return internal


Expand All @@ -88,7 +87,6 @@ def _validate_user(self, user_data):
def to_representation(self, value):
rep = []
for user in value:
print(f'TO_REP: {value}')
rep.append({
'id': user.id,
'name': user.username,
Expand All @@ -97,8 +95,6 @@ def to_representation(self, value):
return rep

def to_internal_value(self, data):
print(f'UserPermissionField data:{data}')

if not isinstance(data, list):
raise ValidationError(detail={
'users': _('Users must be a list of user objects')
Expand Down
3 changes: 0 additions & 3 deletions galaxy_ng/app/access_control/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def users(self, users):

@transaction.atomic
def _set_users(self, users):
print(f'SETTING USERS ... {users}')
if self._state.adding:
self._users = users
else:
Expand All @@ -93,13 +92,11 @@ def _set_users(self, users):
obj, include_model_permissions=False)
for user in current_users:
for perm in current_users[user]:
print(f'REMOVE_ROLE perm:{perm} user:{user} obj:{obj}')
remove_role(perm, user, obj)

for user in users:
for role in users[user]:
try:
print(f'ASSIGN ROLE role:{role} user:{user} obj:{obj}')
assign_role(role, user, obj)
except BadRequest:
raise ValidationError(
Expand Down
1 change: 0 additions & 1 deletion galaxy_ng/app/api/v3/serializers/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def create(self, validated_data):
links_data = validated_data.pop('links', [])

instance = models.Namespace.objects.create(**validated_data)
print(f'NamespaceSerializer instance:{instance}')

# create NamespaceLink objects if needed
new_links = []
Expand Down
1 change: 0 additions & 1 deletion galaxy_ng/app/api/v3/viewsets/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def create(self, request: Request, *args, **kwargs) -> Response:
raise ConflictError(
detail={'name': _('A namespace named %s already exists.') % name}
)
print(f'NAMESPACEVIEWSET.CREATE -> ARGS:{args} KWARGS:{kwargs} REQUEST.DATA:{request.data}')
return super().create(request, *args, **kwargs)

@transaction.atomic
Expand Down

0 comments on commit e8a765d

Please sign in to comment.