Add setting to roadmap view to display non-top-level epics
What does this MR do and why?
Adds a toggle to epic roadmap settings which enables/disables 'topLevelHierarchyOnly' parameter in the fetch epics query, and observes this setting in query parameters.
This parameter obscures any epics which are not top level parents but otherwise match all of the user's input query. It is also not present on the epics-detail roadmap view, which makes for an inconsistent experience with no user feedback to explain the missing records.
Related issue: #383627 (closed)
Screenshots or screen recordings
How to set up and validate locally
- Create two top-level epics
- Create a child epic inside one of those epics
- Assign the same label to the childless epic, and the child epic
- Ensure all the epics in question have start/end dates that are within the roadmap timeframe you're about to preview
- Navigate to the epics->roadmap view, see all three epics displayed (child will be collapsed but present)
- Enter the label as a search query, see only the childless epic
- Open the "settings" panel, see the "Top level epics only" toggle, toggle it
- See the child epic with matching label appear in results in the roadmap
MR acceptance checklist
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383627 (closed) Related to #381738 (closed)
Edited by Raimund Hook