Skip to content
Snippets Groups Projects
Unverified Commit 8c6fbf12 authored by Alper Akgun's avatar Alper Akgun
Browse files

Remove unused scope with_secure_reports_from_options

parent d5e2568b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -170,8 +170,6 @@ def persisted_environment=(environment)
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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment