From 1e63822a9b33acc20f1554d8e7ac6318d646449c Mon Sep 17 00:00:00 2001 From: Ryan Holleran Date: Thu, 1 Dec 2022 19:33:33 -0600 Subject: [PATCH] fix: Use the ProjectIterationManager within the Project object The Project object was previously using the GroupIterationManager resulting in the incorrect API endpoint being used. Utilize the correct ProjectIterationManager instead. Resolves #2403 --- gitlab/v4/objects/projects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index e0309659f..f19b84536 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -57,7 +57,7 @@ from .integrations import ProjectIntegrationManager, ProjectServiceManager # noqa: F401 from .invitations import ProjectInvitationManager # noqa: F401 from .issues import ProjectIssueManager # noqa: F401 -from .iterations import GroupIterationManager # noqa: F401 +from .iterations import ProjectIterationManager # noqa: F401 from .jobs import ProjectJobManager # noqa: F401 from .labels import ProjectLabelManager # noqa: F401 from .members import ProjectMemberAllManager, ProjectMemberManager # noqa: F401 @@ -187,7 +187,7 @@ class Project(RefreshMixin, SaveMixin, ObjectDeleteMixin, RepositoryMixin, RESTO invitations: ProjectInvitationManager issues: ProjectIssueManager issues_statistics: ProjectIssuesStatisticsManager - iterations: GroupIterationManager + iterations: ProjectIterationManager jobs: ProjectJobManager keys: ProjectKeyManager labels: ProjectLabelManager