Skip to content

Conversation

@kkofler
Copy link

@kkofler kkofler commented Sep 27, 2022

(Tested with python-gitlab 1.3.0 and 3.9.0.) GitLab no longer supports API v3 (since 11.0), so the port to API v4 is required to make this work at all with any recent version of GitLab (i.e., GitLab >= 11.0).

requirements/_base.txt: Bump python-gitlab requirement to >=1.3.0.

kanboard_gitlab/importer.py: Import requests globally, not from gitlab. Port to GitLab API v4: groups.search is gone, use groups.list(search=…) instead; a GroupProject must be explicitly converted to a full Project; a user is now a dict, so use ['username'] instead of .username on users.

README.adoc: Bump minimum required GitLab version to 9.0.0, where API v4 was introduced.

(Tested with python-gitlab 1.3.0 and 3.9.0.) GitLab no longer supports
API v3 (since 11.0), so the port to API v4 is required to make this work
at all with any recent version of GitLab (i.e., GitLab >= 11.0).

requirements/_base.txt: Bump python-gitlab requirement to >=1.3.0.

kanboard_gitlab/importer.py: Import requests globally, not from gitlab.
Port to GitLab API v4: groups.search is gone, use groups.list(search=…)
instead; a GroupProject must be explicitly converted to a full Project;
a user is now a dict, so use ['username'] instead of .username on users.

README.adoc: Bump minimum required GitLab version to 9.0.0, where API v4
was introduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant