Commit de151f2a authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '276502-move-graphql-burnup-queries-to-new-format' into 'master'

Move GraphQL burnup queries to new format on FE

See merge request gitlab-org/gitlab!46946
parents 44983c3d aa02d303
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
}; };
}, },
update(data) { update(data) {
const sparseBurnupData = data?.[this.parent]?.burnupTimeSeries || []; const sparseBurnupData = data?.[this.parent]?.report.burnupTimeSeries || [];
return this.padSparseBurnupData(sparseBurnupData); return this.padSparseBurnupData(sparseBurnupData);
}, },
......
...@@ -2,6 +2,7 @@ query IterationBurnupTimesSeriesData($id: ID!, $isIteration: Boolean = false) { ...@@ -2,6 +2,7 @@ query IterationBurnupTimesSeriesData($id: ID!, $isIteration: Boolean = false) {
milestone(id: $id) @skip(if: $isIteration) { milestone(id: $id) @skip(if: $isIteration) {
title title
id id
report {
burnupTimeSeries { burnupTimeSeries {
date date
scopeCount scopeCount
...@@ -10,9 +11,11 @@ query IterationBurnupTimesSeriesData($id: ID!, $isIteration: Boolean = false) { ...@@ -10,9 +11,11 @@ query IterationBurnupTimesSeriesData($id: ID!, $isIteration: Boolean = false) {
completedWeight completedWeight
} }
} }
}
iteration(id: $id) @include(if: $isIteration) { iteration(id: $id) @include(if: $isIteration) {
title title
id id
report {
burnupTimeSeries { burnupTimeSeries {
date date
scopeCount scopeCount
...@@ -21,4 +24,5 @@ query IterationBurnupTimesSeriesData($id: ID!, $isIteration: Boolean = false) { ...@@ -21,4 +24,5 @@ query IterationBurnupTimesSeriesData($id: ID!, $isIteration: Boolean = false) {
completedWeight completedWeight
} }
} }
}
} }
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