You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
List groups only skips the last id provided in skip_groups #1256
Description of the problem, including code/CLI snippet
The get groups endpoint returns a list of projects. When providing the parameter <skip_groups> the ids in the array should be skipped. The problem is that only the LAST id in the array is skipped.
Expected Behavior
All groups that are provided in skip_groups should be skipped.
Actual Behavior
Only the group related to the last id in skip_groups is skipped.
Specifications
python-gitlab version: 2.5.0
API version you are using (v3/v4): v4
Gitlab server version (or gitlab.com): Gitlab server version
Activity
max-wittig commentedon Dec 17, 2020
Are you sure that you've provided the groups correctly?
Could you add a little snippet of your code here?
schuand commentedon Dec 17, 2020
max-wittig commentedon Dec 17, 2020
The variable
skipped_projects, should containgroup ids, notproject idsschuand commentedon Dec 17, 2020
Yes, the naming is bad. The ids are group ids.
The ids are valid and I can get the groups without problems. But I can't skip them.
JohnVillalovos commentedon Apr 26, 2021
At the moment,
skip_groupsmust be a comma-delimited string, or a list of strings. It can't be a list of integers.The root-cause for this issue is that the Gitlab API doesn't accept a list of integers at this time.
A work-around is being developed and progress tracked in: #1407