Skip to content

Fix: Enumerate all Projects under a Group by using non-deprecated API

The Group Details API is currently used to fetch all projects part of a group as part of the sync_group function.

This has 2 downsides:

  • Since Gitlab 12.6, the max number of projects returned is hardcoded to 100. There is no pagination available.
  • The information will be completely removed with v5 of the API

This MR introduces a minimal set of changes to switch to the suggested Endpoint to list a Group's Projects, which supports pagination and has no limit.

The change is backward incompatible with versions of Gitlab that don't implement the new endpoint (API v3?). I couldn't find an exact version on which they became available, but they're present in documentation since at least Gitlab 10.3.

Edited by Lorenzo Turrino

Merge request reports