Skip to content

Modify list method of UserProjectManager #669

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 1 commit into from
Closed

Modify list method of UserProjectManager #669

wants to merge 1 commit into from

Conversation

carleski
Copy link

@carleski carleski commented Dec 21, 2018

...to use kwargs['user_id'] and self._parent.id

When running via CLI, as with python-gitlab user-projects list --user-id 1, the self._parent.id variable does not exist. However, the user id is passed through to the function as kwargs['user_id']. This changes adds an if/else block to check to see if self._parent.id exists, and then use the appropriate variable.

@gpocentek
Copy link
Contributor

Hi @carleski

Thanks for working on this!

You patch works but I think it doesn't address the root problem. The user_id attribute should be discovered automatically.

@max-wittig
Copy link
Member

@gpocentek What did you mean by automatically?

@evgkrsk
Copy link

evgkrsk commented Sep 26, 2019

Works for me: this patch let me list user's projects using symbolic user name (as well as numeric user's id).

Why it doesnt merged yet ?

@max-wittig
Copy link
Member

Merged in #886

@max-wittig max-wittig closed this Nov 10, 2019
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.

4 participants