Skip to content

ProjectMergeRequestDiscussionNoteManager is missing ListMixin #3180

@AdrianVovk

Description

@AdrianVovk

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy