Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GroupEpic uses "iid" as ID attribute but should use "id"? #3261

Open
@sscherfke

Description

@sscherfke

Description of the problem, including code/CLI snippet

objects.epics.GroupEpic usesiid (group local ID) as ID attribute /encoded_id instead of the globalid 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.

Expected Behavior

  • I retrieve an epic:epic = top_level_group.epics.list(...)[0]
  • I manipulate the epic labels:epic.labels.extend([...]) <-- epic from a sub group
  • I save the epic:epic.save()
  • The new labels are saved forexactly this epic, identified byepic.id.

Actual Behavior

  • The labels are saved for the first epic withepic.iid, which is not necessarily the one that I intended to update.

Discussion

The classGroupEpic explicitly setsiid as_id_attr. When updating the epic, the request is sent toepic.manager.path/{epic_iid}, but sinceepic.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.

So maybe it's not just usingid instead ofiid 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.

Specifications

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp