-
Notifications
You must be signed in to change notification settings - Fork 668
Trying to Fetch multiple ProjectIssues in a single batch call returns only the last ProjectIssue specified in the list #1407
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
Comments
This seems related to some other issues where lists aren't passed to query params correctly, I'll check. I think we have a similar issue with scopes. Out of curiosity, have you tried passing the |
I just tried passing in |
EDIT: Now I am less sure. I need to do more investigation... I'm pretty sure that the patch as it is right now will not work 😢 I have proposed a patch for this issue in #1413
|
EDIT: So after further research believe the problem is python-gitlab. Created issue for it: #1419
|
Related issue: #1256 |
@nejch I think I may have found out our root cause issue. Had a discussion with a Gitlab developer in: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33450 From the Gitlab documentation: https://docs.gitlab.com/ee/api/#array array
So it seems for |
Description of the problem, including code/CLI snippet
According to Gitlab, we can make a batch GET call to fetch multiple issues by passing in the list of issue_ids in parameter
iids
.However, while using the library this method call always returns a list with a single element (which happens to be the last element in the
iids
list.Are batch requests not supported yet or is this a bug?
Expected Behavior
The batch call should return a list of all ProjectIssues as mentioned in the
iids
field.Actual Behavior
Only the ProjectIssue corresponding to the last id in the
iids
list is returnedSpecifications
The text was updated successfully, but these errors were encountered: