-
Notifications
You must be signed in to change notification settings - Fork 124
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
Related field query param. #1182
Related field query param. #1182
Conversation
85c1ece
to
0e683b7
Compare
/retest |
/retest |
galaxy_ng/tests/unit/api/base.py
Outdated
@@ -86,7 +86,7 @@ def _create_group(scope, name, users=None, perms=[]): | |||
return group | |||
|
|||
@staticmethod | |||
def _create_namespace(name, groups=None): | |||
def _create_namespace(name, groups=[]): |
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.
default parameter values are globally shared, even between calls. I think it looks safe in the use here, but its generally a good idea to avoid mutable default values. It would be really easy for a future change to mutate this and that mutation leak into all other calls to the method.
Maybe revert it and add if groups is None: groups = []
?
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.
it can be
def _create_namespace(name, groups=None):
groups = groups or []
✅ Deploy Preview for galaxyng ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@newswangerd Is it possible to get
This query gives the collection with the |
This doesn't currently work on the collection list view fyi. There's an issue with pulp ansible that's preventing it from parsing |
Description 🛠
Adds the
related_fields
query parameter andmy_permissions
to collection Namespaces.Example:
Reviewer Checklists 👀
Developer reviewer:
galaxy_ng/tests/integration
orgalaxy_ng/tests/functional
, and they fully cover necessary test scenarios… or tests not neededQE reviewer (exceptions):
galaxy_ng/tests/integration
orgalaxy_ng/tests/functional
, and they fully cover necessary test scenarios… or tests not neededNote: when merging, include the Jira issue link in the squashed commit