Visitar URL original
List groups only skips the last id provided in skip_groups · Issue #1256 · python-gitlab/python-gitlab · GitHub
Skip to content

List groups only skips the last id provided in skip_groups #1256

Description

@schuand

Description of the problem, including code/CLI snippet

The get groups endpoint returns a list of projects. When providing the parameter <skip_groups> the ids in the array should be skipped. The problem is that only the LAST id in the array is skipped.

Screenshot 2020-12-17 at 15 25 55

Expected Behavior

All groups that are provided in skip_groups should be skipped.

Actual Behavior

Only the group related to the last id in skip_groups is skipped.

Specifications

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

Activity

  1. max-wittig commented on Dec 17, 2020

    @max-wittig
    Member

    Are you sure that you've provided the groups correctly?

    Could you add a little snippet of your code here?

  2. schuand commented on Dec 17, 2020

    @schuand
    Author

    Screenshot 2020-12-17 at 16 36 51

    Screenshot 2020-12-17 at 16 44 45

    Screenshot 2020-12-17 at 16 37 07

  3. max-wittig commented on Dec 17, 2020

    @max-wittig
    Member

    The variable skipped_projects, should contain group ids, not project ids

  4. schuand commented on Dec 17, 2020

    @schuand
    Author

    Yes, the naming is bad. The ids are group ids.
    The ids are valid and I can get the groups without problems. But I can't skip them.

  5. JohnVillalovos commented on Apr 26, 2021

    @JohnVillalovos
    Member

    At the moment, skip_groups must be a comma-delimited string, or a list of strings. It can't be a list of integers.

    The root-cause for this issue is that the Gitlab API doesn't accept a list of integers at this time.

    A work-around is being developed and progress tracked in: #1407

  6. locked as resolved and limited conversation to collaborators on May 9, 2022
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions