Title: List merge requests using specific approver_ids regression · Issue #1698 · python-gitlab/python-gitlab · GitHub
Open Graph Title: List merge requests using specific approver_ids regression · Issue #1698 · python-gitlab/python-gitlab
X Title: List merge requests using specific approver_ids regression · Issue #1698 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet There might be a possible regression of #1010 with the latest version. The issue is exactly the same: group = gl.groups.get(id=475) group_mrs = group.mergerequests.list( all=True, st...
Open Graph Description: Description of the problem, including code/CLI snippet There might be a possible regression of #1010 with the latest version. The issue is exactly the same: group = gl.groups.get(id=475) group_mrs ...
X Description: Description of the problem, including code/CLI snippet There might be a possible regression of #1010 with the latest version. The issue is exactly the same: group = gl.groups.get(id=475) group_mrs ...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1698
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"List merge requests using specific approver_ids regression","articleBody":"## Description of the problem, including code/CLI snippet\r\n\r\nThere might be a possible regression of #1010 with the latest version. The issue is exactly the same:\r\n\r\n```python\r\ngroup = gl.groups.get(id=475)\r\ngroup_mrs = group.mergerequests.list(\r\n all=True,\r\n state=\"opened\",\r\n author_id=423,\r\n approver_ids=[423],\r\n)\r\n```\r\n\r\n```log\r\n[21:49:48] DEBUG Starting new HTTPS connection (1): *redacted*:443 connectionpool.py:971\r\n DEBUG https://*redacted*:443 \"GET /api/v4/user HTTP/1.1\" 200 None connectionpool.py:452\r\n[21:49:49] DEBUG https://*redacted*:443 \"GET /api/v4/groups/475 HTTP/1.1\" 200 None connectionpool.py:452\r\n DEBUG https://*redacted*:443 \"GET connectionpool.py:452\r\n /api/v4/groups/475/merge_requests?state=opened\u0026author_id=423\u0026approver_ids=423 \r\n HTTP/1.1\" 400 60 \r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/exceptions.py\", line 304, in wrapped_f\r\n return f(*args, **kwargs)\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/mixins.py\", line 242, in list\r\n obj = self.gitlab.http_list(path, **data)\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/client.py\", line 718, in http_list\r\n return list(GitlabList(self, url, query_data, **kwargs))\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/client.py\", line 881, in __init__\r\n self._query(url, query_data, **self._kwargs)\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/client.py\", line 891, in _query\r\n result = self._gl.http_request(\"get\", url, query_data=query_data, **kwargs)\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/client.py\", line 628, in http_request\r\n raise gitlab.exceptions.GitlabHttpError(\r\ngitlab.exceptions.GitlabHttpError: 400: approver_ids should be an array, 'None' or 'Any'\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"*redacted*.py\", line 30, in \u003cmodule\u003e\r\n group_mrs = group.mergerequests.list(\r\n File \"/usr/local/lib/python3.9/site-packages/gitlab/exceptions.py\", line 306, in wrapped_f\r\n raise error(e.error_message, e.response_code, e.response_body) from e\r\ngitlab.exceptions.GitlabListError: 400: approver_ids should be an array, 'None' or 'Any'\r\n```\r\n\r\n## Expected Behavior\r\n\r\nReturn merge requests for the specified `approver_ids`.\r\n\r\n## Actual Behavior\r\n\r\nRaises an exception.\r\n\r\n## Specifications\r\n\r\n - python-gitlab version: 2.10.1\r\n - API version you are using (v3/v4): v4\r\n - Gitlab server version (or gitlab.com): 14.2.4-ee\r\n","author":{"url":"https://github.com/skycaptain","@type":"Person","name":"skycaptain"},"datePublished":"2021-11-18T20:56:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1698/python-gitlab/issues/1698"}
| 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:4e53a4ff-31d3-6400-526a-6a61c7bfd16a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB30:386FF5:1B7BADF:25ED74F:6971F5DE |
| html-safe-nonce | 9eaea429b6f410736db62e14a55df13ac056193ef94824faff73733cf6c694b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjMwOjM4NkZGNToxQjdCQURGOjI1RUQ3NEY6Njk3MUY1REUiLCJ2aXNpdG9yX2lkIjoiNzAxNDM0NjgxNzg1MTc0OTg1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e96582c0e91c62453bd8486862dc304b14ebe70d3684e5e8cb98f0df3dc3749 |
| hovercard-subject-tag | issue:1057792221 |
| 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/1698/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e31fd71867a3f01aa40cf1480d5a77780d76b59fde401ad135427228758e6c86/python-gitlab/python-gitlab/issues/1698 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e31fd71867a3f01aa40cf1480d5a77780d76b59fde401ad135427228758e6c86/python-gitlab/python-gitlab/issues/1698 |
| og:image:alt | Description of the problem, including code/CLI snippet There might be a possible regression of #1010 with the latest version. The issue is exactly the same: group = gl.groups.get(id=475) group_mrs ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skycaptain |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d9da1aa47d387dfb2aca0f2e5c19150dc936b8128a6b2ecd6a02fc26a378fff |
| 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 | 4332d3e3368b9bce3dfd3c4a2643112933072734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width