Skip to content

Kwargs always overwrite response data #171

Closed
@hedderich

Description

@hedderich

When requesting issues filtered by labels, they never contain the actual labels. Instead they contain only the ones provided as a filter.

Consider the following setup:

>>> client = gitlab.Gitlab(...)
>>> issues = client.project_issues.list(project_id=123))
>>> len(issues)
5
>>> issues[0].labels
{'somelabel', 'another', 'evenmore'}

Now when you filter for a specific label, the result contains the correct amount of issues, but is missing all the remaining labels:

>>> issues = client.project_issues.list(project_id=123, labels=set(['somelabel']))
>>> len(issues)
2
>>> issues[0].labels
{'somelabel'}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions