Skip to content

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

euko requested to merge 332661-use-issues-count-field-over-count into master

What does this MR do?

(the change affects issue boards behind the feature flag :graphql_board_lists without any visual change)

  • Use issuesCount on BoardList for performance

More context: #332661 (comment 592786458)

count field serves for getting total count of records (which would be returned w/o pagination). This field is implemented by this generic type - https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/graphql/types/countable_connection_type.rb.

The above change requires the following change:

  • Use issueFilters argument for specifying the filters for issues on BoardList.

Screenshots (strongly suggested)

No user facing changes.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #332661 (closed)

Edited by euko

Merge request reports

Loading