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

Appearance settings

ProjectMergeRequestDiscussionNoteManager is missing ListMixin #3180

Copy link
Copy link
@AdrianVovk

Description

@AdrianVovk
Issue body actions

Description of the problem, including code/CLI snippet

from gitlab import Gitlab
project = Gitlab("https://gitlab.gnome.org").projects.get(456)
mr = project.mergerequests.get(3680)
discussion = mr.discussions.list()[0]
notes = discussion.notes.list()

Expected Behavior

This returns a list of notes on the discussion

Actual Behavior

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'ProjectMergeRequestDiscussionNoteManager' object has no attribute 'list'

Workaround:

from gitlab.mixins import ListMixin
notes = ListMixin.list(discussion.notes)

Specifications

  • python-gitlab version: 5.3.1 (but looks like the mixin is missing on main branch too)
  • Gitlab server version (or gitlab.com): N/A

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.