Commit 804c3bcb authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch '332661-use-issues-count-field-over-count' into 'master'

Use issuesCount field when fetching board issues count [RUN AS-IF-FOSS]

See merge request gitlab-org/gitlab!63404
parents f1b36261 0c09fc7e
...@@ -40,7 +40,7 @@ export function formatListIssues(listIssues) { ...@@ -40,7 +40,7 @@ export function formatListIssues(listIssues) {
let listItemsCount; let listItemsCount;
const listData = listIssues.nodes.reduce((map, list) => { const listData = listIssues.nodes.reduce((map, list) => {
listItemsCount = list.issues.count; listItemsCount = list.issuesCount;
let sortedIssues = list.issues.edges.map((issueNode) => ({ let sortedIssues = list.issues.edges.map((issueNode) => ({
...issueNode.node, ...issueNode.node,
})); }));
......
...@@ -12,11 +12,11 @@ query ListIssues( ...@@ -12,11 +12,11 @@ query ListIssues(
) { ) {
group(fullPath: $fullPath) @include(if: $isGroup) { group(fullPath: $fullPath) @include(if: $isGroup) {
board(id: $boardId) { board(id: $boardId) {
lists(id: $id) { lists(id: $id, issueFilters: $filters) {
nodes { nodes {
id id
issuesCount
issues(first: $first, filters: $filters, after: $after) { issues(first: $first, filters: $filters, after: $after) {
count
edges { edges {
node { node {
...IssueNode ...IssueNode
...@@ -33,11 +33,11 @@ query ListIssues( ...@@ -33,11 +33,11 @@ query ListIssues(
} }
project(fullPath: $fullPath) @include(if: $isProject) { project(fullPath: $fullPath) @include(if: $isProject) {
board(id: $boardId) { board(id: $boardId) {
lists(id: $id) { lists(id: $id, issueFilters: $filters) {
nodes { nodes {
id id
issuesCount
issues(first: $first, filters: $filters, after: $after) { issues(first: $first, filters: $filters, after: $after) {
count
edges { edges {
node { node {
...IssueNode ...IssueNode
......
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