Skip to content

Commit

Permalink
Refs #33025 - fix spacing of search definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ares committed Sep 15, 2021
1 parent d38f3a1 commit 0060a10
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions app/models/report.rb
Expand Up @@ -21,7 +21,7 @@ class Report < ApplicationRecord

def self.inherited(child)
child.instance_eval do
scoped_search :relation => :host, :on => :name, :complete_value => true, :rename => :host
scoped_search :relation => :host, :on => :name, :complete_value => true, :rename => :host
scoped_search :relation => :host_owner,
:on => :id,
:complete_value => true,
Expand All @@ -30,16 +30,16 @@ def self.inherited(child)
:validator => ->(value) { ScopedSearch::Validators::INTEGER.call(value) },
:value_translation => ->(value) { value == 'current_user' ? User.current.id : value },
:special_values => %w[current_user]
scoped_search :relation => :organization, :on => :name, :complete_value => true, :rename => :organization
scoped_search :relation => :location, :on => :name, :complete_value => true, :rename => :location
scoped_search :relation => :messages, :on => :value, :rename => :log, :only_explicit => true
scoped_search :relation => :sources, :on => :value, :rename => :resource, :only_explicit => true
scoped_search :relation => :hostgroup, :on => :name, :complete_value => true, :rename => :hostgroup
scoped_search :relation => :hostgroup, :on => :title, :complete_value => true, :rename => :hostgroup_fullname
scoped_search :relation => :hostgroup, :on => :title, :complete_value => true, :rename => :hostgroup_title
scoped_search :relation => :organization, :on => :name, :complete_value => true, :rename => :organization
scoped_search :relation => :location, :on => :name, :complete_value => true, :rename => :location
scoped_search :relation => :messages, :on => :value, :rename => :log, :only_explicit => true
scoped_search :relation => :sources, :on => :value, :rename => :resource, :only_explicit => true
scoped_search :relation => :hostgroup, :on => :name, :complete_value => true, :rename => :hostgroup
scoped_search :relation => :hostgroup, :on => :title, :complete_value => true, :rename => :hostgroup_fullname
scoped_search :relation => :hostgroup, :on => :title, :complete_value => true, :rename => :hostgroup_title

scoped_search :on => :reported_at, :complete_value => true, :default_order => :desc, :rename => :reported, :only_explicit => true, :aliases => [:last_report]
scoped_search :on => :host_id, :complete_value => false, :only_explicit => true
scoped_search :on => :host_id, :complete_value => false, :only_explicit => true
scoped_search :on => :origin
end
super
Expand Down
Expand Up @@ -241,7 +241,9 @@ ntp
chrony
-ntp
<% end -%>
<% if rhel_compatible && os_major < 9 -%>
wget
<% end -%>
@Core
<% if host_param_true?('fips_enabled') -%>
<%= snippet 'fips_packages' %>
Expand Down
2 changes: 1 addition & 1 deletion bundler.d/development.rb
Expand Up @@ -11,7 +11,7 @@
gem 'byebug'
gem 'pry'
gem 'pry-rails'
gem 'pry-byebug'
# gem 'pry-byebug'
gem 'pry-doc'
gem 'pry-stack_explorer'
gem 'pry-remote' # will not work when running via foreman
Expand Down

0 comments on commit 0060a10

Please sign in to comment.