Commit f6514a23 authored by Simon Knox's avatar Simon Knox

Use stricter typed global IDs for iterations

parent e6c5b189
<script> <script>
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
import { __ } from '~/locale'; import { __ } from '~/locale';
import { Namespace, Unit } from '../constants'; import { Namespace, Unit } from '../constants';
import summaryStatsQuery from '../graphql/iteration_issues_summary.query.graphql'; import summaryStatsQuery from '../graphql/iteration_issues_summary.query.graphql';
...@@ -58,7 +57,7 @@ export default { ...@@ -58,7 +57,7 @@ export default {
queryVariables() { queryVariables() {
return { return {
fullPath: this.fullPath, fullPath: this.fullPath,
id: getIdFromGraphQLId(this.iterationId), id: this.iterationId,
isGroup: this.namespaceType === Namespace.Group, isGroup: this.namespaceType === Namespace.Group,
weight: this.displayValue === Unit.weight, weight: this.displayValue === Unit.weight,
}; };
......
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