-
Notifications
You must be signed in to change notification settings - Fork 132
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 retrieve_org_or_project_list
management command
#2098
Conversation
d6fd47b
to
28c767d
Compare
ret[perm.user.username]['permissions'].append(perm.permission.codename) | ||
|
||
for user in ret.keys(): | ||
ret[user]['permissions'].sort() |
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.
Is there a specific reason we are sorting this?
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.
Not really... I've changed this in the latest commit
|
||
|
||
def get_project_users(project): | ||
ret = {} |
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 above two functions looks like good candidates to be in a util file and can be reused in other places
e6ca79a
to
cafbc05
Compare
cafbc05
to
3c718ce
Compare
Changes / Features implemented
retrieve_org_or_project_list
management command & testsSteps taken to verify this change does what is intended
Side effects of implementing this change
N/A
Before submitting this PR for review, please make sure you have:
Updated documentationCloses #2051