foreman_rh_cloud 1.0.4 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +4 -6
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +33 -7
- data/app/controllers/foreman_rh_cloud/react_controller.rb +11 -0
- data/app/controllers/insights_cloud/tasks_controller.rb +8 -0
- data/app/helpers/foreman_inventory_upload_host_helper.rb +11 -0
- data/app/models/insights_facet.rb +3 -0
- data/app/models/insights_hit.rb +6 -0
- data/app/models/setting/rh_cloud.rb +15 -0
- data/app/overrides/hosts_list.rb +13 -0
- data/app/views/foreman_rh_cloud/react/insights_cloud.html.erb +1 -0
- data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -0
- data/app/views/{foreman_inventory_upload/layouts/react.html.erb → layouts/foreman_rh_cloud/application.html.erb} +2 -2
- data/config/routes.rb +12 -1
- data/db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb +14 -0
- data/db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb +7 -0
- data/lib/foreman_inventory_upload.rb +12 -0
- data/lib/foreman_inventory_upload/async/async_helpers.rb +13 -0
- data/lib/foreman_inventory_upload/async/generate_all_reports_job.rb +8 -0
- data/lib/foreman_inventory_upload/async/shell_process.rb +3 -1
- data/lib/foreman_inventory_upload/generators/archived_report.rb +6 -3
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +56 -0
- data/lib/foreman_inventory_upload/generators/queries.rb +7 -0
- data/lib/foreman_inventory_upload/generators/slice.rb +34 -12
- data/lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb +19 -0
- data/lib/foreman_rh_cloud/engine.rb +33 -5
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud.rb +15 -0
- data/lib/insights_cloud/async/insights_full_sync.rb +92 -0
- data/test/controllers/accounts_controller_test.rb +8 -3
- data/test/controllers/uploads_controller_test.rb +13 -0
- data/test/jobs/insights_full_sync_test.rb +62 -0
- data/test/unit/archived_report_generator_test.rb +1 -0
- data/test/unit/fact_helpers_test.rb +29 -0
- data/test/unit/slice_generator_test.rb +249 -13
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +14 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.js +13 -10
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +6 -3
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js +10 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +16 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +10 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js +15 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap +18 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss +7 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItem/ListItem.js +1 -4
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +8 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js +12 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +22 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +20 -8
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountList.test.js.snap +2 -3
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +20 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +20 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap +8 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/index.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.fixtures.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js +32 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js +30 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherConstants.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcher.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap +38 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcherActions.test.js.snap +14 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss +3 -0
- data/webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js +17 -0
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardActions.js +4 -3
- data/webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardActions.test.js +2 -3
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardIntegration.test.js +2 -1
- data/webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/DashboardSelectors.test.js +3 -2
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js +29 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js +30 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap +38 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap +14 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js +20 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js +26 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js +2 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js +39 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js +16 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js +3 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js +36 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js +7 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js +35 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js +21 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap +25 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap +17 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap +25 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap +9 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap +31 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js +18 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js +17 -0
- data/webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss +28 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +15 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap +13 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss +15 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js +40 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap +61 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js +17 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap +20 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js +18 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js +14 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap +21 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +24 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js +11 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +17 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js +13 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js +12 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap +10 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss +7 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/index.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss +3 -0
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRun.fixtures.js +1 -0
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/ScheduledRun.js +4 -2
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/ScheduledRun.test.js +0 -1
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/__tests__/__snapshots__/ScheduledRun.test.js.snap +0 -2
- data/webpack/ForemanInventoryUpload/Components/ScheduledRun/index.js +12 -1
- data/webpack/ForemanInventoryUpload/Components/TabBody/__tests__/__snapshots__/TabBody.test.js.snap +1 -1
- data/webpack/ForemanInventoryUpload/ForemanInventoryConstants.js +7 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +12 -0
- data/webpack/ForemanInventoryUpload/ForemanInventoryUpload.js +18 -9
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js +4 -4
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js +34 -0
- data/webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js +12 -0
- data/webpack/ForemanInventoryUpload/{ForemanInventoryUpload.test.js → __tests__/ForemanInventoryUpload.test.js} +1 -1
- data/webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap +5 -0
- data/webpack/ForemanInventoryUpload/{__snapshots__ → __tests__/__snapshots__}/ForemanInventoryUpload.test.js.snap +6 -5
- data/webpack/ForemanRhCloudHelpers.js +6 -0
- data/webpack/ForemanRhCloudReducers.js +10 -0
- data/webpack/ForemanRhCloudSelectors.js +5 -0
- data/webpack/ForemanRhCloudTestHelpers.js +6 -0
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +26 -0
- data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +13 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +23 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +6 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js +3 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncReducers.js +3 -0
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +25 -0
- data/webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js +11 -0
- data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap +3 -0
- data/webpack/InsightsCloudSync/index.js +17 -0
- data/webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js +1 -0
- data/webpack/__tests__/ForemanRhCloudHelpers.test.js +11 -0
- data/webpack/__tests__/ForemanRhCloudSelectors.test.js +19 -0
- data/webpack/__tests__/ForemanRhCloudTestHelpers.test.js +10 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap +3 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap +24 -0
- data/webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap +14 -0
- data/webpack/index.js +8 -1
- data/webpack/subscriptions_extension_index.js +8 -0
- metadata +124 -7
- data/app/controllers/foreman_inventory_upload/react_controller.rb +0 -7
- data/webpack/ForemanInventoryUpload/ForemanInventoryUploadSelectors.js +0 -4
@@ -0,0 +1 @@
|
|
1
|
+
export const LAYOUT_CHANGE_ORG = 'LAYOUT_CHANGE_ORG';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
+
import { foremanUrl } from '../ForemanRhCloudHelpers';
|
3
|
+
|
4
|
+
global.URL_PREFIX = 'MY_TEST_URL_PREFIX.example.com';
|
5
|
+
|
6
|
+
const fixtures = {
|
7
|
+
'should return foreman Url': () => foremanUrl('/test_path'),
|
8
|
+
};
|
9
|
+
|
10
|
+
describe('ForemanRhCloud helpers', () =>
|
11
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
+
import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
|
3
|
+
import {
|
4
|
+
selectForemanRhCloud,
|
5
|
+
selectForemanInventoryUpload,
|
6
|
+
selectInsightsCloudSync,
|
7
|
+
} from '../ForemanRhCloudSelectors';
|
8
|
+
|
9
|
+
const state = rhCloudStateWrapper({ inventoryReducersNamespaces: {} });
|
10
|
+
|
11
|
+
const fixtures = {
|
12
|
+
'should return ForemanRhCloud': () => selectForemanRhCloud(state),
|
13
|
+
'should return ForemanInventoryUpload': () =>
|
14
|
+
selectForemanInventoryUpload(state),
|
15
|
+
'should return InsightsCloudSync': () => selectInsightsCloudSync(state),
|
16
|
+
};
|
17
|
+
|
18
|
+
describe('ForemanRhCloud selectors', () =>
|
19
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { testSelectorsSnapshotWithFixtures } from 'react-redux-test-utils';
|
2
|
+
import { rhCloudStateWrapper } from '../ForemanRhCloudTestHelpers';
|
3
|
+
|
4
|
+
const fixtures = {
|
5
|
+
'should return inventory wrapper': () =>
|
6
|
+
rhCloudStateWrapper({ inventoryChildren: null }),
|
7
|
+
};
|
8
|
+
|
9
|
+
describe('ForemanRhCloud helpers', () =>
|
10
|
+
testSelectorsSnapshotWithFixtures(fixtures));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`ForemanRhCloud selectors should return InsightsCloudSync 1`] = `
|
4
|
+
Object {
|
5
|
+
"inventoryReducersNamespaces": Object {},
|
6
|
+
}
|
7
|
+
`;
|
8
|
+
|
9
|
+
exports[`ForemanRhCloud selectors should return ForemanInventoryUpload 1`] = `
|
10
|
+
Object {
|
11
|
+
"inventoryReducersNamespaces": Object {},
|
12
|
+
}
|
13
|
+
`;
|
14
|
+
|
15
|
+
exports[`ForemanRhCloud selectors should return ForemanRhCloud 1`] = `
|
16
|
+
Object {
|
17
|
+
"InsightsCloudSync": Object {
|
18
|
+
"inventoryReducersNamespaces": Object {},
|
19
|
+
},
|
20
|
+
"inventoryUpload": Object {
|
21
|
+
"inventoryReducersNamespaces": Object {},
|
22
|
+
},
|
23
|
+
}
|
24
|
+
`;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
+
|
3
|
+
exports[`ForemanRhCloud helpers should return inventory wrapper 1`] = `
|
4
|
+
Object {
|
5
|
+
"ForemanRhCloud": Object {
|
6
|
+
"InsightsCloudSync": Object {
|
7
|
+
"inventoryChildren": null,
|
8
|
+
},
|
9
|
+
"inventoryUpload": Object {
|
10
|
+
"inventoryChildren": null,
|
11
|
+
},
|
12
|
+
},
|
13
|
+
}
|
14
|
+
`;
|
data/webpack/index.js
CHANGED
@@ -3,8 +3,9 @@
|
|
3
3
|
/* eslint-disable import/extensions */
|
4
4
|
import componentRegistry from 'foremanReact/components/componentRegistry';
|
5
5
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
|
-
import reducers from './
|
6
|
+
import reducers from './ForemanRhCloudReducers';
|
7
7
|
import ForemanInventoryUpload from './ForemanInventoryUpload';
|
8
|
+
import InsightsCloudSync from './InsightsCloudSync';
|
8
9
|
|
9
10
|
// register reducers
|
10
11
|
Object.entries(reducers).forEach(([key, reducer]) =>
|
@@ -16,3 +17,9 @@ componentRegistry.register({
|
|
16
17
|
name: 'ForemanInventoryUpload',
|
17
18
|
type: ForemanInventoryUpload,
|
18
19
|
});
|
20
|
+
|
21
|
+
// register components
|
22
|
+
componentRegistry.register({
|
23
|
+
name: 'InsightsCloudSync',
|
24
|
+
type: InsightsCloudSync,
|
25
|
+
});
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { subscriptionCountListener } from './ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions';
|
2
|
+
|
3
|
+
if (window.location.pathname === '/subscriptions') {
|
4
|
+
window.tfm.store.observeStore(
|
5
|
+
'katello.subscriptions.itemCount',
|
6
|
+
subscriptionCountListener
|
7
|
+
);
|
8
|
+
}
|
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: 1.0.
|
4
|
+
version: 1.0.8
|
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-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -105,13 +105,24 @@ files:
|
|
105
105
|
- README.md
|
106
106
|
- Rakefile
|
107
107
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
108
|
-
- app/controllers/foreman_inventory_upload/react_controller.rb
|
109
108
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
110
109
|
- app/controllers/foreman_inventory_upload/uploads_controller.rb
|
110
|
+
- app/controllers/foreman_rh_cloud/react_controller.rb
|
111
|
+
- app/controllers/insights_cloud/tasks_controller.rb
|
111
112
|
- app/helpers/foreman_inventory_upload_helper.rb
|
112
|
-
- app/
|
113
|
+
- app/helpers/foreman_inventory_upload_host_helper.rb
|
114
|
+
- app/models/insights_facet.rb
|
115
|
+
- app/models/insights_hit.rb
|
116
|
+
- app/models/setting/rh_cloud.rb
|
117
|
+
- app/overrides/hosts_list.rb
|
118
|
+
- app/views/foreman_rh_cloud/react/insights_cloud.html.erb
|
119
|
+
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
120
|
+
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
113
121
|
- config/routes.rb
|
122
|
+
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
123
|
+
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
114
124
|
- lib/foreman_inventory_upload.rb
|
125
|
+
- lib/foreman_inventory_upload/async/async_helpers.rb
|
115
126
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
116
127
|
- lib/foreman_inventory_upload/async/generate_report_job.rb
|
117
128
|
- lib/foreman_inventory_upload/async/progress_output.rb
|
@@ -124,10 +135,13 @@ files:
|
|
124
135
|
- lib/foreman_inventory_upload/generators/metadata.rb
|
125
136
|
- lib/foreman_inventory_upload/generators/queries.rb
|
126
137
|
- lib/foreman_inventory_upload/generators/slice.rb
|
138
|
+
- lib/foreman_inventory_upload/notifications/manifest_import_success_notification_override.rb
|
127
139
|
- lib/foreman_inventory_upload/scripts/uploader.sh.erb
|
128
140
|
- lib/foreman_rh_cloud.rb
|
129
141
|
- lib/foreman_rh_cloud/engine.rb
|
130
142
|
- lib/foreman_rh_cloud/version.rb
|
143
|
+
- lib/insights_cloud.rb
|
144
|
+
- lib/insights_cloud/async/insights_full_sync.rb
|
131
145
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
132
146
|
- lib/tasks/generator.rake
|
133
147
|
- locale/Makefile
|
@@ -139,8 +153,10 @@ files:
|
|
139
153
|
- test/controllers/reports_controller_test.rb
|
140
154
|
- test/controllers/uploads_controller_test.rb
|
141
155
|
- test/factories/inventory_upload_factories.rb
|
156
|
+
- test/jobs/insights_full_sync_test.rb
|
142
157
|
- test/test_plugin_helper.rb
|
143
158
|
- test/unit/archived_report_generator_test.rb
|
159
|
+
- test/unit/fact_helpers_test.rb
|
144
160
|
- test/unit/metadata_generator_test.rb
|
145
161
|
- test/unit/shell_process_job_test.rb
|
146
162
|
- test/unit/slice_generator_test.rb
|
@@ -152,6 +168,11 @@ files:
|
|
152
168
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListHelper.js
|
153
169
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js
|
154
170
|
- webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js
|
171
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/EmptyResults.js
|
172
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/EmptyResults.test.js
|
173
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/__tests__/__snapshots__/EmptyResults.test.js.snap
|
174
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/emptyResults.scss
|
175
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyResults/index.js
|
155
176
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.fixtures.js
|
156
177
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyState.js
|
157
178
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/EmptyState/EmptyStateHelper.js
|
@@ -182,6 +203,7 @@ files:
|
|
182
203
|
- webpack/ForemanInventoryUpload/Components/AccountList/Components/ListItemStatus/listItemStatus.scss
|
183
204
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountList.test.js
|
184
205
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js
|
206
|
+
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
|
185
207
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListIntegration.test.js
|
186
208
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js
|
187
209
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js
|
@@ -191,6 +213,16 @@ files:
|
|
191
213
|
- webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListSelectors.test.js.snap
|
192
214
|
- webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss
|
193
215
|
- webpack/ForemanInventoryUpload/Components/AccountList/index.js
|
216
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.fixtures.js
|
217
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcher.js
|
218
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherActions.js
|
219
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/AutoUploadSwitcherConstants.js
|
220
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcher.test.js
|
221
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/AutoUploadSwitcherActions.test.js
|
222
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcher.test.js.snap
|
223
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/__tests__/__snapshots__/AutoUploadSwitcherActions.test.js.snap
|
224
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/autoUploadSwitcher.scss
|
225
|
+
- webpack/ForemanInventoryUpload/Components/AutoUploadSwitcher/index.js
|
194
226
|
- webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.fixtures.js
|
195
227
|
- webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.js
|
196
228
|
- webpack/ForemanInventoryUpload/Components/Dashboard/Dashboard.stories.js
|
@@ -224,6 +256,41 @@ files:
|
|
224
256
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap
|
225
257
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss
|
226
258
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
259
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
|
260
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
|
261
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
|
262
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
|
263
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
|
264
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
|
265
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
|
266
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
|
267
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
|
268
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
|
269
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
270
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
271
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.fixtures.js
|
272
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilter.js
|
273
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterActions.js
|
274
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterConstants.js
|
275
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterReducer.js
|
276
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/InventoryFilterSelectors.js
|
277
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilter.test.js
|
278
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterActions.test.js
|
279
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterReducer.test.js
|
280
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/InventoryFilterSelectors.test.js
|
281
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilter.test.js.snap
|
282
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterActions.test.js.snap
|
283
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterReducer.test.js.snap
|
284
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/InventoryFilterSelectors.test.js.snap
|
285
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/__snapshots__/integration.test.js.snap
|
286
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/__tests__/integration.test.js
|
287
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/index.js
|
288
|
+
- webpack/ForemanInventoryUpload/Components/InventoryFilter/inventoryFilter.scss
|
289
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
|
290
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/InventorySettings.test.js
|
291
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
292
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
293
|
+
- webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
|
227
294
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
228
295
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
229
296
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
@@ -231,6 +298,28 @@ files:
|
|
231
298
|
- webpack/ForemanInventoryUpload/Components/NavContainer/__tests__/__snapshots__/NavContainer.test.js.snap
|
232
299
|
- webpack/ForemanInventoryUpload/Components/NavContainer/index.js
|
233
300
|
- webpack/ForemanInventoryUpload/Components/NavContainer/navContainer.scss
|
301
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.js
|
302
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/PageHeader.test.js
|
303
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageHeader.test.js.snap
|
304
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/DocsButton.js
|
305
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/DocsButton.test.js
|
306
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/__tests__/__snapshots__/DocsButton.test.js.snap
|
307
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/DocsButton/index.js
|
308
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/HistoryButton.js
|
309
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/HistoryButton.test.js
|
310
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/__tests__/__snapshots__/HistoryButton.test.js.snap
|
311
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/HistoryButton/index.js
|
312
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js
|
313
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/PageDescription.test.js
|
314
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap
|
315
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/index.js
|
316
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/ToolbarButtons.js
|
317
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/ToolbarButtons.test.js
|
318
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/__tests__/__snapshots__/ToolbarButtons.test.js.snap
|
319
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/index.js
|
320
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/components/ToolbarButtons/toolbarButtons.scss
|
321
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/index.js
|
322
|
+
- webpack/ForemanInventoryUpload/Components/PageHeader/pageHeader.scss
|
234
323
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.fixtures.js
|
235
324
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerate.js
|
236
325
|
- webpack/ForemanInventoryUpload/Components/ReportGenerate/ReportGenerateHelper.js
|
@@ -294,15 +383,40 @@ files:
|
|
294
383
|
- webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap
|
295
384
|
- webpack/ForemanInventoryUpload/Components/Terminal/index.js
|
296
385
|
- webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss
|
386
|
+
- webpack/ForemanInventoryUpload/ForemanInventoryConstants.js
|
387
|
+
- webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js
|
297
388
|
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.js
|
298
|
-
- webpack/ForemanInventoryUpload/ForemanInventoryUpload.test.js
|
299
389
|
- webpack/ForemanInventoryUpload/ForemanInventoryUploadReducers.js
|
300
|
-
- webpack/ForemanInventoryUpload/
|
301
|
-
- webpack/ForemanInventoryUpload/
|
390
|
+
- webpack/ForemanInventoryUpload/SubscriptionsPageExtension/SubscriptionsPageExtensionActions.js
|
391
|
+
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryHelpers.test.js
|
392
|
+
- webpack/ForemanInventoryUpload/__tests__/ForemanInventoryUpload.test.js
|
393
|
+
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryHelpers.test.js.snap
|
394
|
+
- webpack/ForemanInventoryUpload/__tests__/__snapshots__/ForemanInventoryUpload.test.js.snap
|
302
395
|
- webpack/ForemanInventoryUpload/index.js
|
396
|
+
- webpack/ForemanRhCloudHelpers.js
|
397
|
+
- webpack/ForemanRhCloudReducers.js
|
398
|
+
- webpack/ForemanRhCloudSelectors.js
|
399
|
+
- webpack/ForemanRhCloudTestHelpers.js
|
400
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
401
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
402
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
403
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
|
404
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncHelpers.js
|
405
|
+
- webpack/InsightsCloudSync/InsightsCloudSyncReducers.js
|
406
|
+
- webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap
|
407
|
+
- webpack/InsightsCloudSync/__tests__/InsightsCloudSyncHelpers.test.js
|
408
|
+
- webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncHelpers.test.js.snap
|
409
|
+
- webpack/InsightsCloudSync/index.js
|
303
410
|
- webpack/__mocks__/foremanReact/API.js
|
304
411
|
- webpack/__mocks__/foremanReact/common/I18n.js
|
305
412
|
- webpack/__mocks__/foremanReact/common/helpers.js
|
413
|
+
- webpack/__mocks__/foremanReact/components/Layout/LayoutConstants.js
|
414
|
+
- webpack/__tests__/ForemanRhCloudHelpers.test.js
|
415
|
+
- webpack/__tests__/ForemanRhCloudSelectors.test.js
|
416
|
+
- webpack/__tests__/ForemanRhCloudTestHelpers.test.js
|
417
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
|
418
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
|
419
|
+
- webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
|
306
420
|
- webpack/index.js
|
307
421
|
- webpack/stories/ForemanInventoryUploadReducers.js
|
308
422
|
- webpack/stories/configureStore.js
|
@@ -310,6 +424,7 @@ files:
|
|
310
424
|
- webpack/stories/decorators/withCardsDecorator.js
|
311
425
|
- webpack/stories/index.js
|
312
426
|
- webpack/stories/index.scss
|
427
|
+
- webpack/subscriptions_extension_index.js
|
313
428
|
- webpack/test_setup.js
|
314
429
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
315
430
|
licenses:
|
@@ -339,8 +454,10 @@ test_files:
|
|
339
454
|
- test/controllers/accounts_controller_test.rb
|
340
455
|
- test/controllers/reports_controller_test.rb
|
341
456
|
- test/test_plugin_helper.rb
|
457
|
+
- test/jobs/insights_full_sync_test.rb
|
342
458
|
- test/factories/inventory_upload_factories.rb
|
343
459
|
- test/unit/shell_process_job_test.rb
|
344
460
|
- test/unit/metadata_generator_test.rb
|
461
|
+
- test/unit/fact_helpers_test.rb
|
345
462
|
- test/unit/archived_report_generator_test.rb
|
346
463
|
- test/unit/slice_generator_test.rb
|