Skip to content

Fetch group labels via GraphQL for the edit modal #34

Description

@jnwrnr

fetchGroupLabelList currently calls REST GET /groups/:id/labels?include_ancestor_groups=true to populate the edit modal's label picker for epics. Switching to GraphQL (group.labels { nodes { title color } }) keeps everything under one API and removes the last REST-for-read call on the epic path.

Scope

  • Replace fetchGroupLabelList with a GraphQL query against group.labels.
  • Keep the same return shape (CardLabel[]) so call sites don't change.
  • Tests updated to mock GraphQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions