FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ProjectMergeRequestDiscussionNoteManager is missing ListMixin · Issue #3180 · python-gitlab/python-gitlab · GitHub

Repository navigation

ProjectMergeRequestDiscussionNoteManager is missing ListMixin #3180

Description

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

Activity

  1. github-actions commented on Jun 25, 2025

    This issue was marked stale because it has been open 60 days with no activity. Please remove the stale label or comment on this issue. Otherwise, it will be closed in 15 days.
    As an open-source project, we rely on community contributions to address many of the reported issues. Without a proposed fix or active work towards a solution it is our policy to close inactive issues. This is documented in CONTRIBUTING.rst
    How to keep this issue open: * If you are still experiencing this issue and are willing to investigate a fix, please comment and let us know. * If you (or someone else) can propose a pull request with a solution, that would be fantastic. * Any significant update or active discussion indicating progress will also prevent closure.
    We value your input. If you can help provide a fix, we'd be happy to keep this issue open and support your efforts.

  2. massimiliano96 commented on Jul 17, 2025

    Contributor

    Any updates on this? If not, I can take care of it.

    It should be enough to add ListMixin to ProjectMergeRequestDiscussionNoteManager.
    Though for clarity, it might be even better to directly use CRUDMixin, like so:
    class ProjectMergeRequestDiscussionNoteManager(CRUDMixin[ProjectMergeRequestDiscussionNote])

  3. JohnVillalovos commented on Jul 17, 2025

    Member

    @massimiliano96 PRs welcome. Thanks.

  4. massimiliano96 commented on Jul 18, 2025

    Contributor

    @JohnVillalovos this is the PR: #3233
    Let me know if anything should be added or adjusted.

  5. added a commit that references this issue on Jul 18, 2025
    754022c
  6. added a commit that references this issue on Jul 18, 2025
    865339a
  7. added a commit that references this issue on Jan 18, 2026
    f311b5c
  8. locked as resolved and limited conversation to collaborators on Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL