Skip to content

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

roadmap-top-level-toggle

How to set up and validate locally

  1. Create two top-level epics
  2. Create a child epic inside one of those epics
  3. Assign the same label to the childless epic, and the child epic
  4. Ensure all the epics in question have start/end dates that are within the roadmap timeframe you're about to preview
  5. Navigate to the epics->roadmap view, see all three epics displayed (child will be collapsed but present)
  6. Enter the label as a search query, see only the childless epic
  7. Open the "settings" panel, see the "Top level epics only" toggle, toggle it
  8. See the child epic with matching label appear in results in the roadmap

MR acceptance checklist

frontend

Related to #383627 (closed) Related to #381738 (closed)

Edited by Raimund Hook

Merge request reports

Loading