Commit 97529725 authored by Markus Koller's avatar Markus Koller

Merge branch '337432-unused-activerecord-scope-ith_secure_reports_from_options' into 'master'

Remove unused ActiveRecord Scope with_secure_reports_from_options

See merge request gitlab-org/gitlab!70209
parents 4b3f4cb7 8c6fbf12
......@@ -170,8 +170,6 @@ module Ci
scope :with_stale_live_trace, -> { with_live_trace.finished_before(12.hours.ago) }
scope :finished_before, -> (date) { finished.where('finished_at < ?', date) }
scope :with_secure_reports_from_options, -> (job_type) { where('options like :job_type', job_type: "%:artifacts:%:reports:%:#{job_type}:%") }
scope :with_secure_reports_from_config_options, -> (job_types) do
joins(:metadata).where("ci_builds_metadata.config_options -> 'artifacts' -> 'reports' ?| array[:job_types]", job_types: job_types)
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