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) {
let listItemsCount;
const listData = listIssues.nodes.reduce((map, list) => {
listItemsCount = list.issues.count;
listItemsCount = list.issuesCount;
let sortedIssues = list.issues.edges.map((issueNode) => ({
...issueNode.node,
}));
......
......@@ -12,11 +12,11 @@ query ListIssues(
) {
group(fullPath: $fullPath) @include(if: $isGroup) {
board(id: $boardId) {
lists(id: $id) {
lists(id: $id, issueFilters: $filters) {
nodes {
id
issuesCount
issues(first: $first, filters: $filters, after: $after) {
count
edges {
node {
...IssueNode
......@@ -33,11 +33,11 @@ query ListIssues(
}
project(fullPath: $fullPath) @include(if: $isProject) {
board(id: $boardId) {
lists(id: $id) {
lists(id: $id, issueFilters: $filters) {
nodes {
id
issuesCount
issues(first: $first, filters: $filters, after: $after) {
count
edges {
node {
...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