foreman_rh_cloud 5.0.34 → 5.0.37

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/rh_cloud/cloud_request_controller.rb +1 -1
  3. data/app/controllers/foreman_inventory_upload/uploads_settings_controller.rb +0 -1
  4. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +7 -1
  5. data/app/controllers/insights_cloud/hits_controller.rb +0 -1
  6. data/app/controllers/insights_cloud/settings_controller.rb +0 -8
  7. data/app/controllers/insights_cloud/tasks_controller.rb +1 -1
  8. data/app/models/insights_facet.rb +1 -0
  9. data/app/models/insights_hit.rb +1 -0
  10. data/app/models/insights_rule.rb +2 -0
  11. data/app/models/setting/rh_cloud.rb +1 -2
  12. data/app/services/foreman_rh_cloud/cert_auth.rb +22 -0
  13. data/app/services/foreman_rh_cloud/cloud_connector.rb +10 -1
  14. data/app/services/foreman_rh_cloud/cloud_ping_service.rb +0 -27
  15. data/app/services/foreman_rh_cloud/hit_remediations_retriever.rb +4 -0
  16. data/app/services/foreman_rh_cloud/remediations_retriever.rb +7 -3
  17. data/app/services/foreman_rh_cloud/template_renderer_helper.rb +4 -3
  18. data/app/services/foreman_rh_cloud/url_remediations_retriever.rb +6 -1
  19. data/app/views/job_templates/cloud_connector.erb +6 -0
  20. data/app/views/job_templates/rh_cloud_download_playbook.erb +5 -1
  21. data/config/routes.rb +0 -1
  22. data/db/migrate/20220321000001_add_unique_to_insights_rules.foreman_rh_cloud.rb +13 -0
  23. data/lib/foreman_inventory_upload.rb +1 -1
  24. data/lib/foreman_rh_cloud/engine.rb +14 -11
  25. data/lib/foreman_rh_cloud/version.rb +1 -1
  26. data/lib/foreman_rh_cloud.rb +0 -5
  27. data/lib/insights_cloud/async/connector_playbook_execution_reporter_task.rb +7 -1
  28. data/lib/insights_cloud/async/insights_full_sync.rb +40 -24
  29. data/lib/insights_cloud/async/insights_resolutions_sync.rb +10 -13
  30. data/lib/insights_cloud/async/insights_rules_sync.rb +27 -19
  31. data/lib/insights_cloud/async/insights_scheduled_sync.rb +5 -1
  32. data/lib/insights_cloud.rb +4 -8
  33. data/lib/inventory_sync/async/host_result.rb +3 -2
  34. data/lib/inventory_sync/async/inventory_full_sync.rb +3 -3
  35. data/lib/inventory_sync/async/inventory_hosts_sync.rb +11 -10
  36. data/lib/inventory_sync/async/inventory_self_host_sync.rb +5 -6
  37. data/lib/inventory_sync/async/query_inventory_job.rb +40 -12
  38. data/lib/tasks/insights.rake +1 -1
  39. data/package.json +1 -1
  40. data/test/controllers/insights_cloud/api/cloud_request_controller_test.rb +0 -1
  41. data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +16 -0
  42. data/test/controllers/inventory_upload/cloud_status_controller_test.rb +0 -6
  43. data/test/jobs/insights_full_sync_test.rb +9 -5
  44. data/test/jobs/insights_resolutions_sync_test.rb +7 -1
  45. data/test/jobs/insights_rules_sync_test.rb +8 -4
  46. data/test/jobs/inventory_full_sync_test.rb +16 -5
  47. data/test/jobs/inventory_hosts_sync_test.rb +18 -4
  48. data/test/jobs/inventory_self_host_sync_test.rb +6 -1
  49. data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +12 -8
  50. data/test/unit/services/foreman_rh_cloud/cloud_status_service_test.rb +1 -14
  51. data/test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb +5 -1
  52. data/test/unit/services/foreman_rh_cloud/url_remediations_retriever_test.rb +3 -1
  53. data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js +0 -2
  54. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudPingModal/index.js +1 -10
  55. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +3 -12
  56. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +1 -1
  57. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +0 -4
  58. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js +0 -2
  59. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableSelectors.js +0 -3
  60. data/webpack/InsightsCloudSync/Components/InsightsTable/Pagination.js +16 -0
  61. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/InsightsTableSelectors.test.js +0 -2
  62. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap +0 -2
  63. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js +0 -1
  64. data/webpack/InsightsCloudSync/InsightsCloudSync.js +1 -17
  65. data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +0 -7
  66. data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +0 -4
  67. data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +0 -7
  68. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +0 -9
  69. data/webpack/InsightsCloudSync/index.js +1 -5
  70. metadata +11 -17
  71. data/app/services/foreman_rh_cloud/cloud_auth.rb +0 -44
  72. data/config/package-lock.json +0 -41822
  73. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudPingModal/index.scss +0 -5
  74. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +0 -63
  75. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss +0 -20
  76. data/webpack/InsightsCloudSync/Components/NoTokenEmptyState.js +0 -79
  77. data/webpack/InsightsCloudSync/Components/__tests__/NoTokenEmptyState.test.js +0 -19
  78. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +0 -225

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.