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.
fetchGroupLabelListcurrently calls RESTGET /groups/:id/labels?include_ancestor_groups=trueto 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
fetchGroupLabelListwith a GraphQL query againstgroup.labels.CardLabel[]) so call sites don't change.