feat: add feature to get inherited member for project/group#1376
feat: add feature to get inherited member for project/group#1376nejch merged 1 commit intopython-gitlab:masterfrom
Conversation
|
@JohnVillalovos this helps get rid of a custom method that prevented users from using the endpoint fully (only list was supported, not get, and even that didn't work properly like ListMixin). My only silly thought in the initial PR was that @Shkurupii thanks again and sorry for the delay, I will resolve the conflicts here so you don't have to rebase again. One caveat is I think this will not work in the CLI because of how subcommands are constructed from object names (this reuses |
JohnVillalovos
left a comment
There was a problem hiding this comment.
Forgot to push the "Submit review" button a week or so ago...
Based on how the API is I lean towards FYI: I did a rebase of this a week or so ago. Might help you. https://github.com/JohnVillalovos/python-gitlab/tree/jlvillal/feat-get-inherited-members |
83f8d03 to
4b716a3
Compare
4b716a3 to
e444b39
Compare
nejch
left a comment
There was a problem hiding this comment.
@Shkurupii thanks, I just rebased/squashed this and added a few more fixes that come from more recent typing and pep8 checks but I've kept you as author.
I'll let @JohnVillalovos merge though so I don't self-approve 😁
Oh sorry! I must have missed this 😢 Thanks for merging! |
Hi!
First of all excuse me for inconvenience. I failed my previous PR(#1187) branch during rebasing, so PR automatically were closed.
Briefly, PR about the same, feature #1133, and taking into account @nejch 's suggestion from (#1187)
Here I propose to introduce new custom managers ProjectMemberAllManager (/projects/:id/members/all/:user_id) and GroupMemberAllManager (/groups/:id/members/all/:user_id). Subsequently, in order to fetch a list or instance of members including inherited ones, you will need to:
@JacobHenner , just fyi.
Closes #1133