Title: ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' · Issue #1312 · python-gitlab/python-gitlab · GitHub
Open Graph Title: ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' · Issue #1312 · python-gitlab/python-gitlab
X Title: ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' · Issue #1312 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet I'm not sure if this is a documentation or API bug. type(merge_request.pipelines(order_by='created_at'))
Open Graph Description: Description of the problem, including code/CLI snippet I'm not sure if this is a documentation or API bug. type(merge_request.pipelines(order_by='created_at'))
X Description: Description of the problem, including code/CLI snippet I'm not sure if this is a documentation or API bug. type(merge_request.pipelines(order_by='created_at')) <class 'list'&...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1312
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList'","articleBody":"## Description of the problem, including code/CLI snippet\r\n\r\nI'm not sure if this is a documentation or API bug.\r\n\r\n```\r\ntype(merge_request.pipelines(order_by='created_at'))\r\n\u003cclass 'list'\u003e\r\n```\r\n\r\nDocumentation suggests it is `RESTObjectList`\r\n\r\nGetting an element in the returned list by index (`pipelines()[0]`) works but produces the following warning.\r\n```\r\nClass 'RESTObjectList' does not define '__getitem__', so the '[]' operator cannot be used on its instances\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.com`\r\n","author":{"url":"https://github.com/beanaroo","@type":"Person","name":"beanaroo"},"datePublished":"2021-02-21T07:33:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1312/python-gitlab/issues/1312"}
| 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:90cba3a2-f8cf-7dc5-fa52-ad26e0ada776 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC74:1C7DFD:28DF7AF:34B0108:6974984A |
| html-safe-nonce | 7df21e37e8f83ba9fb61825ac850e7d68dce4d9a888262328b097edaf1e4e9f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzc0OjFDN0RGRDoyOERGN0FGOjM0QjAxMDg6Njk3NDk4NEEiLCJ2aXNpdG9yX2lkIjoiNTY1ODk4ODAyMTIyNzQ5MzQ1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | adbf0dbe37c60250dda4ac44d465bdd259f7b905ae19d867971be10744715235 |
| hovercard-subject-tag | issue:812794973 |
| 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/1312/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f92bfd5d0008f535707d0f2b2626590a33ae4fd802df92681ab6740f4f053fc4/python-gitlab/python-gitlab/issues/1312 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f92bfd5d0008f535707d0f2b2626590a33ae4fd802df92681ab6740f4f053fc4/python-gitlab/python-gitlab/issues/1312 |
| og:image:alt | Description of the problem, including code/CLI snippet I'm not sure if this is a documentation or API bug. type(merge_request.pipelines(order_by='created_at')) |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | beanaroo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width