foreman_rh_cloud 0.9.9 → 0.9.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -0
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +3 -0
- data/app/controllers/foreman_inventory_upload/tasks_controller.rb +25 -0
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +18 -0
- data/app/controllers/insights_cloud/hits_controller.rb +17 -0
- data/app/controllers/insights_cloud/settings_controller.rb +24 -0
- data/app/controllers/insights_cloud/tasks_controller.rb +1 -2
- data/app/helpers/foreman_inventory_upload_host_helper.rb +10 -2
- data/app/models/concerns/rh_cloud_host.rb +15 -0
- data/app/models/insights_facet.rb +5 -1
- data/app/models/insights_hit.rb +1 -1
- data/app/models/inventory_sync/inventory_status.rb +30 -0
- data/app/models/setting/rh_cloud.rb +3 -0
- data/app/overrides/hosts_list.rb +1 -1
- data/app/services/foreman_rh_cloud/cloud_auth.rb +28 -0
- data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -1
- data/app/views/hosts/_insights_tab.html.erb +15 -0
- data/config/routes.rb +6 -0
- data/db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb +5 -0
- data/db/migrate/20201007115752_add_hits_count_to_insights_facets_table.foreman_rh_cloud.rb +5 -0
- data/db/migrate/20201007121540_setup_hits_count_cache.foreman_rh_cloud.rb +10 -0
- data/lib/foreman_inventory_upload.rb +4 -0
- data/lib/foreman_inventory_upload/async/generate_report_job.rb +1 -1
- data/lib/foreman_inventory_upload/async/shell_process.rb +15 -9
- data/lib/foreman_inventory_upload/async/upload_report_job.rb +21 -9
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +36 -1
- data/lib/foreman_inventory_upload/generators/json_stream.rb +7 -2
- data/lib/foreman_inventory_upload/generators/metadata.rb +3 -0
- data/lib/foreman_inventory_upload/generators/queries.rb +4 -4
- data/lib/foreman_inventory_upload/generators/slice.rb +51 -27
- data/lib/foreman_rh_cloud.rb +67 -0
- data/lib/foreman_rh_cloud/engine.rb +20 -3
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud.rb +8 -8
- data/lib/insights_cloud/async/insights_full_sync.rb +19 -31
- data/lib/insights_cloud/async/insights_scheduled_sync.rb +23 -0
- data/lib/inventory_sync/async/host_result.rb +50 -0
- data/lib/inventory_sync/async/inventory_full_sync.rb +80 -0
- data/lib/tasks/insights.rake +15 -0
- data/lib/tasks/rh_cloud_inventory.rake +37 -0
- data/package.json +3 -1
- data/test/controllers/insights_sync/settings_controller_test.rb +30 -0
- data/test/factories/insights_factories.rb +31 -0
- data/test/jobs/insights_full_sync_test.rb +4 -2
- data/test/jobs/inventory_full_sync_test.rb +91 -0
- data/test/jobs/upload_report_job_test.rb +34 -0
- data/test/unit/fact_helpers_test.rb +22 -0
- data/test/unit/insights_facet_test.rb +23 -0
- data/test/unit/metadata_generator_test.rb +2 -0
- data/test/unit/rh_cloud_http_proxy_test.rb +52 -0
- data/test/unit/slice_generator_test.rb +144 -8
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +16 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +22 -17
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +18 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +8 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +7 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +12 -6
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +9 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +20 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +12 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +6 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.fixtures.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +10 -11
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherConstants.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js +12 -2
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcherActions.test.js.snap +17 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.fixtures.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.js +30 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions.js +29 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherConstants.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcher.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcherActions.test.js +21 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcher.test.js.snap +38 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcherActions.test.js.snap +31 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap +41 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js +38 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss +3 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js +20 -0
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +5 -1
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +1 -0
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +15 -13
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js +2 -1
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss +3 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +10 -11
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js +0 -2
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +12 -2
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap +18 -1
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +9 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +4 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +2 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.fixtures.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js +29 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js +29 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherConstants.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcher.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcherActions.test.js +21 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcher.test.js.snap +38 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcherActions.test.js.snap +31 -0
- data/webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/index.js +20 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +3 -3
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js +58 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +57 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +36 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +31 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js +9 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +26 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js +36 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap +26 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +98 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +18 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap +18 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +63 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js +41 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss +20 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js +22 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +6 -1
- data/webpack/ForemanInventoryUpload/Components/StatusChart/StatusChart.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/StatusChart/__tests__/__snapshots__/StatusChart.test.js.snap +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabContainer/tabContainer.scss +1 -1
- data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js +6 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.js +2 -4
- data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +3 -1
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +8 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +2 -0
- data/webpack/ForemanRhCloudPages.js +9 -0
- data/webpack/ForemanRhCloudReducers.js +2 -0
- data/webpack/ForemanRhCloudSelectors.js +5 -0
- data/webpack/ForemanRhCloudTestHelpers.js +17 -3
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js +33 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +57 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +4 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +24 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js +6 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js +18 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +62 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +33 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js +21 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap +15 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +65 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +19 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap +9 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/index.js +21 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss +16 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js +1 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js +45 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js +17 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap +38 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js +1 -0
- data/webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss +3 -0
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +32 -28
- data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +10 -11
- data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +0 -2
- data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +7 -2
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +49 -44
- data/webpack/InsightsCloudSync/index.js +2 -1
- data/webpack/InsightsHostDetailsTab/InsightsTab.js +64 -0
- data/webpack/InsightsHostDetailsTab/InsightsTab.scss +86 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabActions.js +31 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabConstants.js +2 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabReducer.js +19 -0
- data/webpack/InsightsHostDetailsTab/InsightsTabSelectors.js +3 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js +25 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js +13 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +19 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js +17 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js +26 -0
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js +13 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap +30 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap +58 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap +34 -0
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap +20 -0
- data/webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js +69 -0
- data/webpack/InsightsHostDetailsTab/components/ListItem/index.js +1 -0
- data/webpack/InsightsHostDetailsTab/index.js +20 -0
- data/webpack/__mocks__/foremanReact/constants.js +5 -0
- data/webpack/__mocks__/foremanReact/redux/actions/toasts.js +8 -0
- data/webpack/__tests__/ForemanRhCloudSelectors.test.js +4 -1
- data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +12 -2
- data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +10 -9
- data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +27 -2
- data/webpack/index.js +2 -12
- data/webpack/stories/decorators/withCardsDecorator.js +1 -1
- metadata +120 -12
- data/lib/tasks/generator.rake +0 -29
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
@@ -1,13 +1,38 @@
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
2
|
|
3
|
+
exports[`ForemanRhCloud helpers should return insights wrapper 1`] = `
|
4
|
+
Object {
|
5
|
+
"ForemanRhCloud": Object {
|
6
|
+
"InsightsCloudSync": Object {
|
7
|
+
"insightsChild": Object {},
|
8
|
+
},
|
9
|
+
"hostInsights": Object {},
|
10
|
+
"inventoryUpload": Object {},
|
11
|
+
},
|
12
|
+
}
|
13
|
+
`;
|
14
|
+
|
3
15
|
exports[`ForemanRhCloud helpers should return inventory wrapper 1`] = `
|
16
|
+
Object {
|
17
|
+
"ForemanRhCloud": Object {
|
18
|
+
"InsightsCloudSync": Object {},
|
19
|
+
"hostInsights": Object {},
|
20
|
+
"inventoryUpload": Object {
|
21
|
+
"inventoryChild": Object {},
|
22
|
+
},
|
23
|
+
},
|
24
|
+
}
|
25
|
+
`;
|
26
|
+
|
27
|
+
exports[`ForemanRhCloud helpers should return rhCloud wrapper 1`] = `
|
4
28
|
Object {
|
5
29
|
"ForemanRhCloud": Object {
|
6
30
|
"InsightsCloudSync": Object {
|
7
|
-
"
|
31
|
+
"insightsChild": Object {},
|
8
32
|
},
|
33
|
+
"hostInsights": Object {},
|
9
34
|
"inventoryUpload": Object {
|
10
|
-
"
|
35
|
+
"inventoryChild": Object {},
|
11
36
|
},
|
12
37
|
},
|
13
38
|
}
|
data/webpack/index.js
CHANGED
@@ -4,8 +4,7 @@
|
|
4
4
|
import componentRegistry from 'foremanReact/components/componentRegistry';
|
5
5
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
6
|
import reducers from './ForemanRhCloudReducers';
|
7
|
-
import
|
8
|
-
import InsightsCloudSync from './InsightsCloudSync';
|
7
|
+
import pages from './ForemanRhCloudPages';
|
9
8
|
|
10
9
|
// register reducers
|
11
10
|
Object.entries(reducers).forEach(([key, reducer]) =>
|
@@ -13,13 +12,4 @@ Object.entries(reducers).forEach(([key, reducer]) =>
|
|
13
12
|
);
|
14
13
|
|
15
14
|
// register components
|
16
|
-
componentRegistry.register(
|
17
|
-
name: 'ForemanInventoryUpload',
|
18
|
-
type: ForemanInventoryUpload,
|
19
|
-
});
|
20
|
-
|
21
|
-
// register components
|
22
|
-
componentRegistry.register({
|
23
|
-
name: 'InsightsCloudSync',
|
24
|
-
type: InsightsCloudSync,
|
25
|
-
});
|
15
|
+
pages.forEach(page => componentRegistry.register(page));
|
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: 0.9.
|
4
|
+
version: 0.9.13.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: 2020-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -78,21 +78,31 @@ files:
|
|
78
78
|
- Rakefile
|
79
79
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
80
80
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
81
|
+
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
81
82
|
- app/controllers/foreman_inventory_upload/uploads_controller.rb
|
82
83
|
- app/controllers/foreman_rh_cloud/react_controller.rb
|
84
|
+
- app/controllers/insights_cloud/hits_controller.rb
|
85
|
+
- app/controllers/insights_cloud/settings_controller.rb
|
83
86
|
- app/controllers/insights_cloud/tasks_controller.rb
|
84
87
|
- app/helpers/foreman_inventory_upload_helper.rb
|
85
88
|
- app/helpers/foreman_inventory_upload_host_helper.rb
|
89
|
+
- app/models/concerns/rh_cloud_host.rb
|
86
90
|
- app/models/insights_facet.rb
|
87
91
|
- app/models/insights_hit.rb
|
92
|
+
- app/models/inventory_sync/inventory_status.rb
|
88
93
|
- app/models/setting/rh_cloud.rb
|
89
94
|
- app/overrides/hosts_list.rb
|
95
|
+
- app/services/foreman_rh_cloud/cloud_auth.rb
|
90
96
|
- app/views/foreman_rh_cloud/react/insights_cloud.html.erb
|
91
97
|
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
98
|
+
- app/views/hosts/_insights_tab.html.erb
|
92
99
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
93
100
|
- config/routes.rb
|
94
101
|
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
95
102
|
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
103
|
+
- db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
|
104
|
+
- db/migrate/20201007115752_add_hits_count_to_insights_facets_table.foreman_rh_cloud.rb
|
105
|
+
- db/migrate/20201007121540_setup_hits_count_cache.foreman_rh_cloud.rb
|
96
106
|
- lib/foreman_inventory_upload.rb
|
97
107
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
98
108
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
@@ -114,22 +124,32 @@ files:
|
|
114
124
|
- lib/foreman_rh_cloud/version.rb
|
115
125
|
- lib/insights_cloud.rb
|
116
126
|
- lib/insights_cloud/async/insights_full_sync.rb
|
127
|
+
- lib/insights_cloud/async/insights_scheduled_sync.rb
|
128
|
+
- lib/inventory_sync/async/host_result.rb
|
129
|
+
- lib/inventory_sync/async/inventory_full_sync.rb
|
117
130
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
118
|
-
- lib/tasks/
|
131
|
+
- lib/tasks/insights.rake
|
132
|
+
- lib/tasks/rh_cloud_inventory.rake
|
119
133
|
- locale/Makefile
|
120
134
|
- locale/en/foreman_rh_cloud.po
|
121
135
|
- locale/foreman_rh_cloud.pot
|
122
136
|
- locale/gemspec.rb
|
123
137
|
- package.json
|
124
138
|
- test/controllers/accounts_controller_test.rb
|
139
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
125
140
|
- test/controllers/reports_controller_test.rb
|
126
141
|
- test/controllers/uploads_controller_test.rb
|
142
|
+
- test/factories/insights_factories.rb
|
127
143
|
- test/factories/inventory_upload_factories.rb
|
128
144
|
- test/jobs/insights_full_sync_test.rb
|
145
|
+
- test/jobs/inventory_full_sync_test.rb
|
146
|
+
- test/jobs/upload_report_job_test.rb
|
129
147
|
- test/test_plugin_helper.rb
|
130
148
|
- test/unit/archived_report_generator_test.rb
|
131
149
|
- test/unit/fact_helpers_test.rb
|
150
|
+
- test/unit/insights_facet_test.rb
|
132
151
|
- test/unit/metadata_generator_test.rb
|
152
|
+
- test/unit/rh_cloud_http_proxy_test.rb
|
133
153
|
- test/unit/shell_process_job_test.rb
|
134
154
|
- test/unit/slice_generator_test.rb
|
135
155
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js
|
@@ -214,6 +234,18 @@ files:
|
|
214
234
|
- webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/DashboardSelectors.test.js.snap
|
215
235
|
- webpack/ForemanInventoryUpload/Components/Dashboard/dashboard.scss
|
216
236
|
- webpack/ForemanInventoryUpload/Components/Dashboard/index.js
|
237
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.fixtures.js
|
238
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.js
|
239
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions.js
|
240
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherConstants.js
|
241
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcher.test.js
|
242
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcherActions.test.js
|
243
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcher.test.js.snap
|
244
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcherActions.test.js.snap
|
245
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap
|
246
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js
|
247
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss
|
248
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js
|
217
249
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.fixtures.js
|
218
250
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
|
219
251
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownloadHelper.js
|
@@ -230,13 +262,13 @@ files:
|
|
230
262
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
231
263
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
|
232
264
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
|
265
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss
|
233
266
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
|
234
267
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
|
235
268
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
|
236
269
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
|
237
270
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
|
238
271
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
|
239
|
-
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
|
240
272
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
|
241
273
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
242
274
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
@@ -263,6 +295,15 @@ files:
|
|
263
295
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
264
296
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
265
297
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
|
298
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.fixtures.js
|
299
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js
|
300
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js
|
301
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherConstants.js
|
302
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcher.test.js
|
303
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcherActions.test.js
|
304
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcher.test.js.snap
|
305
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcherActions.test.js.snap
|
306
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/index.js
|
266
307
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
267
308
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
268
309
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
@@ -285,6 +326,24 @@ files:
|
|
285
326
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
|
286
327
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
|
287
328
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
329
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButton.js
|
330
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js
|
331
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js
|
332
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js
|
333
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonSelectors.js
|
334
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButton.test.js
|
335
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js
|
336
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonFixtures.js
|
337
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js
|
338
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonSelectors.test.js
|
339
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButton.test.js.snap
|
340
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap
|
341
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap
|
342
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonSelectors.test.js.snap
|
343
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js
|
344
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
|
345
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/modal.scss
|
346
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/index.js
|
288
347
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
|
289
348
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
|
290
349
|
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
|
@@ -366,9 +425,31 @@ files:
|
|
366
425
|
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
367
426
|
- webpack/ForemanInventoryUpload/index.js
|
368
427
|
- webpack/ForemanRhCloudHelpers.js
|
428
|
+
- webpack/ForemanRhCloudPages.js
|
369
429
|
- webpack/ForemanRhCloudReducers.js
|
370
430
|
- webpack/ForemanRhCloudSelectors.js
|
371
431
|
- webpack/ForemanRhCloudTestHelpers.js
|
432
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettings.js
|
433
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js
|
434
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js
|
435
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js
|
436
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsSelectors.js
|
437
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettings.test.js
|
438
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js
|
439
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js
|
440
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsSelectors.test.js
|
441
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettings.test.js.snap
|
442
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap
|
443
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap
|
444
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsSelectors.test.js.snap
|
445
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/index.js
|
446
|
+
- webpack/InsightsCloudSync/Components/InsightsSettings/insightsSettings.scss
|
447
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.fixtures.js
|
448
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/InsightsSyncSwitcher.js
|
449
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/InsightsSyncSwitcher.test.js
|
450
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/__tests__/__snapshots__/InsightsSyncSwitcher.test.js.snap
|
451
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/index.js
|
452
|
+
- webpack/InsightsCloudSync/Components/InsightsSyncSwitcher/insightsSyncSwitcher.scss
|
372
453
|
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
373
454
|
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
374
455
|
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
@@ -379,10 +460,31 @@ files:
|
|
379
460
|
- webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
|
380
461
|
- webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
|
381
462
|
- webpack/InsightsCloudSync/index.js
|
463
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.js
|
464
|
+
- webpack/InsightsHostDetailsTab/InsightsTab.scss
|
465
|
+
- webpack/InsightsHostDetailsTab/InsightsTabActions.js
|
466
|
+
- webpack/InsightsHostDetailsTab/InsightsTabConstants.js
|
467
|
+
- webpack/InsightsHostDetailsTab/InsightsTabReducer.js
|
468
|
+
- webpack/InsightsHostDetailsTab/InsightsTabSelectors.js
|
469
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.fixtures.js
|
470
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTab.test.js
|
471
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js
|
472
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabIntegration.test.js
|
473
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js
|
474
|
+
- webpack/InsightsHostDetailsTab/__tests__/InsightsTabSelectors.test.js
|
475
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap
|
476
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap
|
477
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap
|
478
|
+
- webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabSelectors.test.js.snap
|
479
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/ListItem.js
|
480
|
+
- webpack/InsightsHostDetailsTab/components/ListItem/index.js
|
481
|
+
- webpack/InsightsHostDetailsTab/index.js
|
382
482
|
- webpack/__mocks__/foremanReact/API.js
|
383
483
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
384
484
|
- webpack/__mocks__/foremanReact/common/helpers.js
|
385
485
|
- webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
|
486
|
+
- webpack/__mocks__/foremanReact/constants.js
|
487
|
+
- webpack/__mocks__/foremanReact/redux/actions/toasts.js
|
386
488
|
- webpack/__tests__/ForemanRhCloudHelpers.test.js
|
387
489
|
- webpack/__tests__/ForemanRhCloudSelectors.test.js
|
388
490
|
- webpack/__tests__/ForemanRhCloudTestHelpers.test.js
|
@@ -417,19 +519,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
417
519
|
- !ruby/object:Gem::Version
|
418
520
|
version: '0'
|
419
521
|
requirements: []
|
420
|
-
rubygems_version: 3.0.
|
522
|
+
rubygems_version: 3.0.8
|
421
523
|
signing_key:
|
422
524
|
specification_version: 4
|
423
525
|
summary: Summary of ForemanRhCloud.
|
424
526
|
test_files:
|
425
|
-
- test/controllers/uploads_controller_test.rb
|
426
|
-
- test/controllers/accounts_controller_test.rb
|
427
|
-
- test/controllers/reports_controller_test.rb
|
428
527
|
- test/test_plugin_helper.rb
|
429
|
-
- test/jobs/insights_full_sync_test.rb
|
430
528
|
- test/factories/inventory_upload_factories.rb
|
431
|
-
- test/
|
529
|
+
- test/factories/insights_factories.rb
|
530
|
+
- test/controllers/reports_controller_test.rb
|
531
|
+
- test/controllers/uploads_controller_test.rb
|
532
|
+
- test/controllers/accounts_controller_test.rb
|
533
|
+
- test/controllers/insights_sync/settings_controller_test.rb
|
534
|
+
- test/unit/slice_generator_test.rb
|
432
535
|
- test/unit/metadata_generator_test.rb
|
433
|
-
- test/unit/
|
536
|
+
- test/unit/rh_cloud_http_proxy_test.rb
|
537
|
+
- test/unit/shell_process_job_test.rb
|
538
|
+
- test/unit/insights_facet_test.rb
|
434
539
|
- test/unit/archived_report_generator_test.rb
|
435
|
-
- test/unit/
|
540
|
+
- test/unit/fact_helpers_test.rb
|
541
|
+
- test/jobs/inventory_full_sync_test.rb
|
542
|
+
- test/jobs/insights_full_sync_test.rb
|
543
|
+
- test/jobs/upload_report_job_test.rb
|
data/lib/tasks/generator.rake
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'tempfile'
|
2
|
-
|
3
|
-
namespace :foreman_inventory_upload do
|
4
|
-
namespace :report do
|
5
|
-
desc 'Generate inventory report to be sent to Red Hat cloud'
|
6
|
-
task generate: :environment do
|
7
|
-
portal_user = ENV['portal_user']
|
8
|
-
organizations = [ENV['organization_id']]
|
9
|
-
base_folder = ENV['target'] || Dir.pwd
|
10
|
-
|
11
|
-
unless portal_user || organizations.empty?
|
12
|
-
puts "Must specify either portal_user or organization_id"
|
13
|
-
end
|
14
|
-
|
15
|
-
if portal_user
|
16
|
-
puts "Generating report for all organizations associated with #{portal_user}"
|
17
|
-
base_folder = File.join(base_folder, portal_user)
|
18
|
-
organizations = ForemanInventoryUpload::Generators::Queries.organizations_for_user(portal_user).pluck(:id)
|
19
|
-
end
|
20
|
-
|
21
|
-
organizations.each do |organization|
|
22
|
-
target = File.join(base_folder, ForemanInventoryUpload.facts_archive_name(organization))
|
23
|
-
archived_report_generator = ForemanInventoryUpload::Generators::ArchivedReport.new(target, Logger.new(STDOUT))
|
24
|
-
archived_report_generator.render(organization: organization)
|
25
|
-
puts "Successfully generated #{target} for organization id #{organization}"
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
DELETED
File without changes
|