Skip to content

Optimize group labels page

username-removed-283999 requested to merge optimize/labels-finder into master

What does this MR do?

Reduce the overhead to calculate number of open/closed issues and merge requests within the group or project. It's also removes a call to includes(:priorities) on Projects::LabelsController#find_labels that performs an unnecessary extra call.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Some users are experiencing slowness when viewing group labels page. Also on this page the number of open issues and merge request per label are incorrect.

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23684

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/1148

Merge request reports

Loading