Skip to content

Use arrays in Ci::Pipeline#latest_builds_with_artifacts

Yorick Peterse requested to merge reduce-queries-for-artifacts-button into master

What does this MR do?

This changes Ci::Pipeline#latest_builds_with_artifacts so it returns an Array instead of a relation, reducing the number of queries necessary to render the button for downloading CI artifacts. See the commit message for more details.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/36878

Merge request reports

Loading