Title: Trying to Fetch multiple ProjectIssues in a single batch call returns only the last ProjectIssue specified in the list · Issue #1407 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Trying to Fetch multiple ProjectIssues in a single batch call returns only the last ProjectIssue specified in the list · Issue #1407 · python-gitlab/python-gitlab
X Title: Trying to Fetch multiple ProjectIssues in a single batch call returns only the last ProjectIssue specified in the list · Issue #1407 · python-gitlab/python-gitlab
Description: 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 al...
Open Graph Description: 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, whi...
X Description: 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, whi...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1407
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Trying to Fetch multiple ProjectIssues in a single batch call returns only the last ProjectIssue specified in the list","articleBody":"## Description of the problem, including code/CLI snippet\r\nAccording to [Gitlab](https://docs.gitlab.com/ee/api/issues.html#list-project-issues), we can make a batch GET call to fetch multiple issues by passing in the list of issue_ids in parameter `iids`. \r\n\r\nHowever, 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.\r\n\r\n```python\r\nproject = gl.projects.get(project_id)\r\nproject.issues.list(all=True, iids=[1, 2, 3]) # Returns a list with a single element ProjectIssue[iid=3]\r\nproject.issues.list(all=True, iids=[3, 2, 1]) # Returns a list with a single element ProjectIssue[iid=1]\r\n\r\n```\r\n\r\nAre batch requests not supported yet or is this a bug? \r\n\r\n## Expected Behavior\r\nThe batch call should return a list of all ProjectIssues as mentioned in the `iids` field.\r\n```python\r\nproject = gl.projects.get(project_id)\r\nproject.issues.list(all=True, iids=[1, 2, 3]) # Should return [ProjectIssue(iid=1), ProjectIssue(iid=2), ProjectIssue(iid=3)]\r\n```\r\n\r\n## Actual Behavior\r\nOnly the ProjectIssue corresponding to the last id in the `iids` list is returned \r\n```python\r\nproject = gl.projects.get(project_id)\r\nproject.issues.list(all=True, iids=[1, 2, 3]) # Returns a list with a single element ProjectIssue[iid=3]\r\n```\r\n\r\n## Specifications\r\n\r\n - python-gitlab version: 2.6.0\r\n - API version you are using (v3/v4): v4\r\n - Gitlab server version (or gitlab.com): GitLab Community Edition 13.10.2\r\n","author":{"url":"https://github.com/aaronalphonso","@type":"Person","name":"aaronalphonso"},"datePublished":"2021-04-23T12:39:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/1407/python-gitlab/issues/1407"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eea8d97a-e548-56b9-faa0-afb23553c062 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 975A:202F53:19AB792:23497E4:69738DB9 |
| html-safe-nonce | f29a328d057720b49da4050e38a62fa72d740056183c5a89d83223c69035b677 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzVBOjIwMkY1MzoxOUFCNzkyOjIzNDk3RTQ6Njk3MzhEQjkiLCJ2aXNpdG9yX2lkIjoiNDYyNDM2NzAyNzEwMjEyNTQ5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c07839b48374cbc71dd1c58281ef3b5069fb89427bb67da6372cf88dc78914f8 |
| hovercard-subject-tag | issue:866073457 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/1407/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5c390e1bb180992de9a154fb0cb7f4e11bf07dd303996a955360750546e288f/python-gitlab/python-gitlab/issues/1407 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5c390e1bb180992de9a154fb0cb7f4e11bf07dd303996a955360750546e288f/python-gitlab/python-gitlab/issues/1407 |
| og:image:alt | 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, whi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aaronalphonso |
| hostname | github.com |
| expected-hostname | github.com |
| None | f0b5e2d1da32de5a0b7bcfbc5ba007c93e8e63098fba29e1200efb674aa72e66 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c96653671324f9b6d4c5f787435acf56a06087dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width