foreman_rh_cloud 4.0.25.1 → 5.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/rh_cloud/inventory_controller.rb +4 -1
  3. data/app/controllers/concerns/inventory_upload/report_actions.rb +1 -1
  4. data/app/controllers/foreman_inventory_upload/reports_controller.rb +1 -1
  5. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +8 -0
  6. data/app/controllers/insights_cloud/hits_controller.rb +1 -1
  7. data/app/models/insights_hit.rb +4 -0
  8. data/app/models/setting/rh_cloud.rb +0 -1
  9. data/app/models/task_output_line.rb +2 -0
  10. data/app/models/task_output_status.rb +2 -0
  11. data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +14 -2
  12. data/config/Gemfile.lock.gh_test +169 -152
  13. data/config/database.yml.example +2 -2
  14. data/config/package-lock.json.plugin +10551 -7500
  15. data/config/routes.rb +1 -1
  16. data/db/migrate/20211027000001_create_task_output.foreman_rh_cloud.rb +18 -0
  17. data/lib/foreman_inventory_upload/async/generate_all_reports_job.rb +11 -7
  18. data/lib/foreman_inventory_upload/async/generate_report_job.rb +24 -12
  19. data/lib/foreman_inventory_upload/async/progress_output.rb +5 -28
  20. data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +20 -5
  21. data/lib/foreman_inventory_upload/async/shell_process.rb +17 -4
  22. data/lib/foreman_inventory_upload/async/upload_report_job.rb +22 -13
  23. data/lib/foreman_inventory_upload/generators/queries.rb +1 -0
  24. data/lib/foreman_inventory_upload/generators/tags.rb +1 -2
  25. data/lib/foreman_rh_cloud/engine.rb +4 -10
  26. data/lib/foreman_rh_cloud/version.rb +1 -1
  27. data/lib/foreman_rh_cloud.rb +12 -1
  28. data/lib/insights_cloud/async/insights_client_status_aging.rb +4 -0
  29. data/lib/insights_cloud/async/insights_full_sync.rb +4 -0
  30. data/lib/insights_cloud/async/insights_generate_notifications.rb +4 -0
  31. data/lib/insights_cloud/async/insights_resolutions_sync.rb +7 -2
  32. data/lib/insights_cloud/async/insights_rules_sync.rb +10 -2
  33. data/lib/insights_cloud/async/insights_scheduled_sync.rb +11 -7
  34. data/lib/inventory_sync/async/host_result.rb +0 -5
  35. data/lib/inventory_sync/async/inventory_full_sync.rb +18 -9
  36. data/lib/inventory_sync/async/inventory_hosts_sync.rb +6 -6
  37. data/lib/inventory_sync/async/inventory_scheduled_sync.rb +4 -0
  38. data/lib/inventory_sync/async/inventory_self_host_sync.rb +4 -0
  39. data/lib/inventory_sync/async/query_inventory_job.rb +4 -0
  40. data/lib/tasks/rh_cloud_inventory.rake +2 -2
  41. data/package.json +8 -13
  42. data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +16 -39
  43. data/test/controllers/insights_sync/settings_controller_test.rb +2 -2
  44. data/test/controllers/uploads_settings_controller_test.rb +2 -2
  45. data/test/factories/inventory_upload_factories.rb +14 -0
  46. data/test/jobs/insights_full_sync_test.rb +2 -2
  47. data/test/jobs/insights_resolutions_sync_test.rb +11 -2
  48. data/test/jobs/insights_rules_sync_test.rb +2 -2
  49. data/test/jobs/inventory_full_sync_test.rb +31 -5
  50. data/test/jobs/inventory_hosts_sync_test.rb +16 -1
  51. data/test/jobs/inventory_scheduled_sync_test.rb +2 -2
  52. data/test/jobs/inventory_self_host_sync_test.rb +1 -1
  53. data/test/jobs/upload_report_job_test.rb +6 -4
  54. data/test/test_plugin_helper.rb +0 -2
  55. data/test/unit/foreman_rh_cloud_self_host_test.rb +28 -0
  56. data/test/unit/rh_cloud_http_proxy_test.rb +1 -1
  57. data/test/unit/services/foreman_rh_cloud/branch_info_test.rb +1 -1
  58. data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +26 -0
  59. data/test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb +1 -1
  60. data/test/unit/shell_process_job_test.rb +3 -1
  61. data/test/unit/slice_generator_test.rb +39 -7
  62. data/test/unit/tags_generator_test.rb +20 -20
  63. data/webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss +8 -0
  64. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.scss +17 -4
  65. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js +29 -17
  66. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +58 -47
  67. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +12 -10
  68. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +10 -10
  69. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap +1 -1
  70. data/webpack/ForemanRhCloudFills.js +7 -0
  71. data/webpack/InsightsCloudSync/Components/InsightsHeader/index.js +0 -2
  72. data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +1 -0
  73. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +22 -6
  74. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableActions.js +23 -16
  75. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableConstants.js +49 -2
  76. data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableHelpers.js +31 -14
  77. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +19 -2
  78. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap +0 -1
  79. data/webpack/InsightsCloudSync/Components/InsightsTable/table.scss +11 -13
  80. data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.scss +0 -14
  81. data/webpack/InsightsCloudSync/Components/ToolbarDropdown.js +13 -0
  82. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/InsightsHeader.test.js.snap +0 -1
  83. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +24 -13
  84. data/webpack/InsightsCloudSync/InsightsCloudSync.js +2 -0
  85. data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +8 -0
  86. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +2 -1
  87. data/webpack/InsightsHostDetailsTab/InsightsTab.scss +4 -0
  88. data/webpack/InsightsHostDetailsTab/NewHostDetailsTab.js +104 -0
  89. data/webpack/__mocks__/foremanReact/components/Head.js +11 -0
  90. data/webpack/common/DropdownToggle.js +24 -0
  91. data/webpack/common/Switcher/HelpLabel.js +1 -1
  92. data/webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap +1 -1
  93. data/webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap +1 -0
  94. metadata +11 -3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_rh_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.25.1
4
+ version: 5.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-05 00:00:00.000000000 Z
11
+ date: 2021-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -158,6 +158,8 @@ files:
158
158
  - app/models/insights_rule.rb
159
159
  - app/models/inventory_sync/inventory_status.rb
160
160
  - app/models/setting/rh_cloud.rb
161
+ - app/models/task_output_line.rb
162
+ - app/models/task_output_status.rb
161
163
  - app/overrides/hosts_list.rb
162
164
  - app/overrides/layouts/base/styles.html.erb.deface
163
165
  - app/services/foreman_rh_cloud/branch_info.rb
@@ -188,6 +190,7 @@ files:
188
190
  - db/migrate/20210307000001_add_unique_to_insights_facet.foreman_rh_cloud.rb
189
191
  - db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb
190
192
  - db/migrate/20210720000001_remove_old_insights_statuses.foreman_rh_cloud.rb
193
+ - db/migrate/20211027000001_create_task_output.foreman_rh_cloud.rb
191
194
  - db/seeds.d/179_ui_notifications.rb
192
195
  - db/seeds.d/50_job_templates.rb
193
196
  - lib/foreman_inventory_upload.rb
@@ -255,6 +258,7 @@ files:
255
258
  - test/test_plugin_helper.rb
256
259
  - test/unit/archived_report_generator_test.rb
257
260
  - test/unit/fact_helpers_test.rb
261
+ - test/unit/foreman_rh_cloud_self_host_test.rb
258
262
  - test/unit/insights_facet_test.rb
259
263
  - test/unit/metadata_generator_test.rb
260
264
  - test/unit/rh_cloud_http_proxy_test.rb
@@ -591,6 +595,7 @@ files:
591
595
  - webpack/InsightsHostDetailsTab/InsightsTabConstants.js
592
596
  - webpack/InsightsHostDetailsTab/InsightsTabReducer.js
593
597
  - webpack/InsightsHostDetailsTab/InsightsTabSelectors.js
598
+ - webpack/InsightsHostDetailsTab/NewHostDetailsTab.js
594
599
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
595
600
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
596
601
  - webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
@@ -608,6 +613,7 @@ files:
608
613
  - webpack/__mocks__/foremanReact/common/I18n.js
609
614
  - webpack/__mocks__/foremanReact/common/MountingService.js
610
615
  - webpack/__mocks__/foremanReact/common/helpers.js
616
+ - webpack/__mocks__/foremanReact/components/Head.js
611
617
  - webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
612
618
  - webpack/__mocks__/foremanReact/components/Layout/LayoutSelectors.js
613
619
  - webpack/__mocks__/foremanReact/constants.js
@@ -623,6 +629,7 @@ files:
623
629
  - webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
624
630
  - webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
625
631
  - webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
632
+ - webpack/common/DropdownToggle.js
626
633
  - webpack/common/ForemanTasks/ForemanTasksActions.js
627
634
  - webpack/common/ForemanTasks/ForemanTasksHelpers.js
628
635
  - webpack/common/ForemanTasks/index.js
@@ -657,7 +664,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
657
664
  - !ruby/object:Gem::Version
658
665
  version: '0'
659
666
  requirements: []
660
- rubygems_version: 3.2.15
667
+ rubygems_version: 3.2.22
661
668
  signing_key:
662
669
  specification_version: 4
663
670
  summary: Summary of ForemanRhCloud.
@@ -685,6 +692,7 @@ test_files:
685
692
  - test/test_plugin_helper.rb
686
693
  - test/unit/archived_report_generator_test.rb
687
694
  - test/unit/fact_helpers_test.rb
695
+ - test/unit/foreman_rh_cloud_self_host_test.rb
688
696
  - test/unit/insights_facet_test.rb
689
697
  - test/unit/metadata_generator_test.rb
690
698
  - test/unit/rh_cloud_http_proxy_test.rb