Skip to content

members.all returns dicts instead of REST objects #699

Closed

Description

@IRDonch

Description of the problem, including code/CLI snippet

project.members.all() is documented as returning a RESTObjectList, but it actually returns a list of dicts. Same for groups.

Expected Behavior

all() should return a list of the same type as list().

Actual Behavior

>>> type(gitlab.Gitlab.from_config().projects.list()[0].members.list()[0])
<class 'gitlab.v4.objects.ProjectMember'>
>>> type(gitlab.Gitlab.from_config().projects.list()[0].members.all()[0])
<class 'dict'>

Specifications

  • python-gitlab version: 1.7.0
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): Shouldn't matter.

Activity

  1. self-assigned this
    on Mar 3, 2019
  2. added a commit that references this issue on Mar 3, 2019
    d74ff50
  3. locked as resolved and limited conversation to collaborators on Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions