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

Missing APIs (Role/Groups) #265

Open
1 of 4 tasks
hexylena opened this issue Jun 22, 2018 · 4 comments
Open
1 of 4 tasks

Missing APIs (Role/Groups) #265

hexylena opened this issue Jun 22, 2018 · 4 comments

Comments

@hexylena
Copy link
Member

hexylena commented Jun 22, 2018

  • add / remove user from role (needs galaxy implementation first)
  • add / remove group from role (needs galaxy implementation first)
  • undelete role
  • undelete group
@hexylena hexylena self-assigned this Jun 22, 2018
@nsoranzo
Copy link
Member

nsoranzo commented Jun 22, 2018

@erasche We can already add/remove the association of a role to a group with gi.groups.add_group_role() and gi.groups.delete_group_role() respectively.

@nsoranzo
Copy link
Member

nsoranzo commented Jun 22, 2018

xref. related #216

@hexylena
Copy link
Member Author

hexylena commented Jun 22, 2018

@nsoranzo ah of course. Would it be sensible to add a function for adding/removing the role-group association on the role function so it's clear to other people (or maybe just a note in the documentation on role would be sufficient?) Something like

def add_role_group(role_id, group_id):
  return gi.groups.add_group_role(group_id, role_id)

@nsoranzo
Copy link
Member

Sure, gi.roles.add_role_group() makes sense, since we generally speak of association between the 2: https://galaxyproject.org/learn/security-features/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants