Skip to content

Commit

Permalink
Merge pull request #14810 from lgalis/foreman_sort_by_url
Browse files Browse the repository at this point in the history
Fix sort by url for the configuration manager provider list
  • Loading branch information
bdunne authored Apr 20, 2017
2 parents 4ac1708 + 4640c27 commit 8ba23bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions app/models/manageiq/providers/configuration_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ class ManageIQ::Providers::ConfigurationManager < ManageIQ::Providers::BaseManag
has_many :configuration_scripts, :dependent => :destroy, :foreign_key => "manager_id"
has_many :configuration_script_sources, :dependent => :destroy, :foreign_key => "manager_id"

delegate :url, :to => :provider

virtual_column :total_configuration_profiles, :type => :integer
virtual_column :total_configured_systems, :type => :integer
virtual_column :url, :type => :string

def self.hostname_required?
false
Expand Down
5 changes: 3 additions & 2 deletions product/views/ManageIQ_Providers_ConfigurationManager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ db: ManageIQ::Providers::ConfigurationManager
# Columns to fetch from the main table
cols:
- name
- url
- type
- last_refresh_date
- region_description
Expand All @@ -31,7 +32,7 @@ include:
zone:
columns:
- name
provider:
endpoints:
columns:
- url

Expand All @@ -41,7 +42,7 @@ include_for_find:
# Order of columns (from all tables)
col_order:
- name
- provider.url
- url
- type
- zone.name
- last_refresh_date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ db: ManageIQ::Providers::Foreman::ConfigurationManager
# Columns to fetch from the main table
cols:
- name
- url
- type
- last_refresh_date
- region_description
Expand All @@ -32,7 +33,7 @@ include:
zone:
columns:
- name
provider:
endpoints:
columns:
- url

Expand All @@ -42,7 +43,7 @@ include_for_find:
# Order of columns (from all tables)
col_order:
- name
- provider.url
- url
- type
- zone.name
- last_refresh_date
Expand Down

0 comments on commit 8ba23bf

Please sign in to comment.