diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-04-16 13:06:52 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-04-16 13:06:52 +0200 |
commit | 0cfa25ff21322d45aaef91fc7a3dd7c570632a05 (patch) | |
tree | 11e9c6393808c22ecb0bfd3ccee945a39029145f /app/models/ci/build.rb | |
parent | fc1dfae41c7e6e1bbaa95bc4a1e087ffddfcc57b (diff) | |
download | gitlab-ce-0cfa25ff21322d45aaef91fc7a3dd7c570632a05.tar.gz |
Backport changes from EE
This backports the changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10452
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index b8a76e662b0..5cf9bb4979a 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -104,8 +104,8 @@ module Ci where('NOT EXISTS (?)', Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').trace) end - scope :with_test_reports, ->() do - with_existing_job_artifacts(Ci::JobArtifact.test_reports) + scope :with_reports, ->(reports_scope) do + with_existing_job_artifacts(reports_scope) .eager_load_job_artifacts end |