Skip to content

inconsistency with project id option #783

@glensc

Description

@glensc

Description of the problem, including code/CLI snippet

GitLab v3/v4 API support numeric project id and project path as arguments but seems the python-gitlab support only numeric argument with exception of the project command.

Expected Behavior

Without having to create two roundtrips (or implement caching), I would expect the CLI API also support project name as project id argument.

Perhaps the project_id parameter is not properly urlencoded?

Actual Behavior

$ gitlab project get --id=group-name/project-name
id: 813
path: project-name

➔ gitlab project get --id=813
id: 813
path: project-name

➔ gitlab project-variable list --project-id=813
key: MYSQL_PASSWORD

➔ gitlab project-variable list --project-id=group-name/project-name
Impossible to list objects (404: 404 Not Found)

Specifications

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

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy