diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-05-01 17:31:04 -0400 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-05-28 17:04:57 +0200 |
commit | 51183ad3bdad507325c14c916d70fe3ab9857bfc (patch) | |
tree | 294e5bb97dbe40a3b3fe9ed6c8ca3b015bfa496d /app/models/ci | |
parent | df7bebd67c6307d16b2ac495e7cd09f55b39ba16 (diff) | |
download | gitlab-ce-51183ad3bdad507325c14c916d70fe3ab9857bfc.tar.gz |
Add all reports scope to Ci::JobArtifact
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/job_artifact.rb | 4 |
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 |