Title: get_id() retruns name of label · Issue #2839 · python-gitlab/python-gitlab · GitHub
Open Graph Title: get_id() retruns name of label · Issue #2839 · python-gitlab/python-gitlab
X Title: get_id() retruns name of label · Issue #2839 · python-gitlab/python-gitlab
Description: Description of the problem, including code/CLI snippet get_id() of a GroupLabel returns the name of the label and not the id. In the case of a label inherited from a parent group, it is not possible to distinguish between two labels if t...
Open Graph Description: Description of the problem, including code/CLI snippet get_id() of a GroupLabel returns the name of the label and not the id. In the case of a label inherited from a parent group, it is not possibl...
X Description: Description of the problem, including code/CLI snippet get_id() of a GroupLabel returns the name of the label and not the id. In the case of a label inherited from a parent group, it is not possibl...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/2839
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_id() retruns name of label","articleBody":"## Description of the problem, including code/CLI snippet\r\n\r\nget_id() of a GroupLabel returns the name of the label and not the id.\r\nIn the case of a label inherited from a parent group, it is not possible to distinguish between two labels if they have the same name.\r\n\r\n## Expected Behavior\r\n\r\nI expect to get the value of `label.id`\r\n\r\n## Actual Behavior\r\n\r\nI receive the value of `label.name`\r\n\r\n## Specifications\r\n\r\n - python-gitlab version: 3.8.1\r\n - API version you are using (v3/v4):\r\n - Gitlab server version (or gitlab.com): 16.9.2\r\n","author":{"url":"https://github.com/cweber-dbs","@type":"Person","name":"cweber-dbs"},"datePublished":"2024-04-16T06:26:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2839/python-gitlab/issues/2839"}
| 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:80641a70-ea2b-1919-613e-a18f8f523131 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E7A6:18F725:64E04B4:899FB1B:69735AB6 |
| html-safe-nonce | 5804d121631491397f877280575cf9c71fad7bf85c39c56fac64178a5f6f2cfc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0E2OjE4RjcyNTo2NEUwNEI0Ojg5OUZCMUI6Njk3MzVBQjYiLCJ2aXNpdG9yX2lkIjoiNzAwOTU1MjMwMjkwOTY0MzQ0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b5943993225da30a55e750e16c0e7efbd9b4eb25fdd7ed5cdf1990aa1c6c1e5 |
| hovercard-subject-tag | issue:2245198568 |
| 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/2839/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d5e183c8847b60dd692ff83d1f5cb2c0fc6de52b2ebbc14cf5b438fc718958a/python-gitlab/python-gitlab/issues/2839 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d5e183c8847b60dd692ff83d1f5cb2c0fc6de52b2ebbc14cf5b438fc718958a/python-gitlab/python-gitlab/issues/2839 |
| og:image:alt | Description of the problem, including code/CLI snippet get_id() of a GroupLabel returns the name of the label and not the id. In the case of a label inherited from a parent group, it is not possibl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cweber-dbs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4cf879a11b0a28a85543899a36aaee9ec9ca2fb7bedad86c0da5731193c95f01 |
| 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 | 63c75712c8aa15b01c097cbf3f10ca694d449599 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width