foreman_rh_cloud 4.0.21.1 → 4.0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/rh_cloud/inventory_controller.rb +50 -0
- data/app/controllers/concerns/inventory_upload/report_actions.rb +26 -0
- data/app/controllers/concerns/inventory_upload/task_actions.rb +25 -0
- data/app/controllers/foreman_inventory_upload/reports_controller.rb +3 -1
- data/app/controllers/foreman_inventory_upload/tasks_controller.rb +5 -13
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +4 -4
- data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +6 -3
- data/app/controllers/insights_cloud/hits_controller.rb +7 -3
- data/app/helpers/foreman_insights_host_helper.rb +19 -0
- data/app/models/insights_client_report_status.rb +11 -22
- data/app/services/foreman_rh_cloud/cloud_auth.rb +12 -0
- data/app/services/foreman_rh_cloud/cloud_request.rb +14 -0
- data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +1 -14
- data/app/services/foreman_rh_cloud/insights_status_cleaner.rb +17 -0
- data/app/services/foreman_rh_cloud/remediations_retriever.rb +1 -4
- data/config/package-lock.json.plugin +30931 -0
- data/config/routes.rb +19 -0
- data/db/migrate/20210720000001_remove_old_insights_statuses.foreman_rh_cloud.rb +6 -0
- data/lib/foreman_inventory_upload.rb +9 -1
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +19 -0
- data/lib/foreman_inventory_upload/generators/queries.rb +1 -0
- data/lib/foreman_inventory_upload/generators/slice.rb +6 -5
- data/lib/foreman_rh_cloud/engine.rb +17 -10
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud/async/insights_client_status_aging.rb +23 -0
- data/lib/insights_cloud/async/insights_full_sync.rb +4 -14
- data/lib/insights_cloud/async/insights_resolutions_sync.rb +1 -4
- data/lib/insights_cloud/async/insights_rules_sync.rb +2 -7
- data/lib/inventory_sync/async/host_result.rb +4 -0
- data/lib/inventory_sync/async/inventory_full_sync.rb +2 -1
- data/lib/inventory_sync/async/inventory_hosts_sync.rb +16 -2
- data/lib/inventory_sync/async/inventory_scheduled_sync.rb +12 -0
- data/lib/inventory_sync/async/inventory_self_host_sync.rb +30 -0
- data/lib/inventory_sync/async/query_inventory_job.rb +6 -5
- data/lib/tasks/insights.rake +15 -0
- data/lib/tasks/rh_cloud_inventory.rake +8 -1
- data/package.json +1 -1
- data/test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb +41 -0
- data/test/controllers/inventory_upload/api/inventory_controller_test.rb +53 -0
- data/test/factories/inventory_upload_factories.rb +1 -1
- data/test/jobs/insights_client_status_aging_test.rb +33 -0
- data/test/jobs/inventory_hosts_sync_test.rb +267 -0
- data/test/jobs/inventory_scheduled_sync_test.rb +22 -0
- data/test/jobs/inventory_self_host_sync_test.rb +103 -0
- data/test/models/insights_client_report_status_test.rb +70 -72
- data/test/test_plugin_helper.rb +2 -1
- data/test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb +3 -3
- data/test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb +31 -0
- data/test/unit/slice_generator_test.rb +70 -27
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +11 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +11 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +28 -63
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap +2 -3
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableActions.js +19 -19
- data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +0 -2
- data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap +14 -14
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +4 -1
- data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +44 -20
- data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +2 -0
- data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncActions.test.js.snap +11 -7
- data/webpack/common/ForemanTasks/ForemanTasksActions.js +64 -0
- data/webpack/common/ForemanTasks/ForemanTasksHelpers.js +7 -0
- data/webpack/common/ForemanTasks/index.js +1 -0
- metadata +28 -4
- data/app/subscribers/foreman_rh_cloud/insights_subscriber.rb +0 -9
@@ -0,0 +1 @@
|
|
1
|
+
export { setupTaskPolling, taskRelatedToast } from './ForemanTasksActions';
|
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.
|
4
|
+
version: 4.0.24.1
|
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-
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -146,8 +146,11 @@ files:
|
|
146
146
|
- LICENSE
|
147
147
|
- README.md
|
148
148
|
- Rakefile
|
149
|
+
- app/controllers/api/v2/rh_cloud/inventory_controller.rb
|
149
150
|
- app/controllers/concerns/insights_cloud/candlepin_cache.rb
|
150
151
|
- app/controllers/concerns/insights_cloud/client_authentication.rb
|
152
|
+
- app/controllers/concerns/inventory_upload/report_actions.rb
|
153
|
+
- app/controllers/concerns/inventory_upload/task_actions.rb
|
151
154
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
152
155
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
153
156
|
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
@@ -157,6 +160,7 @@ files:
|
|
157
160
|
- app/controllers/insights_cloud/hits_controller.rb
|
158
161
|
- app/controllers/insights_cloud/settings_controller.rb
|
159
162
|
- app/controllers/insights_cloud/tasks_controller.rb
|
163
|
+
- app/helpers/foreman_insights_host_helper.rb
|
160
164
|
- app/helpers/foreman_inventory_upload_helper.rb
|
161
165
|
- app/helpers/foreman_inventory_upload_host_helper.rb
|
162
166
|
- app/models/concerns/rh_cloud_host.rb
|
@@ -172,16 +176,18 @@ files:
|
|
172
176
|
- app/services/foreman_rh_cloud/branch_info.rb
|
173
177
|
- app/services/foreman_rh_cloud/cloud_auth.rb
|
174
178
|
- app/services/foreman_rh_cloud/cloud_connector.rb
|
179
|
+
- app/services/foreman_rh_cloud/cloud_request.rb
|
175
180
|
- app/services/foreman_rh_cloud/cloud_request_forwarder.rb
|
181
|
+
- app/services/foreman_rh_cloud/insights_status_cleaner.rb
|
176
182
|
- app/services/foreman_rh_cloud/remediations_retriever.rb
|
177
183
|
- app/services/foreman_rh_cloud/template_renderer_helper.rb
|
178
|
-
- app/subscribers/foreman_rh_cloud/insights_subscriber.rb
|
179
184
|
- app/views/hosts/_insights_tab.html.erb
|
180
185
|
- app/views/job_templates/rh_cloud_remediations.erb
|
181
186
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
182
187
|
- config/Gemfile.lock.gh_test
|
183
188
|
- config/database.yml.example
|
184
189
|
- config/package-lock.json.gh_test
|
190
|
+
- config/package-lock.json.plugin
|
185
191
|
- config/routes.rb
|
186
192
|
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
187
193
|
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
@@ -192,6 +198,7 @@ files:
|
|
192
198
|
- db/migrate/20210214000002_add_rule_id_to_hits.foreman_rh_cloud.rb
|
193
199
|
- db/migrate/20210307000001_add_unique_to_insights_facet.foreman_rh_cloud.rb
|
194
200
|
- db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb
|
201
|
+
- db/migrate/20210720000001_remove_old_insights_statuses.foreman_rh_cloud.rb
|
195
202
|
- db/seeds.d/179_ui_notifications.rb
|
196
203
|
- db/seeds.d/50_job_templates.rb
|
197
204
|
- lib/foreman_inventory_upload.rb
|
@@ -215,6 +222,7 @@ files:
|
|
215
222
|
- lib/foreman_rh_cloud/engine.rb
|
216
223
|
- lib/foreman_rh_cloud/version.rb
|
217
224
|
- lib/insights_cloud.rb
|
225
|
+
- lib/insights_cloud/async/insights_client_status_aging.rb
|
218
226
|
- lib/insights_cloud/async/insights_full_sync.rb
|
219
227
|
- lib/insights_cloud/async/insights_generate_notifications.rb
|
220
228
|
- lib/insights_cloud/async/insights_resolutions_sync.rb
|
@@ -225,6 +233,7 @@ files:
|
|
225
233
|
- lib/inventory_sync/async/inventory_full_sync.rb
|
226
234
|
- lib/inventory_sync/async/inventory_hosts_sync.rb
|
227
235
|
- lib/inventory_sync/async/inventory_scheduled_sync.rb
|
236
|
+
- lib/inventory_sync/async/inventory_self_host_sync.rb
|
228
237
|
- lib/inventory_sync/async/query_inventory_job.rb
|
229
238
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
230
239
|
- lib/tasks/insights.rake
|
@@ -237,15 +246,20 @@ files:
|
|
237
246
|
- test/controllers/accounts_controller_test.rb
|
238
247
|
- test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
|
239
248
|
- test/controllers/insights_sync/settings_controller_test.rb
|
249
|
+
- test/controllers/inventory_upload/api/inventory_controller_test.rb
|
240
250
|
- test/controllers/reports_controller_test.rb
|
241
251
|
- test/controllers/uploads_controller_test.rb
|
242
252
|
- test/controllers/uploads_settings_controller_test.rb
|
243
253
|
- test/factories/insights_factories.rb
|
244
254
|
- test/factories/inventory_upload_factories.rb
|
255
|
+
- test/jobs/insights_client_status_aging_test.rb
|
245
256
|
- test/jobs/insights_full_sync_test.rb
|
246
257
|
- test/jobs/insights_resolutions_sync_test.rb
|
247
258
|
- test/jobs/insights_rules_sync_test.rb
|
248
259
|
- test/jobs/inventory_full_sync_test.rb
|
260
|
+
- test/jobs/inventory_hosts_sync_test.rb
|
261
|
+
- test/jobs/inventory_scheduled_sync_test.rb
|
262
|
+
- test/jobs/inventory_self_host_sync_test.rb
|
249
263
|
- test/jobs/upload_report_job_test.rb
|
250
264
|
- test/models/insights_client_report_status_test.rb
|
251
265
|
- test/test_plugin_helper.rb
|
@@ -256,6 +270,7 @@ files:
|
|
256
270
|
- test/unit/rh_cloud_http_proxy_test.rb
|
257
271
|
- test/unit/services/foreman_rh_cloud/branch_info_test.rb
|
258
272
|
- test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
|
273
|
+
- test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb
|
259
274
|
- test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
|
260
275
|
- test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
|
261
276
|
- test/unit/shell_process_job_test.rb
|
@@ -620,6 +635,9 @@ files:
|
|
620
635
|
- webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
|
621
636
|
- webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
|
622
637
|
- webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
|
638
|
+
- webpack/common/ForemanTasks/ForemanTasksActions.js
|
639
|
+
- webpack/common/ForemanTasks/ForemanTasksHelpers.js
|
640
|
+
- webpack/common/ForemanTasks/index.js
|
623
641
|
- webpack/common/Switcher/HelpLabel.js
|
624
642
|
- webpack/common/Switcher/SwitcherPF4.js
|
625
643
|
- webpack/common/Switcher/SwitcherPF4.scss
|
@@ -651,7 +669,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
651
669
|
- !ruby/object:Gem::Version
|
652
670
|
version: '0'
|
653
671
|
requirements: []
|
654
|
-
rubygems_version: 3.2.
|
672
|
+
rubygems_version: 3.2.15
|
655
673
|
signing_key:
|
656
674
|
specification_version: 4
|
657
675
|
summary: Summary of ForemanRhCloud.
|
@@ -659,15 +677,20 @@ test_files:
|
|
659
677
|
- test/controllers/accounts_controller_test.rb
|
660
678
|
- test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
|
661
679
|
- test/controllers/insights_sync/settings_controller_test.rb
|
680
|
+
- test/controllers/inventory_upload/api/inventory_controller_test.rb
|
662
681
|
- test/controllers/reports_controller_test.rb
|
663
682
|
- test/controllers/uploads_controller_test.rb
|
664
683
|
- test/controllers/uploads_settings_controller_test.rb
|
665
684
|
- test/factories/insights_factories.rb
|
666
685
|
- test/factories/inventory_upload_factories.rb
|
686
|
+
- test/jobs/insights_client_status_aging_test.rb
|
667
687
|
- test/jobs/insights_full_sync_test.rb
|
668
688
|
- test/jobs/insights_resolutions_sync_test.rb
|
669
689
|
- test/jobs/insights_rules_sync_test.rb
|
670
690
|
- test/jobs/inventory_full_sync_test.rb
|
691
|
+
- test/jobs/inventory_hosts_sync_test.rb
|
692
|
+
- test/jobs/inventory_scheduled_sync_test.rb
|
693
|
+
- test/jobs/inventory_self_host_sync_test.rb
|
671
694
|
- test/jobs/upload_report_job_test.rb
|
672
695
|
- test/models/insights_client_report_status_test.rb
|
673
696
|
- test/test_plugin_helper.rb
|
@@ -678,6 +701,7 @@ test_files:
|
|
678
701
|
- test/unit/rh_cloud_http_proxy_test.rb
|
679
702
|
- test/unit/services/foreman_rh_cloud/branch_info_test.rb
|
680
703
|
- test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
|
704
|
+
- test/unit/services/foreman_rh_cloud/insights_status_cleaner_test.rb
|
681
705
|
- test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
|
682
706
|
- test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
|
683
707
|
- test/unit/shell_process_job_test.rb
|