foreman_rh_cloud 2.0.12 → 2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/app/controllers/foreman_inventory_upload/accounts_controller.rb +2 -0
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +18 -0
- data/app/helpers/foreman_inventory_upload_host_helper.rb +2 -3
- data/app/models/concerns/rh_cloud_host.rb +4 -1
- data/app/models/insights_hit.rb +1 -1
- data/app/models/setting/rh_cloud.rb +5 -3
- 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/insights_cloud.html.erb +1 -6
- data/app/views/foreman_rh_cloud/react/inventory_upload.html.erb +1 -1
- data/app/views/hosts/_insights_tab.html.erb +1 -7
- data/app/views/layouts/foreman_rh_cloud/application.html.erb +0 -1
- data/config/Gemfile.lock.gh_test +815 -0
- data/config/database.yml.example +17 -0
- data/config/package-lock.json.gh_test +36317 -0
- data/config/routes.rb +2 -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 +1 -1
- data/lib/foreman_inventory_upload/generators/archived_report.rb +1 -1
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +35 -0
- data/lib/foreman_inventory_upload/generators/json_stream.rb +7 -2
- data/lib/foreman_inventory_upload/generators/queries.rb +2 -0
- data/lib/foreman_inventory_upload/generators/slice.rb +27 -25
- data/lib/foreman_rh_cloud.rb +2 -1
- data/lib/foreman_rh_cloud/engine.rb +3 -3
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud/async/insights_full_sync.rb +4 -25
- data/lib/inventory_sync/async/inventory_full_sync.rb +2 -23
- data/lib/tasks/rh_cloud_inventory.rake +23 -0
- data/package.json +1 -1
- data/test/unit/fact_helpers_test.rb +22 -0
- data/test/unit/insights_facet_test.rb +7 -0
- data/test/unit/slice_generator_test.rb +142 -2
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountList.fixtures.js +14 -1
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListActions.js +22 -18
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListReducer.js +16 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/AccountListSelectors.js +6 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListActions.test.js +7 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListReducer.test.js +12 -8
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListSelectors.test.js +9 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListActions.test.js.snap +19 -0
- data/webpack/ForemanInventoryUpload/Components/AccountList/__tests__/__snapshots__/AccountListReducer.test.js.snap +11 -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 +36 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss +3 -0
- data/webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js +20 -0
- 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/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/components/SyncButton/SyncButton.js +8 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +9 -11
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonConstants.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonReducer.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonActions.test.js +18 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/SyncButtonReducer.test.js +1 -8
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonActions.test.js.snap +62 -0
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/SyncButtonReducer.test.js.snap +0 -7
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Modal.js +2 -2
- data/webpack/ForemanInventoryUpload/Components/TabHeader/TabHeader.js +6 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.js +2 -4
- data/webpack/ForemanInventoryUpload/ForemanInventoryHelpers.js +8 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsActions.js +17 -20
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsConstants.js +0 -6
- data/webpack/InsightsCloudSync/Components/InsightsSettings/InsightsSettingsReducer.js +0 -4
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsActions.test.js +16 -0
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/InsightsSettingsReducer.test.js +1 -24
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsActions.test.js.snap +38 -4
- data/webpack/InsightsCloudSync/Components/InsightsSettings/__tests__/__snapshots__/InsightsSettingsReducer.test.js.snap +0 -14
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +3 -5
- data/webpack/InsightsCloudSync/InsightsCloudSync.test.js +1 -3
- data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +10 -11
- data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +0 -2
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +1 -1
- data/webpack/InsightsHostDetailsTab/InsightsTab.js +8 -6
- data/webpack/InsightsHostDetailsTab/InsightsTab.scss +2 -2
- data/webpack/InsightsHostDetailsTab/InsightsTabActions.js +9 -8
- data/webpack/InsightsHostDetailsTab/InsightsTabConstants.js +0 -1
- data/webpack/InsightsHostDetailsTab/InsightsTabReducer.js +2 -9
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabActions.test.js +7 -1
- data/webpack/InsightsHostDetailsTab/__tests__/InsightsTabReducer.test.js +0 -9
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTab.test.js.snap +26 -22
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabActions.test.js.snap +40 -2
- data/webpack/InsightsHostDetailsTab/__tests__/__snapshots__/InsightsTabReducer.test.js.snap +0 -7
- metadata +30 -3
- data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss +0 -0
@@ -1,9 +1,7 @@
|
|
1
1
|
import API from 'foremanReact/API';
|
2
|
+
import { addToast } from 'foremanReact/redux/actions/toasts';
|
2
3
|
import { insightsCloudUrl } from './InsightsCloudSyncHelpers';
|
3
|
-
import {
|
4
|
-
INSIGHTS_CLOUD_SYNC_SUCCESS,
|
5
|
-
INSIGHTS_CLOUD_SYNC_FAILURE,
|
6
|
-
} from './InsightsCloudSyncConstants';
|
4
|
+
import { INSIGHTS_CLOUD_SYNC_SUCCESS } from './InsightsCloudSyncConstants';
|
7
5
|
|
8
6
|
export const syncInsights = () => async dispatch => {
|
9
7
|
try {
|
@@ -12,12 +10,13 @@ export const syncInsights = () => async dispatch => {
|
|
12
10
|
type: INSIGHTS_CLOUD_SYNC_SUCCESS,
|
13
11
|
payload: {},
|
14
12
|
});
|
15
|
-
} catch (
|
16
|
-
dispatch(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
13
|
+
} catch ({ message }) {
|
14
|
+
dispatch(
|
15
|
+
addToast({
|
16
|
+
sticky: true,
|
17
|
+
type: 'error',
|
18
|
+
message,
|
19
|
+
})
|
20
|
+
);
|
22
21
|
}
|
23
22
|
};
|
@@ -1,6 +1,4 @@
|
|
1
1
|
import { translate as __ } from 'foremanReact/common/I18n';
|
2
2
|
|
3
3
|
export const INSIGHTS_CLOUD_SYNC_SUCCESS = 'INSIGHTS_CLOUD_SYNC_SUCCESS';
|
4
|
-
export const INSIGHTS_CLOUD_SYNC_FAILURE = 'INSIGHTS_CLOUD_SYNC_FAILURE';
|
5
|
-
|
6
4
|
export const INSIGHTS_SYNC_PAGE_TITLE = __('Red Hat Insights cloud sync');
|
@@ -40,12 +40,14 @@ class InsightsHostDetailsTab extends React.Component {
|
|
40
40
|
)
|
41
41
|
);
|
42
42
|
return (
|
43
|
-
<
|
44
|
-
<Grid.
|
45
|
-
<
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
<div id="host_details_insights_tab">
|
44
|
+
<Grid.Row>
|
45
|
+
<Grid.Col xs={12}>
|
46
|
+
<h2>Recommendations</h2>
|
47
|
+
<ListView id="hits_list">{items}</ListView>
|
48
|
+
</Grid.Col>
|
49
|
+
</Grid.Row>
|
50
|
+
</div>
|
49
51
|
);
|
50
52
|
}
|
51
53
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
#host_details_insights_tab {
|
2
2
|
#btn_toolbar {
|
3
3
|
float: right;
|
4
4
|
}
|
@@ -77,7 +77,7 @@
|
|
77
77
|
}
|
78
78
|
|
79
79
|
&::-webkit-scrollbar-thumb {
|
80
|
-
background: #
|
80
|
+
background: #222;
|
81
81
|
border-radius: 6px;
|
82
82
|
border: 3px solid transparent;
|
83
83
|
background-clip: content-box;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import API from 'foremanReact/API';
|
2
|
+
import { addToast } from 'foremanReact/redux/actions/toasts';
|
2
3
|
import { insightsCloudUrl } from '../InsightsCloudSync/InsightsCloudSyncHelpers';
|
3
4
|
import {
|
4
5
|
INSIGHTS_HITS_REQUEST,
|
5
6
|
INSIGHTS_HITS_SUCCESS,
|
6
|
-
INSIGHTS_HITS_FAILURE,
|
7
7
|
} from './InsightsTabConstants';
|
8
8
|
|
9
9
|
export const fetchHits = hostID => async dispatch => {
|
@@ -19,12 +19,13 @@ export const fetchHits = hostID => async dispatch => {
|
|
19
19
|
type: INSIGHTS_HITS_SUCCESS,
|
20
20
|
payload: { hits },
|
21
21
|
});
|
22
|
-
} catch (
|
23
|
-
dispatch(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
} catch ({ message }) {
|
23
|
+
dispatch(
|
24
|
+
addToast({
|
25
|
+
sticky: true,
|
26
|
+
type: 'error',
|
27
|
+
message,
|
28
|
+
})
|
29
|
+
);
|
29
30
|
}
|
30
31
|
};
|
@@ -1,25 +1,18 @@
|
|
1
1
|
import Immutable from 'seamless-immutable';
|
2
|
-
import {
|
3
|
-
INSIGHTS_HITS_SUCCESS,
|
4
|
-
INSIGHTS_HITS_FAILURE,
|
5
|
-
} from './InsightsTabConstants';
|
2
|
+
import { INSIGHTS_HITS_SUCCESS } from './InsightsTabConstants';
|
6
3
|
|
7
4
|
const initialState = Immutable({
|
8
5
|
hits: [],
|
9
6
|
});
|
10
7
|
|
11
8
|
export default (state = initialState, action) => {
|
12
|
-
const { payload: { hits
|
9
|
+
const { payload: { hits } = {} } = action;
|
13
10
|
|
14
11
|
switch (action.type) {
|
15
12
|
case INSIGHTS_HITS_SUCCESS:
|
16
13
|
return state.merge({
|
17
14
|
hits,
|
18
15
|
});
|
19
|
-
case INSIGHTS_HITS_FAILURE:
|
20
|
-
return state.merge({
|
21
|
-
error,
|
22
|
-
});
|
23
16
|
default:
|
24
17
|
return state;
|
25
18
|
}
|
@@ -4,10 +4,16 @@ import { fetchHits } from '../InsightsTabActions';
|
|
4
4
|
import { hostID, hits } from './InsightsTab.fixtures';
|
5
5
|
|
6
6
|
jest.mock('foremanReact/API');
|
7
|
-
API.get.mockImplementation(async () => hits);
|
7
|
+
API.get.mockImplementation(async () => ({ data: { hits } }));
|
8
8
|
|
9
9
|
const fixtures = {
|
10
10
|
'should fetchHits': () => fetchHits(hostID),
|
11
|
+
'should fetchHits with error': () => {
|
12
|
+
API.get.mockImplementationOnce(() =>
|
13
|
+
Promise.reject(new Error('Network error!'))
|
14
|
+
);
|
15
|
+
return fetchHits(hostID);
|
16
|
+
},
|
11
17
|
};
|
12
18
|
|
13
19
|
describe('InsightsTab actions', () => testActionSnapshotWithFixtures(fixtures));
|
@@ -4,7 +4,6 @@ import { hits } from './InsightsTab.fixtures';
|
|
4
4
|
import {
|
5
5
|
INSIGHTS_HITS_REQUEST,
|
6
6
|
INSIGHTS_HITS_SUCCESS,
|
7
|
-
INSIGHTS_HITS_FAILURE,
|
8
7
|
} from '../InsightsTabConstants';
|
9
8
|
|
10
9
|
const fixtures = {
|
@@ -21,14 +20,6 @@ const fixtures = {
|
|
21
20
|
payload: { hits },
|
22
21
|
},
|
23
22
|
},
|
24
|
-
'should handle INSIGHTS_HITS_FAILURE': {
|
25
|
-
action: {
|
26
|
-
type: INSIGHTS_HITS_FAILURE,
|
27
|
-
payload: {
|
28
|
-
error: 'some-error',
|
29
|
-
},
|
30
|
-
},
|
31
|
-
},
|
32
23
|
};
|
33
24
|
|
34
25
|
describe('AccountList reducer', () =>
|
@@ -1,30 +1,34 @@
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
2
|
|
3
3
|
exports[`InsightsTab rendering render with props 1`] = `
|
4
|
-
<
|
5
|
-
|
6
|
-
componentClass="div"
|
4
|
+
<div
|
5
|
+
id="host_details_insights_tab"
|
7
6
|
>
|
8
|
-
<
|
9
|
-
bsClass="
|
7
|
+
<Row
|
8
|
+
bsClass="row"
|
10
9
|
componentClass="div"
|
11
|
-
xs={12}
|
12
10
|
>
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
className=""
|
18
|
-
id="hits_list"
|
11
|
+
<Col
|
12
|
+
bsClass="col"
|
13
|
+
componentClass="div"
|
14
|
+
xs={12}
|
19
15
|
>
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
16
|
+
<h2>
|
17
|
+
Recommendations
|
18
|
+
</h2>
|
19
|
+
<ListView
|
20
|
+
className=""
|
21
|
+
id="hits_list"
|
22
|
+
>
|
23
|
+
<ListItem
|
24
|
+
key="0"
|
25
|
+
resultsUrl="https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/"
|
26
|
+
solutionUrl="https://access.redhat.com/node/3359651"
|
27
|
+
title="New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled"
|
28
|
+
totalRisk={2}
|
29
|
+
/>
|
30
|
+
</ListView>
|
31
|
+
</Col>
|
32
|
+
</Row>
|
33
|
+
</div>
|
30
34
|
`;
|
@@ -11,9 +11,47 @@ Array [
|
|
11
11
|
Array [
|
12
12
|
Object {
|
13
13
|
"payload": Object {
|
14
|
-
"
|
14
|
+
"hits": Array [
|
15
|
+
Object {
|
16
|
+
"insights_hit": Object {
|
17
|
+
"hostname": "my-host.example.com",
|
18
|
+
"last_seen": "2020-08-19T04:43:09.068706Z",
|
19
|
+
"likelihood": 2,
|
20
|
+
"publish_date": "2018-04-16T10:03:16Z",
|
21
|
+
"results_url": "https://cloud.redhat.com/insights/advisor/recommendations/ansible_deprecated_repo%7CANSIBLE_DEPRECATED_REPO/4739b323-a343-4e89-b71b-81991b8dc656/",
|
22
|
+
"rhel_version": "7.8",
|
23
|
+
"solution_url": "https://access.redhat.com/node/3359651",
|
24
|
+
"title": "New Ansible Engine packages are inaccessible when dedicated Ansible repo is not enabled",
|
25
|
+
"total_risk": 2,
|
26
|
+
"uuid": "4739b323-a343-4e89-b71b-81991b8dc656",
|
27
|
+
},
|
28
|
+
},
|
29
|
+
],
|
15
30
|
},
|
16
|
-
"type": "
|
31
|
+
"type": "INSIGHTS_HITS_SUCCESS",
|
32
|
+
},
|
33
|
+
],
|
34
|
+
]
|
35
|
+
`;
|
36
|
+
|
37
|
+
exports[`InsightsTab actions should fetchHits with error 1`] = `
|
38
|
+
Array [
|
39
|
+
Array [
|
40
|
+
Object {
|
41
|
+
"payload": Object {},
|
42
|
+
"type": "INSIGHTS_HITS_REQUEST",
|
43
|
+
},
|
44
|
+
],
|
45
|
+
Array [
|
46
|
+
Object {
|
47
|
+
"payload": Object {
|
48
|
+
"message": Object {
|
49
|
+
"message": "Network error!",
|
50
|
+
"sticky": true,
|
51
|
+
"type": "error",
|
52
|
+
},
|
53
|
+
},
|
54
|
+
"type": "TOASTS_ADD",
|
17
55
|
},
|
18
56
|
],
|
19
57
|
]
|
@@ -1,12 +1,5 @@
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
2
|
|
3
|
-
exports[`AccountList reducer should handle INSIGHTS_HITS_FAILURE 1`] = `
|
4
|
-
Object {
|
5
|
-
"error": "some-error",
|
6
|
-
"hits": Array [],
|
7
|
-
}
|
8
|
-
`;
|
9
|
-
|
10
3
|
exports[`AccountList reducer should handle INSIGHTS_HITS_REQUEST 1`] = `
|
11
4
|
Object {
|
12
5
|
"hits": Array [],
|
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: 2.0.
|
4
|
+
version: 2.0.16
|
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:
|
11
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -120,14 +120,20 @@ files:
|
|
120
120
|
- app/models/inventory_sync/inventory_status.rb
|
121
121
|
- app/models/setting/rh_cloud.rb
|
122
122
|
- app/overrides/hosts_list.rb
|
123
|
+
- app/services/foreman_rh_cloud/cloud_auth.rb
|
123
124
|
- app/views/foreman_rh_cloud/react/insights_cloud.html.erb
|
124
125
|
- app/views/foreman_rh_cloud/react/inventory_upload.html.erb
|
125
126
|
- app/views/hosts/_insights_tab.html.erb
|
126
127
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
128
|
+
- config/Gemfile.lock.gh_test
|
129
|
+
- config/database.yml.example
|
130
|
+
- config/package-lock.json.gh_test
|
127
131
|
- config/routes.rb
|
128
132
|
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
129
133
|
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
130
134
|
- db/migrate/20200727111529_add_uuid_column_to_insights_facets.foreman_rh_cloud.rb
|
135
|
+
- db/migrate/20201007115752_add_hits_count_to_insights_facets_table.foreman_rh_cloud.rb
|
136
|
+
- db/migrate/20201007121540_setup_hits_count_cache.foreman_rh_cloud.rb
|
131
137
|
- lib/foreman_inventory_upload.rb
|
132
138
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
133
139
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
@@ -259,6 +265,18 @@ files:
|
|
259
265
|
- webpack/ForemanInventoryUpload/Components/Dashboard/__tests__/__snapshots__/DashboardSelectors.test.js.snap
|
260
266
|
- webpack/ForemanInventoryUpload/Components/Dashboard/dashboard.scss
|
261
267
|
- webpack/ForemanInventoryUpload/Components/Dashboard/index.js
|
268
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.fixtures.js
|
269
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcher.js
|
270
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherActions.js
|
271
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/ExcludePackagesSwitcherConstants.js
|
272
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcher.test.js
|
273
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/ExcludePackagesSwitcherActions.test.js
|
274
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcher.test.js.snap
|
275
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/ExcludePackagesSwitcherActions.test.js.snap
|
276
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/__snapshots__/integration.test.js.snap
|
277
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/__tests__/integration.test.js
|
278
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/excludePackagesSwitcher.scss
|
279
|
+
- webpack/ForemanInventoryUpload/Components/ExcludePackagesSwitcher/index.js
|
262
280
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.fixtures.js
|
263
281
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownload.js
|
264
282
|
- webpack/ForemanInventoryUpload/Components/FileDownload/FileDownloadHelper.js
|
@@ -275,13 +293,13 @@ files:
|
|
275
293
|
- webpack/ForemanInventoryUpload/Components/FullScreenModal/index.js
|
276
294
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.fixtures.js
|
277
295
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
|
296
|
+
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.scss
|
278
297
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherActions.js
|
279
298
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcherConstants.js
|
280
299
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcher.test.js
|
281
300
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/HostObfuscationSwitcherActions.test.js
|
282
301
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcher.test.js.snap
|
283
302
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/__tests__/__snapshots__/HostObfuscationSwitcherActions.test.js.snap
|
284
|
-
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
|
285
303
|
- webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/index.js
|
286
304
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/ClearButton.js
|
287
305
|
- webpack/ForemanInventoryUpload/Components/InventoryFilter/Components/ClearButton/index.js
|
@@ -308,6 +326,15 @@ files:
|
|
308
326
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/__tests__/__snapshots__/InventorySettings.test.js.snap
|
309
327
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/index.js
|
310
328
|
- webpack/ForemanInventoryUpload/Components/InventorySettings/inventorySettings.scss
|
329
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.fixtures.js
|
330
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcher.js
|
331
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherActions.js
|
332
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/IpsObfuscationSwitcherConstants.js
|
333
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcher.test.js
|
334
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/IpsObfuscationSwitcherActions.test.js
|
335
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcher.test.js.snap
|
336
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/__tests__/__snapshots__/IpsObfuscationSwitcherActions.test.js.snap
|
337
|
+
- webpack/ForemanInventoryUpload/Components/IpsObfuscationSwitcher/index.js
|
311
338
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.fixtures.js
|
312
339
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainer.js
|
313
340
|
- webpack/ForemanInventoryUpload/Components/NavContainer/NavContainerHelper.js
|
data/webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/hostObfuscationSwitcher.scss
DELETED
File without changes
|