Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Trying to Fetch multiple ProjectIssues in a single batch call returns only the last ProjectIssue specified in the list #1407

Closed
Labels
@aaronalphonso

Description

@aaronalphonso

Description of the problem, including code/CLI snippet

According toGitlab, we can make a batch GET call to fetch multiple issues by passing in the list of issue_ids in parameteriids.

However, while using the library this method call always returns a list with a single element (which happens to be the last element in theiids list.

project=gl.projects.get(project_id)project.issues.list(all=True,iids=[1,2,3])# Returns a list with a single element ProjectIssue[iid=3]project.issues.list(all=True,iids=[3,2,1])# Returns a list with a single element ProjectIssue[iid=1]

Are batch requests not supported yet or is this a bug?

Expected Behavior

The batch call should return a list of all ProjectIssues as mentioned in theiids field.

project=gl.projects.get(project_id)project.issues.list(all=True,iids=[1,2,3])# Should return [ProjectIssue(iid=1), ProjectIssue(iid=2), ProjectIssue(iid=3)]

Actual Behavior

Only the ProjectIssue corresponding to the last id in theiids list is returned

project=gl.projects.get(project_id)project.issues.list(all=True,iids=[1,2,3])# Returns a list with a single element ProjectIssue[iid=3]

Specifications

  • python-gitlab version: 2.6.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): GitLab Community Edition 13.10.2

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp