Include subepics without start/end dates in roadmap children
What does this MR do and why?
Include subepics without start/end dates in roadmap children
hasChildrenWithinTimeframe should return true if start, end dates are not set and it has children.
Issue: #411822 (closed) More context in this thread - #411822 (comment 2149512046)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Create
EPIC -> CHILD EPIC(WITHOUT START/END DATES) -> SUB EPIC within time frame
and start/end dates are not set for CHILD EPIC but are set for its child(SUB_EPIC) - Query for EPIC and
hasChilrenWithinTimeframe
should return true.
query groupEpics {
group(fullPath: "milestones") {
id
name
epics(timeframe: {start: $START_DATE, end: $END_DATE}) {
nodes {
id
title
hasChildren
hasChildrenWithinTimeframe
startDate
dueDate
}
}
}
}
- Create a scenario as
EPIC -> CHILD OUTSIDE timeframe -> SUB EPIC within time frame
. - The above query should return both EPIC and SUB EPIC as root nodes with
hasChildrenWithinTImeframe
as false