foreman_rh_cloud 6.0.45 → 7.0.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb8068bce51d58d6cdf66eb5448db68133fbae198cde25a09be6f07733947653
4
- data.tar.gz: faf0658dbfbece4a47df461daa7bb2c861c6513bb1cf09a34580fd2cd9aedb53
3
+ metadata.gz: 8ccb21d6d17487bea0ab663a295419706f007207d62c41fc7e0fce30071fdbd0
4
+ data.tar.gz: 7f45fd6cb0dfaca6ecd7d0a8a59488aebc91ef9a773056774c062da4623443d7
5
5
  SHA512:
6
- metadata.gz: e601daeac30fd710eea4b35eb0a9aa4c1ca4d62fa95307b0df29bf4746ecd723acc432823b164fb8b50b0ba73aeeede2cdfd4f36f7215fc437ceb9fcbfa05aaf
7
- data.tar.gz: a4bae0cbbf09b01ce22a0f89c0a6bd4133b95e5611ead0aec6b10e1c8bd3527e9d175ca076aa5759d7154426d46df650f34a37f0886bfda204f329f7c5a8384c
6
+ metadata.gz: 9f4a974b345a78cfb4071f6648effb5715e7dcd44fe8e0a0dd2a634a03db788a8b7f819bd785974ad378c3b1a8cb01ee1c58a428753335d732da7b2e3192c9a6
7
+ data.tar.gz: e3319409f79b9de5eb04fe8bfd07b0efa99d4065bf2a41ef78cfb7db8d210bdbdb0a030c1b3feb406d9ba41627343c5afe2a8f301f22467bfb7eb15fba3c454d
@@ -6,8 +6,6 @@ module ForemanInventoryUploadHostHelper
6
6
  def hits_counts_cell(host)
7
7
  host_hits = hits_counts[host.id]
8
8
  host_link = Setting['host_details_ui'] ? "#{host_details_page_path(host)}#/Insights" : "#{host_path(host)}#insights"
9
- tag.td class: ['hidden-xs', 'ellipsis', 'text-center'] do
10
- link_to(host_hits, host_link) if host_hits
11
- end
9
+ link_to(host_hits, host_link) if host_hits
12
10
  end
13
11
  end
@@ -11,5 +11,15 @@ module RhCloudHost
11
11
 
12
12
  has_many :insights_hits, through: :insights, source: :hits
13
13
  scoped_search :relation => :insights, :on => :hits_count, :only_explicit => true, :rename => :insights_recommendations_count
14
+
15
+ has_one :insights_client_report_status_object, :class_name => '::InsightsClientReportStatus', :foreign_key => 'host_id'
16
+ scoped_search :relation => :insights_client_report_status_object, :on => :status, :rename => :insights_client_report_status,
17
+ :complete_value => { :reporting => ::InsightsClientReportStatus::REPORTING,
18
+ :no_report => ::InsightsClientReportStatus::NO_REPORT }
19
+
20
+ has_one :inventory_sync_status_object, :class_name => '::InventorySync::InventoryStatus', :foreign_key => 'host_id'
21
+ scoped_search :relation => :inventory_sync_status_object, :on => :status, :rename => :insights_inventory_sync_status,
22
+ :complete_value => { :disconnect => ::InventorySync::InventoryStatus::DISCONNECT,
23
+ :sync => ::InventorySync::InventoryStatus::SYNC }
14
24
  end
15
25
  end