Commit 222ae11b authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '215090-roadmap-showing-closed-epics-when-display-open-epics-is-selected' into 'master'

Roadmap - Filter children epics by state

Closes #215090

See merge request gitlab-org/gitlab!31814
parents d9145389 849fe7c0
...@@ -64,12 +64,12 @@ const fetchGroupEpics = ( ...@@ -64,12 +64,12 @@ const fetchGroupEpics = (
export const fetchChildrenEpics = (state, { parentItem }) => { export const fetchChildrenEpics = (state, { parentItem }) => {
const { iid } = parentItem; const { iid } = parentItem;
const { fullPath, filterParams } = state; const { fullPath, filterParams, epicsState } = state;
return epicUtils.gqClient return epicUtils.gqClient
.query({ .query({
query: epicChildEpics, query: epicChildEpics,
variables: { iid, fullPath, ...filterParams }, variables: { iid, fullPath, state: epicsState, ...filterParams },
}) })
.then(({ data }) => { .then(({ data }) => {
const edges = data?.group?.epic?.children?.edges || []; const edges = data?.group?.epic?.children?.edges || [];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment