Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to GitLab API v4 / python-gitlab>=1.3.0. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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