foreman_rh_cloud 6.0.44 → 7.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/foreman_inventory_upload_host_helper.rb +1 -3
- data/app/models/concerns/rh_cloud_host.rb +10 -0
- data/config/package-lock.json.plugin +9880 -6929
- data/db/migrate/20221102110254_fix_rh_cloud_settings_category_to_dsl.rb +1 -1
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +12 -0
- data/lib/foreman_inventory_upload/generators/metadata.rb +4 -0
- data/lib/foreman_rh_cloud/engine.rb +8 -1
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/tasks/hybrid_cloud.rake +63 -0
- data/locale/foreman_rh_cloud.pot +1091 -8
- data/locale/gemspec.rb +1 -1
- data/package.json +6 -6
- data/test/test_plugin_helper.rb +11 -0
- data/test/unit/archived_report_generator_test.rb +2 -0
- data/test/unit/metadata_generator_test.rb +25 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +1 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +0 -5
- data/webpack/ForemanRhCloudFills.js +1 -1
- metadata +4 -18
- data/app/overrides/hosts_list.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1383b077fcadc72b19517f0ed1173aec5ac958a207e8b04a6119e91b75b062c0
|
4
|
+
data.tar.gz: 98783f069cfd8cbc89e2a295b0433437ec3d88b168ccef7c2b7c42b851d07929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711977116c1b74dfd5b528bf7298df5f9c5da3dda6f63a788ed4ea8f82e76b62139d5d4417b4af19ca3e564e0764d99cc38ca30a496b1f78fd170829fef11017
|
7
|
+
data.tar.gz: 78f1a3584c4eea9f64d49cf4be866cd41074e04264c860d22332205124c312c62372cde26435e1e4bfe7303a7574754cbab3f49e3f1c3a31a6abe65c4363890c
|
@@ -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
|
-
|
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
|