Skip to content

cannot list user project #881

Closed
Closed

Description

@LuckySB

Description of the problem, including code/CLI snippet

cli command return error
./gitlab -v user-project list --user-id 777

Expected Behavior

list of user project

Actual Behavior

Impossible to list objects ('NoneType' object has no attribute 'id')

Specifications

  • python-gitlab version: 1.11.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 12.2.5

Activity

  1. max-wittig commented on Sep 13, 2019

    @max-wittig
    Member

    Are you sure that user id 777 exists?

  2. LuckySB commented on Sep 13, 2019

    @LuckySB
    ContributorAuthor

    user with id 777 exists and have project

    gitlab user get --id 777

    id: 777
    username: s000005
    

    gitlab -v project get --id 1426

    id: 1426
    creator-id: 777
    name: xpaste
    name-with-namespace: s000005 / xpaste
    owner:
      id: 777
      name: s000005
      state: active
      username: s000005
    path: xpaste
    path-with-namespace: s000005/xpaste
    
  3. max-wittig commented on Sep 13, 2019

    @max-wittig
    Member

    What exactly do you want to list in the repository? What should the CLI list, if you specify a project id? I don't know much about the CLI, but it sounds like you need another parameter.

  4. LuckySB commented on Sep 13, 2019

    @LuckySB
    ContributorAuthor

    I want to get a list of repositories whose owner is this user or maybe all the repositories in the user's namespace

    the command gitlab user-project list --user-id 777 does not work. returns an error.

    I look at the help output gitlab user-project list -h, and I see that you can only set the user ID

  5. LuckySB commented on Sep 21, 2019

    @LuckySB
    ContributorAuthor

    can you fix this bug ?

  6. changed the title [-]cannot lust user project[/-] [+]cannot list user project[/+] on Sep 21, 2019
  7. max-wittig commented on Sep 21, 2019

    @max-wittig
    Member

    I'm just a single maintainer and I never use the CLI, but if you need this feature, I would be happy to review your merge request.

  8. LuckySB commented on Sep 26, 2019

    @LuckySB
    ContributorAuthor

    @max-wittig
    Please review my request

  9. locked as resolved and limited conversation to collaborators on Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions