Commit 3477d0fe authored by Thong Kuah's avatar Thong Kuah

Merge branch '337432-remove-unused-with_archived_trace-scope' into 'master'

Remove unused with_archived_trace scope

See merge request gitlab-org/gitlab!67392
parents d89256f3 7b2c4538
...@@ -118,10 +118,6 @@ module Ci ...@@ -118,10 +118,6 @@ module Ci
where('EXISTS (?)', ::Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').merge(query)) where('EXISTS (?)', ::Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').merge(query))
end end
scope :with_archived_trace, -> do
with_existing_job_artifacts(Ci::JobArtifact.trace)
end
scope :without_archived_trace, -> do scope :without_archived_trace, -> do
where('NOT EXISTS (?)', Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').trace) where('NOT EXISTS (?)', Ci::JobArtifact.select(1).where('ci_builds.id = ci_job_artifacts.job_id').trace)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment