Fetch child epics with colours when FF is enabled
What does this MR do and why?
When fetching Child Epics on the roadmap page, with the epic_color_highlight
feature flag enabled, we need to fetch all of the child epics and also request the color
and textColor
attributes as part of the GraphQL query.
The top level epics make use of the groupEpics
query, but child epics use a different query called epicChildEpics
. In the previous MR (Use Epic colours for display on the roadmap (!89709 - merged)), this second query was missed and thus didn't get updated.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
- Enable
epic_color_highlight
feature flag (Feature.enable(:epic_color_highlight, Group.find_by_full_path('flightjs'))
) - Update an epic in the
flightjs
group so that is has a parent epic and a colour other thanBlue
- Visit the roadmap page (
http://gdk.test:3000/groups/flightjs/-/roadmap
) - Expand the parent epic and notice that the colour of the child epic is always
Blue
- Apply this MR and reload the page
- Expanding the child epic will now fetch the correct epic colour
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #7641 (closed)