foreman_rh_cloud 11.0.3 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/app/assets/javascripts/foreman_rh_cloud/locale/en/foreman_rh_cloud.js +248 -161
  4. data/app/assets/javascripts/foreman_rh_cloud/locale/fr/foreman_rh_cloud.js +393 -306
  5. data/app/assets/javascripts/foreman_rh_cloud/locale/ja/foreman_rh_cloud.js +393 -306
  6. data/app/assets/javascripts/foreman_rh_cloud/locale/ka/foreman_rh_cloud.js +393 -306
  7. data/app/assets/javascripts/foreman_rh_cloud/locale/ko/foreman_rh_cloud.js +589 -0
  8. data/app/assets/javascripts/foreman_rh_cloud/locale/zh_CN/foreman_rh_cloud.js +393 -306
  9. data/app/controllers/api/v2/advisor_engine/advisor_engine_controller.rb +98 -0
  10. data/app/controllers/api/v2/rh_cloud/advisor_engine_config_controller.rb +16 -0
  11. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +9 -1
  12. data/app/models/concerns/rh_cloud_host.rb +5 -0
  13. data/app/services/foreman_rh_cloud/cloud_connector.rb +1 -1
  14. data/app/services/foreman_rh_cloud/cloud_request.rb +1 -1
  15. data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +4 -2
  16. data/app/services/foreman_rh_cloud/hits_uploader.rb +50 -0
  17. data/app/services/foreman_rh_cloud/rules_ingester.rb +61 -0
  18. data/app/services/foreman_rh_cloud/template_renderer_helper.rb +1 -1
  19. data/app/views/api/v2/advisor_engine/host_details.json.rabl +9 -0
  20. data/app/views/api/v2/hosts/insights/base.rabl +5 -0
  21. data/app/views/api/v2/hosts/insights/insights.rabl +3 -0
  22. data/config/routes.rb +15 -4
  23. data/db/migrate/20241217190624_add_unique_index_to_rule_id_and_host_id_in_insights_hits.rb +5 -0
  24. data/db/migrate/20241220184900_change_sync_insights_recommendations_to_true.rb +5 -0
  25. data/db/seeds.d/189_add_host_inventory_param.rb +7 -0
  26. data/lib/foreman_inventory_upload/async/generate_all_reports_job.rb +21 -13
  27. data/lib/foreman_inventory_upload/async/upload_report_job.rb +2 -2
  28. data/lib/foreman_inventory_upload/generators/queries.rb +1 -1
  29. data/lib/foreman_inventory_upload/generators/slice.rb +1 -1
  30. data/lib/foreman_rh_cloud/engine.rb +24 -5
  31. data/lib/foreman_rh_cloud/version.rb +1 -1
  32. data/lib/foreman_rh_cloud.rb +21 -31
  33. data/lib/insights_cloud/async/insights_scheduled_sync.rb +10 -2
  34. data/lib/insights_cloud.rb +4 -0
  35. data/lib/inventory_sync/async/inventory_full_sync.rb +0 -10
  36. data/lib/inventory_sync/async/inventory_scheduled_sync.rb +15 -7
  37. data/lib/tasks/insights.rake +10 -7
  38. data/lib/tasks/rh_cloud_inventory.rake +8 -3
  39. data/locale/Makefile +12 -2
  40. data/locale/en/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  41. data/locale/en/foreman_rh_cloud.po +111 -22
  42. data/locale/foreman_rh_cloud.pot +217 -96
  43. data/locale/fr/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  44. data/locale/fr/foreman_rh_cloud.po +106 -19
  45. data/locale/ja/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  46. data/locale/ja/foreman_rh_cloud.po +106 -19
  47. data/locale/ka/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  48. data/locale/ka/foreman_rh_cloud.po +106 -19
  49. data/locale/ko/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  50. data/locale/ko/foreman_rh_cloud.po +591 -0
  51. data/locale/zh_CN/LC_MESSAGES/foreman_rh_cloud.mo +0 -0
  52. data/locale/zh_CN/foreman_rh_cloud.po +106 -19
  53. data/package.json +1 -1
  54. data/test/controllers/insights_cloud/api/advisor_engine_controller_test.rb +48 -0
  55. data/test/controllers/insights_sync/settings_controller_test.rb +3 -0
  56. data/test/factories/insights_factories.rb +1 -1
  57. data/test/jobs/inventory_scheduled_sync_test.rb +10 -0
  58. data/test/unit/rh_cloud_http_proxy_test.rb +1 -26
  59. data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +24 -0
  60. data/test/unit/services/foreman_rh_cloud/hits_uploader_test.rb +131 -0
  61. data/test/unit/services/foreman_rh_cloud/rules_ingester_test.rb +60 -0
  62. data/test/unit/slice_generator_test.rb +24 -2
  63. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +1 -1
  64. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/CloudConnectorButton.js +2 -2
  65. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/__snapshots__/CloudConnectorButton.test.js.snap +2 -2
  66. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +3 -1
  67. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +1 -1
  68. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +1 -1
  69. data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js +1 -1
  70. data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +1 -1
  71. data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +1 -1
  72. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +26 -22
  73. data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +2 -1
  74. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +10 -1
  75. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableConstants.js +8 -1
  76. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableHelpers.js +3 -1
  77. data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js +5 -1
  78. data/webpack/InsightsCloudSync/Components/ToolbarDropdown.js +5 -0
  79. data/webpack/InsightsCloudSync/InsightsCloudSync.js +1 -2
  80. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +1 -1
  81. data/webpack/InsightsHostDetailsTab/NewHostDetailsTab.js +3 -1
  82. data/webpack/__mocks__/foremanReact/common/hooks/API/APIHooks.js +3 -0
  83. data/webpack/common/Hooks/ConfigHooks.js +19 -0
  84. metadata +23 -8
  85. data/webpack/InsightsCloudSync/Components/InsightsHeader/InsightsHeader.scss +0 -8
  86. data/webpack/InsightsCloudSync/Components/InsightsHeader/index.js +0 -16
  87. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js +0 -18
  88. data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap +0 -15
  89. data/webpack/InsightsCloudSync/Components/__tests__/InsightsHeader.test.js +0 -10
  90. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/InsightsHeader.test.js.snap +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9feba25e71b2e6db50de3b2f32665a4889dce130fa44dcc7ef461116ba2abf62
4
- data.tar.gz: ec6ce86e970247fab7b565831b414b2a15cb3e2e7ac2f678ccbbd2a43b6692d9
3
+ metadata.gz: 9e27e00dc3036a47104a0137c23104e99958db47824086bab6dceff85df80b6f
4
+ data.tar.gz: 9ec02ce19e47e82f38989bf7498e5dd98333d29dbd013ed98891a3336466bae9
5
5
  SHA512:
6
- metadata.gz: d98ca68b9fde700bbc66dd6bdfad34bbd50d8d9b6558e47f9f2c13a538330b53bea3b319e4e9861c41884f9c6397b21c882de7a255bffab45c3a157196fe60e4
7
- data.tar.gz: bbafd13720bb8e60ae2e9c2af9d8888cc231fcba509f046f76d5b3c560cb78642c7f8a12fbe6d9feb489fb6a11d955739568f9effb9447201e8411980f7a6989
6
+ metadata.gz: 9a1005d2d5645bbe8d91453e3062dccfd39752c8c36854fc18c9889d82880ac006825174b15c553532581dc3901ceb7a832ea6a89f419767f0c393b0f31996cf
7
+ data.tar.gz: 314812ba2b9acbb4d015047f41a781d537b372fc7dec2df6dc181f2e21da6820edc844322416346bf6d711965587dcb2188dd031b9380265bad3136e229f0047
data/README.md CHANGED
@@ -15,7 +15,7 @@ for how to install Foreman plugins
15
15
 
16
16
  #### Inventory upload
17
17
 
18
- In UI: Configure -> Inventory Upload -> Restart
18
+ In UI: Configure -> Inventory Upload -> Generate and upload report
19
19
 
20
20
  From command-line:
21
21
 
@@ -46,7 +46,7 @@ From command-line:
46
46
 
47
47
  #### Synchronize inventory status
48
48
 
49
- In UI: Configure -> Inventory Upload -> Sync inventory status
49
+ In UI: Configure -> Inventory Upload -> Sync all inventory status
50
50
 
51
51
  From command-line:
52
52