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!
6 files
+ 92
30
Compare changes
  • Side-by-side
  • Inline
Files
6
  • 33797a2c
    Additional review fixes · 33797a2c
    Joe Snyder authored
    * Ensure major.minor searches end in the period
    * Use new functions for creating query which avoids turning off rubocop check
    * Remove case sensitive text in runner_manager_spec to align with value
    * Mark graphql as alpha field and fix documentating of field
    * Ensure that the minor version regex match optionally finds a trailing period
      to allow us to match both '15.5' and '15.5.'
    * Remove unneeded 'to_s' from a string object.
    * Simplify regular expression in argument check and move it to reside in the finder
@@ -115,11 +115,13 @@ def filter_by_tag_list!
end
def filter_by_version_prefix!
version_prefix = @params[:version_prefix]
return @runners unless @params[:version_prefix]
if version_prefix.present?
@runners = @runners.with_version_prefix(version_prefix)
end
sanitized_prefix = @params[:version_prefix][/^[\d+.]+/]
return @runners unless sanitized_prefix
@runners.with_version_prefix(sanitized_prefix)
end
def sort!
Loading