Skip to content
Snippets Groups Projects

Admin runner filtering by version

Merged Markus Ferrell requested to merge markus.ferrell/gitlab:admin_runner_sorting into master
All threads resolved!
2 files
+ 12
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -61,7 +61,7 @@ class RunnerManager < Ci::ApplicationRecord
end
scope :order_id_desc, -> { order(id: :desc) }
scope :with_version, ->(value) { where('ci_runner_machines.version ILIKE ?', "#{value}%") }
scope :with_version, ->(value) { where(arel_table[:version].matches("#{value}%")) }
scope :with_upgrade_status, ->(upgrade_status) do
joins(:runner_version).where(runner_version: { status: upgrade_status })
Loading