summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2019-05-01 17:31:04 -0400
committerMatija Čupić <matteeyah@gmail.com>2019-05-28 17:04:57 +0200
commit51183ad3bdad507325c14c916d70fe3ab9857bfc (patch)
tree294e5bb97dbe40a3b3fe9ed6c8ca3b015bfa496d /app
parentdf7bebd67c6307d16b2ac495e7cd09f55b39ba16 (diff)
downloadgitlab-ce-51183ad3bdad507325c14c916d70fe3ab9857bfc.tar.gz
Add all reports scope to Ci::JobArtifact
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/job_artifact.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/job_artifact.rb b/app/models/ci/job_artifact.rb
index 3beb76ffc2b..16fa77e0048 100644
--- a/app/models/ci/job_artifact.rb
+++ b/app/models/ci/job_artifact.rb
@@ -66,6 +66,10 @@ module Ci
where(file_type: types)
end
+ scope :with_all_reports, -> do
+ where(file_type: self.file_types.values.drop(3))
+ end
+
scope :test_reports, -> do
with_file_types(TEST_REPORT_FILE_TYPES)
end