Epics Roadmap: Add hasChildrenWithinTimeframe field
What does this MR do and why?
This MR adds a new field (has_children_within_timeframe) to EpicType.
When fetching epics that are filtered by timeframe, we sometimes want to know whether each resulting epics has children that also lie within the specified timeframe. This will be used by the frontend to determine whether to show an expander for the children or not.
Related to: #411822 (closed)
How to set up and validate locally
- Create an epic whose start and end dates are within the current quarter
- To the main epic, add child epics whose start/end dates are outside the current quarter
- Run the graphql query below: (
$START_DATEand$END_DATEshould be the start and end dates of the quarter, in this example)
query groupEpics {
group(fullPath: "milestones") {
id
name
epics(timeframe: {start: $START_DATE, end: $END_DATE}) {
nodes {
id
title
hasChildren
hasChildrenWithinTimeframe
startDate
dueDate
}
}
}
}
- When
$START_DATEand$END_DATEcover an epic and its children, then that epic'shasChildrenWithinTimeframeshould be true. - When the dates only cover the epic and not its children, then
hasChildrenWithinTimeframeshould be false.
Edited by Joseph Wambua