Skip to content

add group members all - #599

Closed
hans-d wants to merge 2 commits into
python-gitlab:masterfrom
hans-d:feat/group-members-all
Closed

add group members all#599
hans-d wants to merge 2 commits into
python-gitlab:masterfrom
hans-d:feat/group-members-all

Conversation

@hans-d

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

Copy link
Copy Markdown
Contributor

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

@max-wittig

Copy link
Copy Markdown
Member

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

Thanks 😃

Comment thread gitlab/v4/objects.py
pass


class GroupMemberAllManager(ListMixin, RESTManager):

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Hi @hans-d

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

Thanks

@hans-d

hans-d commented Oct 28, 2018

Copy link
Copy Markdown
Contributor Author

Fine by me

@TobiX

TobiX commented Nov 7, 2018

Copy link
Copy Markdown

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

@gpocentek

Copy link
Copy Markdown
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