foreman_rh_cloud 3.0.23 → 3.0.26

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +5 -3
  3. data/app/helpers/foreman_insights_deprecations_helper.rb +9 -0
  4. data/app/models/insights_client_report_status.rb +11 -22
  5. data/app/overrides/old_plugin_deprecation.rb +20 -0
  6. data/app/services/foreman_rh_cloud/cloud_auth.rb +4 -0
  7. data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +10 -8
  8. data/app/services/foreman_rh_cloud/insights_status_cleaner.rb +17 -0
  9. data/app/services/foreman_rh_cloud/remediations_retriever.rb +5 -0
  10. data/config/Gemfile.lock.gh_test +93 -95
  11. data/config/routes.rb +1 -1
  12. data/db/migrate/20210720000001_remove_old_insights_statuses.foreman_rh_cloud.rb +6 -0
  13. data/lib/foreman_inventory_upload/generators/queries.rb +1 -0
  14. data/lib/foreman_inventory_upload/generators/slice.rb +1 -0
  15. data/lib/foreman_inventory_upload/generators/tags.rb +3 -1
  16. data/lib/foreman_inventory_upload.rb +9 -1
  17. data/lib/foreman_rh_cloud/engine.rb +14 -11
  18. data/lib/foreman_rh_cloud/version.rb +1 -1
  19. data/lib/insights_cloud/async/insights_client_status_aging.rb +23 -0
  20. data/lib/insights_cloud/async/insights_full_sync.rb +5 -0
  21. data/lib/insights_cloud/async/insights_resolutions_sync.rb +12 -2
  22. data/lib/insights_cloud/async/insights_rules_sync.rb +11 -2
  23. data/lib/inventory_sync/async/host_result.rb +4 -0
  24. data/lib/inventory_sync/async/inventory_full_sync.rb +5 -0
  25. data/lib/inventory_sync/async/inventory_hosts_sync.rb +15 -0
  26. data/lib/inventory_sync/async/inventory_self_host_sync.rb +39 -0
  27. data/lib/inventory_sync/async/query_inventory_job.rb +5 -1
  28. data/lib/tasks/insights.rake +15 -0
  29. data/package.json +1 -1
  30. data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +41 -0
  31. data/test/jobs/insights_client_status_aging_test.rb +33 -0
  32. data/test/jobs/insights_full_sync_test.rb +1 -0
  33. data/test/jobs/insights_resolutions_sync_test.rb +11 -1
  34. data/test/jobs/insights_rules_sync_test.rb +1 -0
  35. data/test/jobs/inventory_full_sync_test.rb +10 -0
  36. data/test/jobs/inventory_hosts_sync_test.rb +3 -0
  37. data/test/jobs/inventory_self_host_sync_test.rb +104 -0
  38. data/test/models/insights_client_report_status_test.rb +70 -72
  39. data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +4 -3
  40. data/test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb +31 -0
  41. data/test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb +1 -0
  42. data/test/unit/slice_generator_test.rb +15 -0
  43. data/test/unit/tags_generator_test.rb +41 -0
  44. data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.scss +14 -0
  45. metadata +15 -4
  46. data/app/subscribers/foreman_rh_cloud/insights_subscriber.rb +0 -9
@@ -6,4 +6,18 @@
6
6
  margin-top: 5px;
7
7
  }
8
8
  }
9
+
10
+ // applies to the backdrop parent of the modal
11
+ @at-root .pf-c-backdrop {
12
+ width: calc(100% - 200px) !important;
13
+ left: 200px !important;
14
+ }
15
+
16
+ // where the vertical nav breaks: https://github.com/theforeman/foreman/blob/3347fa49d500964f0209122d8d36c920d1feafcc/webpack/assets/javascripts/react_app/components/Layout/components/Toolbar/HeaderToolbar.scss#L26
17
+ @media (max-width: 768px) {
18
+ @at-root .pf-c-backdrop {
19
+ width: 100% !important;
20
+ left: 0 !important;
21
+ }
22
+ }
9
23
  }
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: 3.0.23
4
+ version: 3.0.26
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-06-30 00:00:00.000000000 Z
11
+ date: 2021-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello
@@ -160,6 +160,7 @@ files:
160
160
  - app/controllers/insights_cloud/hits_controller.rb
161
161
  - app/controllers/insights_cloud/settings_controller.rb
162
162
  - app/controllers/insights_cloud/tasks_controller.rb
163
+ - app/helpers/foreman_insights_deprecations_helper.rb
163
164
  - app/helpers/foreman_insights_host_helper.rb
164
165
  - app/helpers/foreman_inventory_upload_helper.rb
165
166
  - app/helpers/foreman_inventory_upload_host_helper.rb
@@ -173,14 +174,15 @@ files:
173
174
  - app/models/setting/rh_cloud.rb
174
175
  - app/overrides/hosts_list.rb
175
176
  - app/overrides/layouts/base/styles.html.erb.deface
177
+ - app/overrides/old_plugin_deprecation.rb
176
178
  - app/services/foreman_rh_cloud/branch_info.rb
177
179
  - app/services/foreman_rh_cloud/cloud_auth.rb
178
180
  - app/services/foreman_rh_cloud/cloud_connector.rb
179
181
  - app/services/foreman_rh_cloud/cloud_request.rb
180
182
  - app/services/foreman_rh_cloud/cloud_request_forwarder.rb
183
+ - app/services/foreman_rh_cloud/insights_status_cleaner.rb
181
184
  - app/services/foreman_rh_cloud/remediations_retriever.rb
182
185
  - app/services/foreman_rh_cloud/template_renderer_helper.rb
183
- - app/subscribers/foreman_rh_cloud/insights_subscriber.rb
184
186
  - app/views/hosts/_insights_tab.html.erb
185
187
  - app/views/job_templates/rh_cloud_remediations.erb
186
188
  - app/views/layouts/foreman_rh_cloud/application.html.erb
@@ -198,6 +200,7 @@ files:
198
200
  - db/migrate/20210214000002_add_rule_id_to_hits.foreman_rh_cloud.rb
199
201
  - db/migrate/20210307000001_add_unique_to_insights_facet.foreman_rh_cloud.rb
200
202
  - db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb
203
+ - db/migrate/20210720000001_remove_old_insights_statuses.foreman_rh_cloud.rb
201
204
  - db/seeds.d/179_ui_notifications.rb
202
205
  - db/seeds.d/50_job_templates.rb
203
206
  - lib/foreman_inventory_upload.rb
@@ -221,6 +224,7 @@ files:
221
224
  - lib/foreman_rh_cloud/engine.rb
222
225
  - lib/foreman_rh_cloud/version.rb
223
226
  - lib/insights_cloud.rb
227
+ - lib/insights_cloud/async/insights_client_status_aging.rb
224
228
  - lib/insights_cloud/async/insights_full_sync.rb
225
229
  - lib/insights_cloud/async/insights_generate_notifications.rb
226
230
  - lib/insights_cloud/async/insights_resolutions_sync.rb
@@ -231,6 +235,7 @@ files:
231
235
  - lib/inventory_sync/async/inventory_full_sync.rb
232
236
  - lib/inventory_sync/async/inventory_hosts_sync.rb
233
237
  - lib/inventory_sync/async/inventory_scheduled_sync.rb
238
+ - lib/inventory_sync/async/inventory_self_host_sync.rb
234
239
  - lib/inventory_sync/async/query_inventory_job.rb
235
240
  - lib/tasks/foreman_rh_cloud_tasks.rake
236
241
  - lib/tasks/insights.rake
@@ -249,12 +254,14 @@ files:
249
254
  - test/controllers/uploads_settings_controller_test.rb
250
255
  - test/factories/insights_factories.rb
251
256
  - test/factories/inventory_upload_factories.rb
257
+ - test/jobs/insights_client_status_aging_test.rb
252
258
  - test/jobs/insights_full_sync_test.rb
253
259
  - test/jobs/insights_resolutions_sync_test.rb
254
260
  - test/jobs/insights_rules_sync_test.rb
255
261
  - test/jobs/inventory_full_sync_test.rb
256
262
  - test/jobs/inventory_hosts_sync_test.rb
257
263
  - test/jobs/inventory_scheduled_sync_test.rb
264
+ - test/jobs/inventory_self_host_sync_test.rb
258
265
  - test/jobs/upload_report_job_test.rb
259
266
  - test/models/insights_client_report_status_test.rb
260
267
  - test/test_plugin_helper.rb
@@ -265,6 +272,7 @@ files:
265
272
  - test/unit/rh_cloud_http_proxy_test.rb
266
273
  - test/unit/services/foreman_rh_cloud/branch_info_test.rb
267
274
  - test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
275
+ - test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb
268
276
  - test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
269
277
  - test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
270
278
  - test/unit/shell_process_job_test.rb
@@ -663,7 +671,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
663
671
  - !ruby/object:Gem::Version
664
672
  version: '0'
665
673
  requirements: []
666
- rubygems_version: 3.2.15
674
+ rubygems_version: 3.2.22
667
675
  signing_key:
668
676
  specification_version: 4
669
677
  summary: Summary of ForemanRhCloud.
@@ -677,12 +685,14 @@ test_files:
677
685
  - test/controllers/uploads_settings_controller_test.rb
678
686
  - test/factories/insights_factories.rb
679
687
  - test/factories/inventory_upload_factories.rb
688
+ - test/jobs/insights_client_status_aging_test.rb
680
689
  - test/jobs/insights_full_sync_test.rb
681
690
  - test/jobs/insights_resolutions_sync_test.rb
682
691
  - test/jobs/insights_rules_sync_test.rb
683
692
  - test/jobs/inventory_full_sync_test.rb
684
693
  - test/jobs/inventory_hosts_sync_test.rb
685
694
  - test/jobs/inventory_scheduled_sync_test.rb
695
+ - test/jobs/inventory_self_host_sync_test.rb
686
696
  - test/jobs/upload_report_job_test.rb
687
697
  - test/models/insights_client_report_status_test.rb
688
698
  - test/test_plugin_helper.rb
@@ -693,6 +703,7 @@ test_files:
693
703
  - test/unit/rh_cloud_http_proxy_test.rb
694
704
  - test/unit/services/foreman_rh_cloud/branch_info_test.rb
695
705
  - test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
706
+ - test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb
696
707
  - test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
697
708
  - test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
698
709
  - test/unit/shell_process_job_test.rb
@@ -1,9 +0,0 @@
1
- module ForemanRhCloud
2
- class InsightsSubscriber < ::Foreman::BaseSubscriber
3
- def call(*args)
4
- host = args.first.payload[:object]
5
- host_status = host.get_status(InsightsClientReportStatus)
6
- host_status.update(status: host_status.to_status)
7
- end
8
- end
9
- end