Skip to content

add group members all #599

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

Closed
wants to merge 2 commits into from

Conversation

hans-d
Copy link
Contributor

@hans-d hans-d commented Sep 29, 2018

fixes #589: gitlab group-member-all list --group-id $id

@max-wittig
Copy link
Member

@hans-d Thanks for your contribution! Could you please also add some tests and add this endpoint to the documentation?

Thanks 😃

pass


class GroupMemberAllManager(ListMixin, RESTManager):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand your goal here, but I think it would make more sense to add an all() method to the GroupMemberManager class. The RunnerManager class has the same logic. From a REST point of view all is an action applied to the resource at path /groups/:id:/members (GroupMember).

Does that make sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, hadn't seen that variation yet. Will try to change it like that soonish

@gpocentek
Copy link
Contributor

Hi @hans-d

Is it OK with you if I take over this MR?

Thanks

@hans-d
Copy link
Contributor Author

hans-d commented Oct 28, 2018

Fine by me

@TobiX
Copy link

TobiX commented Nov 7, 2018

This should probably be implemented in the same way for project members...

@gpocentek
Copy link
Contributor

I pushed #642 which will add support for the method for groups and projects.

Closing this one.

@gpocentek gpocentek closed this Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/groups/:id/members/all not yet supported?
4 participants