foreman_rh_cloud 3.0.19 → 3.0.20
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.
- checksums.yaml +4 -4
- data/README.md +17 -2
- data/app/controllers/insights_cloud/hits_controller.rb +37 -0
- data/app/controllers/insights_cloud/settings_controller.rb +1 -1
- data/app/controllers/insights_cloud/tasks_controller.rb +1 -2
- data/app/models/inventory_sync/inventory_status.rb +6 -0
- data/app/models/setting/rh_cloud.rb +5 -5
- data/app/services/foreman_rh_cloud/remediations_retriever.rb +78 -0
- data/app/services/foreman_rh_cloud/template_renderer_helper.rb +22 -0
- data/app/views/job_templates/rh_cloud_remediations.erb +14 -0
- data/config/routes.rb +1 -0
- data/db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb +10 -0
- data/db/seeds.d/50_job_templates.rb +14 -0
- data/lib/foreman_rh_cloud/engine.rb +13 -1
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud.rb +12 -0
- data/lib/insights_cloud/async/insights_full_sync.rb +16 -6
- data/lib/insights_cloud/async/insights_resolutions_sync.rb +69 -0
- data/lib/insights_cloud/async/insights_rules_sync.rb +13 -17
- data/lib/insights_cloud/async/insights_scheduled_sync.rb +1 -1
- data/lib/tasks/rh_cloud_inventory.rake +1 -1
- data/package.json +1 -1
- data/test/factories/insights_factories.rb +22 -0
- data/test/jobs/insights_full_sync_test.rb +12 -8
- data/test/jobs/insights_resolutions_sync_test.rb +74 -0
- data/test/jobs/insights_rules_sync_test.rb +5 -3
- data/test/jobs/inventory_full_sync_test.rb +1 -1
- data/test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb +49 -0
- data/test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb +28 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/AdvancedSettingsConstants.js +5 -3
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +15 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +13 -2
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +1 -1
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableSelectors.js +3 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediateButton.js +59 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationActions.js +12 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationHelpers.js +43 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js +101 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.scss +9 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModalFooter.js +43 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js +38 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/Resolutions.js +55 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/index.js +34 -0
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +8 -3
- data/webpack/InsightsCloudSync/InsightsCloudSync.scss +5 -0
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +9 -6
- data/webpack/{InsightsCloudSync/Components/InsightsTable/components → common/table}/EmptyState.js +0 -0
- data/webpack/common/table/helpers.js +7 -0
- metadata +33 -9
|
@@ -27,12 +27,15 @@ exports[`InsightsCloudSync render 1`] = `
|
|
|
27
27
|
searchQuery=""
|
|
28
28
|
searchable={true}
|
|
29
29
|
toolbarButtons={
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
<React.Fragment>
|
|
31
|
+
<UNDEFINED />
|
|
32
|
+
<Button
|
|
33
|
+
onClick={[Function]}
|
|
34
|
+
variant="secondary"
|
|
35
|
+
>
|
|
36
|
+
Start recommendations sync
|
|
37
|
+
</Button>
|
|
38
|
+
</React.Fragment>
|
|
36
39
|
}
|
|
37
40
|
>
|
|
38
41
|
<Connect(InsightsTable) />
|
data/webpack/{InsightsCloudSync/Components/InsightsTable/components → common/table}/EmptyState.js
RENAMED
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const getPerPageOptions = (urlPerPage, appPerPage) => {
|
|
2
|
+
const initialValues = new Set([5, 10, 15, 25, 50]);
|
|
3
|
+
initialValues.add(appPerPage);
|
|
4
|
+
urlPerPage && initialValues.add(urlPerPage);
|
|
5
|
+
const options = [...initialValues].sort((a, b) => a - b);
|
|
6
|
+
return options.map(value => ({ title: value.toString(), value }));
|
|
7
|
+
};
|
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.
|
|
4
|
+
version: 3.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Red Hat Cloud team
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: katello
|
|
@@ -172,7 +172,10 @@ files:
|
|
|
172
172
|
- app/services/foreman_rh_cloud/cloud_auth.rb
|
|
173
173
|
- app/services/foreman_rh_cloud/cloud_connector.rb
|
|
174
174
|
- app/services/foreman_rh_cloud/cloud_request_forwarder.rb
|
|
175
|
+
- app/services/foreman_rh_cloud/remediations_retriever.rb
|
|
176
|
+
- app/services/foreman_rh_cloud/template_renderer_helper.rb
|
|
175
177
|
- app/views/hosts/_insights_tab.html.erb
|
|
178
|
+
- app/views/job_templates/rh_cloud_remediations.erb
|
|
176
179
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
|
177
180
|
- config/Gemfile.lock.gh_test
|
|
178
181
|
- config/database.yml.example
|
|
@@ -186,6 +189,8 @@ files:
|
|
|
186
189
|
- db/migrate/20210214000001_create_rules_and_resolutions.foreman_rh_cloud.rb
|
|
187
190
|
- db/migrate/20210214000002_add_rule_id_to_hits.foreman_rh_cloud.rb
|
|
188
191
|
- db/migrate/20210307000001_add_unique_to_insights_facet.foreman_rh_cloud.rb
|
|
192
|
+
- db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb
|
|
193
|
+
- db/seeds.d/50_job_templates.rb
|
|
189
194
|
- lib/foreman_inventory_upload.rb
|
|
190
195
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
|
191
196
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
|
@@ -208,6 +213,7 @@ files:
|
|
|
208
213
|
- lib/foreman_rh_cloud/version.rb
|
|
209
214
|
- lib/insights_cloud.rb
|
|
210
215
|
- lib/insights_cloud/async/insights_full_sync.rb
|
|
216
|
+
- lib/insights_cloud/async/insights_resolutions_sync.rb
|
|
211
217
|
- lib/insights_cloud/async/insights_rules_sync.rb
|
|
212
218
|
- lib/insights_cloud/async/insights_scheduled_sync.rb
|
|
213
219
|
- lib/insights_cloud/async/rules_result.rb
|
|
@@ -232,6 +238,7 @@ files:
|
|
|
232
238
|
- test/factories/insights_factories.rb
|
|
233
239
|
- test/factories/inventory_upload_factories.rb
|
|
234
240
|
- test/jobs/insights_full_sync_test.rb
|
|
241
|
+
- test/jobs/insights_resolutions_sync_test.rb
|
|
235
242
|
- test/jobs/insights_rules_sync_test.rb
|
|
236
243
|
- test/jobs/inventory_full_sync_test.rb
|
|
237
244
|
- test/jobs/upload_report_job_test.rb
|
|
@@ -243,6 +250,8 @@ files:
|
|
|
243
250
|
- test/unit/rh_cloud_http_proxy_test.rb
|
|
244
251
|
- test/unit/services/foreman_rh_cloud/branch_info_test.rb
|
|
245
252
|
- test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
|
|
253
|
+
- test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
|
|
254
|
+
- test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
|
|
246
255
|
- test/unit/shell_process_job_test.rb
|
|
247
256
|
- test/unit/slice_generator_test.rb
|
|
248
257
|
- test/unit/tags_generator_test.rb
|
|
@@ -538,15 +547,24 @@ files:
|
|
|
538
547
|
- webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap
|
|
539
548
|
- webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap
|
|
540
549
|
- webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js
|
|
541
|
-
- webpack/InsightsCloudSync/Components/InsightsTable/components/EmptyState.js
|
|
542
550
|
- webpack/InsightsCloudSync/Components/InsightsTable/index.js
|
|
543
551
|
- webpack/InsightsCloudSync/Components/InsightsTable/table.scss
|
|
544
552
|
- webpack/InsightsCloudSync/Components/NoTokenEmptyState.js
|
|
553
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediateButton.js
|
|
554
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationActions.js
|
|
555
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationHelpers.js
|
|
556
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js
|
|
557
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.scss
|
|
558
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationModalFooter.js
|
|
559
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
|
|
560
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/Resolutions.js
|
|
561
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/index.js
|
|
545
562
|
- webpack/InsightsCloudSync/Components/__tests__/InsightsHeader.test.js
|
|
546
563
|
- webpack/InsightsCloudSync/Components/__tests__/NoTokenEmptyState.test.js
|
|
547
564
|
- webpack/InsightsCloudSync/Components/__tests__/__snapshots__/InsightsHeader.test.js.snap
|
|
548
565
|
- webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap
|
|
549
566
|
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
|
567
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.scss
|
|
550
568
|
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
|
551
569
|
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
|
552
570
|
- webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
|
|
@@ -604,13 +622,15 @@ files:
|
|
|
604
622
|
- webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap
|
|
605
623
|
- webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap
|
|
606
624
|
- webpack/common/Switcher/index.js
|
|
625
|
+
- webpack/common/table/EmptyState.js
|
|
626
|
+
- webpack/common/table/helpers.js
|
|
607
627
|
- webpack/global_index.js
|
|
608
628
|
- webpack/index.js
|
|
609
629
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
|
610
630
|
licenses:
|
|
611
631
|
- GPL-3.0
|
|
612
632
|
metadata: {}
|
|
613
|
-
post_install_message:
|
|
633
|
+
post_install_message:
|
|
614
634
|
rdoc_options: []
|
|
615
635
|
require_paths:
|
|
616
636
|
- lib
|
|
@@ -625,8 +645,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
625
645
|
- !ruby/object:Gem::Version
|
|
626
646
|
version: '0'
|
|
627
647
|
requirements: []
|
|
628
|
-
|
|
629
|
-
|
|
648
|
+
rubyforge_project:
|
|
649
|
+
rubygems_version: 2.7.6.2
|
|
650
|
+
signing_key:
|
|
630
651
|
specification_version: 4
|
|
631
652
|
summary: Summary of ForemanRhCloud.
|
|
632
653
|
test_files:
|
|
@@ -636,12 +657,13 @@ test_files:
|
|
|
636
657
|
- test/controllers/reports_controller_test.rb
|
|
637
658
|
- test/controllers/uploads_controller_test.rb
|
|
638
659
|
- test/controllers/uploads_settings_controller_test.rb
|
|
639
|
-
- test/factories/insights_factories.rb
|
|
640
660
|
- test/factories/inventory_upload_factories.rb
|
|
661
|
+
- test/factories/insights_factories.rb
|
|
662
|
+
- test/jobs/upload_report_job_test.rb
|
|
641
663
|
- test/jobs/insights_full_sync_test.rb
|
|
664
|
+
- test/jobs/insights_resolutions_sync_test.rb
|
|
642
665
|
- test/jobs/insights_rules_sync_test.rb
|
|
643
666
|
- test/jobs/inventory_full_sync_test.rb
|
|
644
|
-
- test/jobs/upload_report_job_test.rb
|
|
645
667
|
- test/test_plugin_helper.rb
|
|
646
668
|
- test/unit/archived_report_generator_test.rb
|
|
647
669
|
- test/unit/fact_helpers_test.rb
|
|
@@ -650,6 +672,8 @@ test_files:
|
|
|
650
672
|
- test/unit/rh_cloud_http_proxy_test.rb
|
|
651
673
|
- test/unit/services/foreman_rh_cloud/branch_info_test.rb
|
|
652
674
|
- test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
|
|
675
|
+
- test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
|
|
676
|
+
- test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
|
|
653
677
|
- test/unit/shell_process_job_test.rb
|
|
654
678
|
- test/unit/slice_generator_test.rb
|
|
655
679
|
- test/unit/tags_generator_test.rb
|