René's URL Explorer Experiment


Title: GroupEpic uses "iid" as ID attribute but should use "id"? · Issue #3261 · python-gitlab/python-gitlab · GitHub

Open Graph Title: GroupEpic uses "iid" as ID attribute but should use "id"? · Issue #3261 · python-gitlab/python-gitlab

X Title: GroupEpic uses "iid" as ID attribute but should use "id"? · Issue #3261 · python-gitlab/python-gitlab

Description: Description of the problem, including code/CLI snippet objects.epics.GroupEpic uses iid (group local ID) as ID attribute / encoded_id instead of the global id like, for example, objects.issues.ProjectIssue does. This leads to an erroneou...

Open Graph Description: Description of the problem, including code/CLI snippet objects.epics.GroupEpic uses iid (group local ID) as ID attribute / encoded_id instead of the global id like, for example, objects.issues.Proj...

X Description: Description of the problem, including code/CLI snippet objects.epics.GroupEpic uses iid (group local ID) as ID attribute / encoded_id instead of the global id like, for example, objects.issues.Proj...

Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/3261

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"GroupEpic uses \"iid\" as ID attribute but should use \"id\"?","articleBody":"## Description of the problem, including code/CLI snippet\n\n`objects.epics.GroupEpic` uses `iid` (group local ID) as ID attribute / `encoded_id` instead of the global `id` like, for example, `objects.issues.ProjectIssue` does.  This leads to an erroneous behavior when updating an epic, i.e., the wrong epic is being updated.\n\n## Expected Behavior\n\n- I retrieve an epic: `epic = top_level_group.epics.list(...)[0]`\n- I manipulate the epic labels: `epic.labels.extend([...])` \u003c-- epic from a sub group\n- I save the epic: `epic.save()`\n- The new labels are saved for _exactly_ this epic, identified by `epic.id`.\n\n## Actual Behavior\n\n- The labels are saved for the first epic with `epic.iid`, which is not necessarily the one that I intended to update.\n\n## Discussion\n\nThe class `GroupEpic` explicitly sets `iid` as `_id_attr`.  When updating the epic, the request is sent to `epic.manager.path/{epic_iid}`, but since `epic.manager.path` is the path to the top level group, the epic with id 3 in this top level group is updated instead of the one from the nested group.\n\nSo maybe it's not just using `id` instead of `iid` but fixing the manager (path) so that is uses the path of the actual group that the epic belongs to and not the path of the group that was used to retrieve all epics.\n\n## Specifications\n\n  - python-gitlab version: 6.20 (but has been around since months or years and does still exist: https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/v4/objects/epics.py#L26)\n  - Gitlab server version (or gitlab.com): recent / not important\n","author":{"url":"https://github.com/sscherfke","@type":"Person","name":"sscherfke"},"datePublished":"2025-09-09T13:33:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/3261/python-gitlab/issues/3261"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5aa896d7-ce5f-6e35-1ca5-7d290d01c459
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE540:3FB21B:1119957:17FE1B7:69723243
html-safe-nonce980d5769668fe0f06f39105f3ef5adb1e382d44e8ed4ffa685409d87b1109def
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTQwOjNGQjIxQjoxMTE5OTU3OjE3RkUxQjc6Njk3MjMyNDMiLCJ2aXNpdG9yX2lkIjoiNzY2OTY3MTE0MTE2OTA1MDE3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8283a2adc1ef890f815b66aa8d585b3d36d7d78604a6013d2f0a8673b5ff5463
hovercard-subject-tagissue:3398522677
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/3261/issue_layout
twitter:imagehttps://opengraph.githubassets.com/024d9855c4a6bb95ea8f4122b8cb6e2739b5642ef699a3f9030d541c31d87197/python-gitlab/python-gitlab/issues/3261
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/024d9855c4a6bb95ea8f4122b8cb6e2739b5642ef699a3f9030d541c31d87197/python-gitlab/python-gitlab/issues/3261
og:image:altDescription of the problem, including code/CLI snippet objects.epics.GroupEpic uses iid (group local ID) as ID attribute / encoded_id instead of the global id like, for example, objects.issues.Proj...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesscherfke
hostnamegithub.com
expected-hostnamegithub.com
None2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11
turbo-cache-controlno-preview
go-importgithub.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git
octolytics-dimension-user_id28886265
octolytics-dimension-user_loginpython-gitlab
octolytics-dimension-repository_id8077625
octolytics-dimension-repository_nwopython-gitlab/python-gitlab
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id8077625
octolytics-dimension-repository_network_root_nwopython-gitlab/python-gitlab
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea12ab519e1537fa080535ea933f81d4fcef34da0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues/3261#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-gitlab%2Fpython-gitlab%2Fissues%2F3261
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-gitlab%2Fpython-gitlab%2Fissues%2F3261
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-gitlab%2Fpython-gitlab
Reloadhttps://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues/3261
Reloadhttps://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues/3261
Reloadhttps://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues/3261
python-gitlab https://patch-diff.githubusercontent.com/python-gitlab
python-gitlabhttps://patch-diff.githubusercontent.com/python-gitlab/python-gitlab
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab
Fork 675 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab
Star 2.4k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab
Code https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab
Issues 26 https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues
Pull requests 10 https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/pulls
Discussions https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/discussions
Actions https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/actions
Projects 0 https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues/3261
Insights https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/pulse
Code https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab
Issues https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues
Pull requests https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/pulls
Discussions https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/discussions
Actions https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/actions
Projects https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/projects
Security https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/security
Insights https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-gitlab/python-gitlab/issues/3261
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/python-gitlab/python-gitlab/issues/3261
#3279https://github.com/python-gitlab/python-gitlab/pull/3279
GroupEpic uses "iid" as ID attribute but should use "id"?https://patch-diff.githubusercontent.com/python-gitlab/python-gitlab/issues/3261#top
#3279https://github.com/python-gitlab/python-gitlab/pull/3279
https://patch-diff.githubusercontent.com/JohnVillalovos
https://github.com/sscherfke
https://github.com/sscherfke
sscherfkehttps://github.com/sscherfke
on Sep 9, 2025https://github.com/python-gitlab/python-gitlab/issues/3261#issue-3398522677
https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/v4/objects/epics.py#L26https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/v4/objects/epics.py#L26
JohnVillalovoshttps://patch-diff.githubusercontent.com/JohnVillalovos
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.