foreman_rh_cloud 3.0.19 → 3.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -5
- data/app/controllers/api/v2/rh_cloud/inventory_controller.rb +50 -0
- data/app/controllers/concerns/inventory_upload/report_actions.rb +26 -0
- data/app/controllers/concerns/inventory_upload/task_actions.rb +25 -0
- data/app/controllers/foreman_inventory_upload/reports_controller.rb +3 -1
- data/app/controllers/foreman_inventory_upload/tasks_controller.rb +5 -13
- data/app/controllers/foreman_inventory_upload/uploads_controller.rb +4 -4
- data/app/controllers/insights_cloud/api/machine_telemetries_controller.rb +18 -7
- data/app/controllers/insights_cloud/hits_controller.rb +42 -1
- data/app/controllers/insights_cloud/settings_controller.rb +1 -1
- data/app/controllers/insights_cloud/tasks_controller.rb +1 -2
- data/app/helpers/foreman_insights_host_helper.rb +19 -0
- data/app/models/insights_client_report_status.rb +58 -0
- data/app/models/inventory_sync/inventory_status.rb +6 -0
- data/app/models/setting/rh_cloud.rb +5 -5
- data/app/services/foreman_rh_cloud/cloud_auth.rb +12 -0
- data/app/services/foreman_rh_cloud/cloud_connector.rb +1 -1
- data/app/services/foreman_rh_cloud/cloud_request.rb +14 -0
- data/app/services/foreman_rh_cloud/cloud_request_forwarder.rb +1 -6
- data/app/services/foreman_rh_cloud/remediations_retriever.rb +75 -0
- data/app/services/foreman_rh_cloud/template_renderer_helper.rb +22 -0
- data/app/subscribers/foreman_rh_cloud/insights_subscriber.rb +9 -0
- data/app/views/job_templates/rh_cloud_remediations.erb +14 -0
- data/config/package-lock.json.plugin +32774 -0
- data/config/routes.rb +20 -0
- data/db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb +10 -0
- data/db/seeds.d/179_ui_notifications.rb +11 -0
- data/db/seeds.d/50_job_templates.rb +14 -0
- data/lib/foreman_inventory_upload.rb +5 -1
- data/lib/foreman_inventory_upload/async/generate_all_reports_job.rb +8 -2
- data/lib/foreman_inventory_upload/generators/fact_helpers.rb +19 -0
- data/lib/foreman_inventory_upload/generators/queries.rb +3 -2
- data/lib/foreman_inventory_upload/generators/slice.rb +6 -6
- data/lib/foreman_inventory_upload/generators/tags.rb +8 -6
- data/lib/foreman_rh_cloud.rb +18 -0
- data/lib/foreman_rh_cloud/engine.rb +40 -2
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/lib/insights_cloud.rb +12 -0
- data/lib/insights_cloud/async/insights_full_sync.rb +31 -22
- data/lib/insights_cloud/async/insights_generate_notifications.rb +58 -0
- data/lib/insights_cloud/async/insights_resolutions_sync.rb +66 -0
- data/lib/insights_cloud/async/insights_rules_sync.rb +15 -24
- data/lib/insights_cloud/async/insights_scheduled_sync.rb +1 -1
- data/lib/inventory_sync/async/inventory_full_sync.rb +2 -1
- data/lib/inventory_sync/async/inventory_hosts_sync.rb +6 -2
- data/lib/inventory_sync/async/inventory_scheduled_sync.rb +29 -0
- data/lib/inventory_sync/async/query_inventory_job.rb +1 -4
- data/lib/tasks/insights.rake +4 -12
- data/lib/tasks/rh_cloud_inventory.rake +20 -5
- data/package.json +1 -1
- data/test/controllers/inventory_upload/api/inventory_controller_test.rb +53 -0
- data/test/factories/insights_factories.rb +22 -0
- data/test/factories/inventory_upload_factories.rb +1 -1
- data/test/jobs/insights_full_sync_test.rb +17 -8
- data/test/jobs/insights_resolutions_sync_test.rb +77 -0
- data/test/jobs/insights_rules_sync_test.rb +8 -3
- data/test/jobs/inventory_full_sync_test.rb +4 -1
- data/test/jobs/inventory_hosts_sync_test.rb +265 -0
- data/test/jobs/inventory_scheduled_sync_test.rb +22 -0
- data/test/models/insights_client_report_status_test.rb +77 -0
- data/test/test_plugin_helper.rb +2 -0
- data/test/unit/rh_cloud_http_proxy_test.rb +4 -4
- data/test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb +49 -0
- data/test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb +28 -0
- data/test/unit/slice_generator_test.rb +66 -29
- data/test/unit/tags_generator_test.rb +10 -0
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/__tests__/__snapshots__/FullScreenModal.test.js.snap +1 -1
- data/webpack/ForemanInventoryUpload/Components/FullScreenModal/fullScreenModal.scss +14 -16
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/AdvancedSetting/AdvancedSettingsConstants.js +5 -3
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +26 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +24 -2
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/SyncButtonActions.js +28 -63
- data/webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/__tests__/__snapshots__/integrations.test.js.snap +2 -3
- data/webpack/ForemanInventoryUpload/Components/Terminal/Terminal.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/__tests__/Terminal.test.js +1 -1
- data/webpack/ForemanInventoryUpload/Components/Terminal/__tests__/__snapshots__/Terminal.test.js.snap +2 -2
- data/webpack/ForemanInventoryUpload/Components/Terminal/terminal.scss +25 -27
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTable.js +1 -1
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableActions.js +19 -19
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableSelectors.js +3 -0
- data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap +14 -14
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediateButton.js +60 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationActions.js +12 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationHelpers.js +43 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js +101 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.scss +9 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationModalFooter.js +43 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js +38 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/Resolutions.js +55 -0
- data/webpack/InsightsCloudSync/Components/RemediationModal/index.js +34 -0
- data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +20 -13
- data/webpack/InsightsCloudSync/InsightsCloudSync.js +11 -3
- data/webpack/InsightsCloudSync/InsightsCloudSync.scss +5 -0
- data/webpack/InsightsCloudSync/InsightsCloudSyncActions.js +44 -20
- data/webpack/InsightsCloudSync/InsightsCloudSyncConstants.js +2 -0
- data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +9 -6
- data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncActions.test.js.snap +11 -7
- data/webpack/common/ForemanTasks/ForemanTasksActions.js +64 -0
- data/webpack/common/ForemanTasks/ForemanTasksHelpers.js +7 -0
- data/webpack/common/ForemanTasks/index.js +1 -0
- data/webpack/{InsightsCloudSync/Components/InsightsTable/components → common/table}/EmptyState.js +0 -0
- data/webpack/common/table/helpers.js +7 -0
- metadata +49 -4
@@ -6,10 +6,12 @@ import PageLayout from 'foremanReact/routes/common/PageLayout/PageLayout';
|
|
6
6
|
import InsightsHeader from './Components/InsightsHeader';
|
7
7
|
import { NoTokenEmptyState } from './Components/NoTokenEmptyState';
|
8
8
|
import InsightsTable from './Components/InsightsTable';
|
9
|
+
import RemediationModal from './Components/RemediationModal';
|
9
10
|
import {
|
10
11
|
INSIGHTS_SYNC_PAGE_TITLE,
|
11
12
|
INSIGHTS_SEARCH_PROPS,
|
12
13
|
} from './InsightsCloudSyncConstants';
|
14
|
+
import './InsightsCloudSync.scss';
|
13
15
|
|
14
16
|
const InsightsCloudSync = ({
|
15
17
|
syncInsights,
|
@@ -32,9 +34,15 @@ const InsightsCloudSync = ({
|
|
32
34
|
onSearch={nextQuery => fetchInsights({ query: nextQuery, page: 1 })}
|
33
35
|
header={INSIGHTS_SYNC_PAGE_TITLE}
|
34
36
|
toolbarButtons={
|
35
|
-
|
36
|
-
|
37
|
-
|
37
|
+
<>
|
38
|
+
<RemediationModal />
|
39
|
+
<Button
|
40
|
+
variant="secondary"
|
41
|
+
onClick={() => syncInsights(fetchInsights, query)}
|
42
|
+
>
|
43
|
+
{__('Start recommendations sync')}
|
44
|
+
</Button>
|
45
|
+
</>
|
38
46
|
}
|
39
47
|
searchQuery={query}
|
40
48
|
beforeToolbarComponent={<InsightsHeader />}
|
@@ -1,25 +1,49 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { post } from 'foremanReact/redux/API';
|
3
2
|
import { translate as __ } from 'foremanReact/common/I18n';
|
4
3
|
import { insightsCloudUrl } from './InsightsCloudSyncHelpers';
|
5
|
-
import {
|
6
|
-
|
4
|
+
import {
|
5
|
+
INSIGHTS_CLOUD_SYNC,
|
6
|
+
INSIGHTS_CLOUD_SYNC_TASK,
|
7
|
+
} from './InsightsCloudSyncConstants';
|
8
|
+
import { setupTaskPolling, taskRelatedToast } from '../common/ForemanTasks';
|
7
9
|
|
8
|
-
export const syncInsights = () =>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
10
|
+
export const syncInsights = (fetchInsights, query) => dispatch =>
|
11
|
+
dispatch(
|
12
|
+
post({
|
13
|
+
key: INSIGHTS_CLOUD_SYNC,
|
14
|
+
url: insightsCloudUrl('tasks'),
|
15
|
+
handleSuccess: ({
|
16
|
+
data: {
|
17
|
+
task: { id },
|
18
|
+
},
|
19
|
+
}) => {
|
20
|
+
dispatch(syncInsightsStartedToast(id));
|
21
|
+
dispatch(setupInsightsTaskPolling(id, fetchInsights, query, dispatch));
|
22
|
+
},
|
23
|
+
errorToast: error => syncInsightsError(error),
|
24
|
+
})
|
25
|
+
);
|
26
|
+
|
27
|
+
const syncInsightsError = error =>
|
28
|
+
`${__('Recommendation sync has failed: ')} ${error}`;
|
29
|
+
|
30
|
+
const syncInsightsStartedToast = taskId =>
|
31
|
+
taskRelatedToast(taskId, 'info', __('Recommendation sync has started: '));
|
32
|
+
|
33
|
+
const setupInsightsTaskPolling = (taskId, fetchInsights, query, dispatch) =>
|
34
|
+
setupTaskPolling({
|
35
|
+
taskId,
|
36
|
+
key: INSIGHTS_CLOUD_SYNC_TASK,
|
37
|
+
onTaskSuccess: () => {
|
38
|
+
fetchInsights({ query, page: 1 });
|
39
|
+
dispatch(
|
40
|
+
taskRelatedToast(
|
41
|
+
taskId,
|
42
|
+
'success',
|
43
|
+
__('Recommendations synced successfully')
|
44
|
+
)
|
45
|
+
);
|
46
|
+
},
|
47
|
+
taskErrorMessage: data => syncInsightsError(data.humanized.errors),
|
48
|
+
dispatch,
|
25
49
|
});
|
@@ -4,6 +4,8 @@ import { foremanUrl } from '../ForemanRhCloudHelpers';
|
|
4
4
|
|
5
5
|
export const INSIGHTS_CLOUD_SYNC = 'INSIGHTS_CLOUD_SYNC';
|
6
6
|
|
7
|
+
export const INSIGHTS_CLOUD_SYNC_TASK = 'INSIGHTS_CLOUD_SYNC_TASK';
|
8
|
+
|
7
9
|
export const INSIGHTS_SYNC_PAGE_TITLE = __('Red Hat Insights');
|
8
10
|
|
9
11
|
export const INSIGHTS_PATH = foremanUrl('/foreman_rh_cloud/insights_cloud');
|
@@ -27,12 +27,15 @@ exports[`InsightsCloudSync render 1`] = `
|
|
27
27
|
searchQuery=""
|
28
28
|
searchable={true}
|
29
29
|
toolbarButtons={
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
<React.Fragment>
|
31
|
+
<UNDEFINED />
|
32
|
+
<ForwardRef
|
33
|
+
onClick={[Function]}
|
34
|
+
variant="secondary"
|
35
|
+
>
|
36
|
+
Start recommendations sync
|
37
|
+
</ForwardRef>
|
38
|
+
</React.Fragment>
|
36
39
|
}
|
37
40
|
>
|
38
41
|
<Connect(InsightsTable) />
|
data/webpack/InsightsCloudSync/__tests__/__snapshots__/InsightsCloudSyncActions.test.js.snap
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
2
|
|
3
3
|
exports[`Insights cloud sync actions should syncInsights 1`] = `
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
Array [
|
5
|
+
Array [
|
6
|
+
Object {
|
7
|
+
"errorToast": [Function],
|
8
|
+
"handleSuccess": [Function],
|
9
|
+
"key": "INSIGHTS_CLOUD_SYNC",
|
10
|
+
"type": "post-some-type",
|
11
|
+
"url": "/insights_cloud/tasks",
|
12
|
+
},
|
13
|
+
],
|
14
|
+
]
|
11
15
|
`;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { get } from 'foremanReact/redux/API';
|
3
|
+
import { withInterval } from 'foremanReact/redux/middlewares/IntervalMiddleware';
|
4
|
+
import { addToast } from 'foremanReact/redux/actions/toasts';
|
5
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
6
|
+
import { foremanTaskDetailsUrl } from './ForemanTasksHelpers';
|
7
|
+
import { foremanUrl } from '../../ForemanRhCloudHelpers';
|
8
|
+
|
9
|
+
export const setupTaskPolling = ({
|
10
|
+
taskId,
|
11
|
+
key,
|
12
|
+
onTaskSuccess,
|
13
|
+
onTaskError,
|
14
|
+
taskErrorMessage,
|
15
|
+
dispatch,
|
16
|
+
}) =>
|
17
|
+
withInterval(
|
18
|
+
get({
|
19
|
+
key,
|
20
|
+
url: foremanTaskDetailsUrl(taskId),
|
21
|
+
handleSuccess: ({ data }, stopTaskInterval) => {
|
22
|
+
if (data.result === 'success') {
|
23
|
+
stopTaskInterval();
|
24
|
+
onTaskSuccess(data, dispatch);
|
25
|
+
}
|
26
|
+
if (data.result === 'error') {
|
27
|
+
stopTaskInterval();
|
28
|
+
if (taskErrorMessage === undefined) {
|
29
|
+
taskErrorMessage = errorData =>
|
30
|
+
`${__('The task failed with the following error:')} ${
|
31
|
+
errorData.humanized.errors
|
32
|
+
}`;
|
33
|
+
}
|
34
|
+
if (onTaskError === undefined) {
|
35
|
+
onTaskError = errorData =>
|
36
|
+
dispatch(defaultTaskErrorHandler(errorData, taskErrorMessage));
|
37
|
+
}
|
38
|
+
onTaskError(data, dispatch);
|
39
|
+
}
|
40
|
+
},
|
41
|
+
errorToast: error => `Could not get task details: ${error}`,
|
42
|
+
})
|
43
|
+
);
|
44
|
+
|
45
|
+
export const taskRelatedToast = (taskID, type, message) =>
|
46
|
+
addToast({
|
47
|
+
type,
|
48
|
+
message: (
|
49
|
+
<span>
|
50
|
+
{message}
|
51
|
+
<br />
|
52
|
+
<a
|
53
|
+
target="_blank"
|
54
|
+
rel="noopener noreferrer"
|
55
|
+
href={foremanUrl(`/foreman_tasks/tasks/${taskID}`)}
|
56
|
+
>
|
57
|
+
{__('view the task page for more details')}
|
58
|
+
</a>
|
59
|
+
</span>
|
60
|
+
),
|
61
|
+
});
|
62
|
+
|
63
|
+
const defaultTaskErrorHandler = (data, taskErrorMessage) =>
|
64
|
+
taskRelatedToast(data.id, 'error', taskErrorMessage(data));
|
@@ -0,0 +1 @@
|
|
1
|
+
export { setupTaskPolling, taskRelatedToast } from './ForemanTasksActions';
|
data/webpack/{InsightsCloudSync/Components/InsightsTable/components → common/table}/EmptyState.js
RENAMED
File without changes
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export const getPerPageOptions = (urlPerPage, appPerPage) => {
|
2
|
+
const initialValues = new Set([5, 10, 15, 25, 50]);
|
3
|
+
initialValues.add(appPerPage);
|
4
|
+
urlPerPage && initialValues.add(urlPerPage);
|
5
|
+
const options = [...initialValues].sort((a, b) => a - b);
|
6
|
+
return options.map(value => ({ title: value.toString(), value }));
|
7
|
+
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_rh_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Red Hat Cloud team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -146,8 +146,11 @@ files:
|
|
146
146
|
- LICENSE
|
147
147
|
- README.md
|
148
148
|
- Rakefile
|
149
|
+
- app/controllers/api/v2/rh_cloud/inventory_controller.rb
|
149
150
|
- app/controllers/concerns/insights_cloud/candlepin_cache.rb
|
150
151
|
- app/controllers/concerns/insights_cloud/client_authentication.rb
|
152
|
+
- app/controllers/concerns/inventory_upload/report_actions.rb
|
153
|
+
- app/controllers/concerns/inventory_upload/task_actions.rb
|
151
154
|
- app/controllers/foreman_inventory_upload/accounts_controller.rb
|
152
155
|
- app/controllers/foreman_inventory_upload/reports_controller.rb
|
153
156
|
- app/controllers/foreman_inventory_upload/tasks_controller.rb
|
@@ -157,9 +160,11 @@ files:
|
|
157
160
|
- app/controllers/insights_cloud/hits_controller.rb
|
158
161
|
- app/controllers/insights_cloud/settings_controller.rb
|
159
162
|
- app/controllers/insights_cloud/tasks_controller.rb
|
163
|
+
- app/helpers/foreman_insights_host_helper.rb
|
160
164
|
- app/helpers/foreman_inventory_upload_helper.rb
|
161
165
|
- app/helpers/foreman_inventory_upload_host_helper.rb
|
162
166
|
- app/models/concerns/rh_cloud_host.rb
|
167
|
+
- app/models/insights_client_report_status.rb
|
163
168
|
- app/models/insights_facet.rb
|
164
169
|
- app/models/insights_hit.rb
|
165
170
|
- app/models/insights_resolution.rb
|
@@ -171,12 +176,18 @@ files:
|
|
171
176
|
- app/services/foreman_rh_cloud/branch_info.rb
|
172
177
|
- app/services/foreman_rh_cloud/cloud_auth.rb
|
173
178
|
- app/services/foreman_rh_cloud/cloud_connector.rb
|
179
|
+
- app/services/foreman_rh_cloud/cloud_request.rb
|
174
180
|
- app/services/foreman_rh_cloud/cloud_request_forwarder.rb
|
181
|
+
- app/services/foreman_rh_cloud/remediations_retriever.rb
|
182
|
+
- app/services/foreman_rh_cloud/template_renderer_helper.rb
|
183
|
+
- app/subscribers/foreman_rh_cloud/insights_subscriber.rb
|
175
184
|
- app/views/hosts/_insights_tab.html.erb
|
185
|
+
- app/views/job_templates/rh_cloud_remediations.erb
|
176
186
|
- app/views/layouts/foreman_rh_cloud/application.html.erb
|
177
187
|
- config/Gemfile.lock.gh_test
|
178
188
|
- config/database.yml.example
|
179
189
|
- config/package-lock.json.gh_test
|
190
|
+
- config/package-lock.json.plugin
|
180
191
|
- config/routes.rb
|
181
192
|
- db/migrate/20191215104806_create_insights_hits.foreman_inventory_upload.rb
|
182
193
|
- db/migrate/20191216062008_create_insights_facets.foreman_inventory_upload.rb
|
@@ -186,6 +197,9 @@ files:
|
|
186
197
|
- db/migrate/20210214000001_create_rules_and_resolutions.foreman_rh_cloud.rb
|
187
198
|
- db/migrate/20210214000002_add_rule_id_to_hits.foreman_rh_cloud.rb
|
188
199
|
- db/migrate/20210307000001_add_unique_to_insights_facet.foreman_rh_cloud.rb
|
200
|
+
- db/migrate/20210404000001_change_resolutions.foreman_rh_cloud.rb
|
201
|
+
- db/seeds.d/179_ui_notifications.rb
|
202
|
+
- db/seeds.d/50_job_templates.rb
|
189
203
|
- lib/foreman_inventory_upload.rb
|
190
204
|
- lib/foreman_inventory_upload/async/async_helpers.rb
|
191
205
|
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
|
@@ -208,12 +222,15 @@ files:
|
|
208
222
|
- lib/foreman_rh_cloud/version.rb
|
209
223
|
- lib/insights_cloud.rb
|
210
224
|
- lib/insights_cloud/async/insights_full_sync.rb
|
225
|
+
- lib/insights_cloud/async/insights_generate_notifications.rb
|
226
|
+
- lib/insights_cloud/async/insights_resolutions_sync.rb
|
211
227
|
- lib/insights_cloud/async/insights_rules_sync.rb
|
212
228
|
- lib/insights_cloud/async/insights_scheduled_sync.rb
|
213
229
|
- lib/insights_cloud/async/rules_result.rb
|
214
230
|
- lib/inventory_sync/async/host_result.rb
|
215
231
|
- lib/inventory_sync/async/inventory_full_sync.rb
|
216
232
|
- lib/inventory_sync/async/inventory_hosts_sync.rb
|
233
|
+
- lib/inventory_sync/async/inventory_scheduled_sync.rb
|
217
234
|
- lib/inventory_sync/async/query_inventory_job.rb
|
218
235
|
- lib/tasks/foreman_rh_cloud_tasks.rake
|
219
236
|
- lib/tasks/insights.rake
|
@@ -226,15 +243,20 @@ files:
|
|
226
243
|
- test/controllers/accounts_controller_test.rb
|
227
244
|
- test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
|
228
245
|
- test/controllers/insights_sync/settings_controller_test.rb
|
246
|
+
- test/controllers/inventory_upload/api/inventory_controller_test.rb
|
229
247
|
- test/controllers/reports_controller_test.rb
|
230
248
|
- test/controllers/uploads_controller_test.rb
|
231
249
|
- test/controllers/uploads_settings_controller_test.rb
|
232
250
|
- test/factories/insights_factories.rb
|
233
251
|
- test/factories/inventory_upload_factories.rb
|
234
252
|
- test/jobs/insights_full_sync_test.rb
|
253
|
+
- test/jobs/insights_resolutions_sync_test.rb
|
235
254
|
- test/jobs/insights_rules_sync_test.rb
|
236
255
|
- test/jobs/inventory_full_sync_test.rb
|
256
|
+
- test/jobs/inventory_hosts_sync_test.rb
|
257
|
+
- test/jobs/inventory_scheduled_sync_test.rb
|
237
258
|
- test/jobs/upload_report_job_test.rb
|
259
|
+
- test/models/insights_client_report_status_test.rb
|
238
260
|
- test/test_plugin_helper.rb
|
239
261
|
- test/unit/archived_report_generator_test.rb
|
240
262
|
- test/unit/fact_helpers_test.rb
|
@@ -243,6 +265,8 @@ files:
|
|
243
265
|
- test/unit/rh_cloud_http_proxy_test.rb
|
244
266
|
- test/unit/services/foreman_rh_cloud/branch_info_test.rb
|
245
267
|
- test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
|
268
|
+
- test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
|
269
|
+
- test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
|
246
270
|
- test/unit/shell_process_job_test.rb
|
247
271
|
- test/unit/slice_generator_test.rb
|
248
272
|
- test/unit/tags_generator_test.rb
|
@@ -538,15 +562,24 @@ files:
|
|
538
562
|
- webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableActions.test.js.snap
|
539
563
|
- webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTableSelectors.test.js.snap
|
540
564
|
- webpack/InsightsCloudSync/Components/InsightsTable/__tests__/fixtures.js
|
541
|
-
- webpack/InsightsCloudSync/Components/InsightsTable/components/EmptyState.js
|
542
565
|
- webpack/InsightsCloudSync/Components/InsightsTable/index.js
|
543
566
|
- webpack/InsightsCloudSync/Components/InsightsTable/table.scss
|
544
567
|
- webpack/InsightsCloudSync/Components/NoTokenEmptyState.js
|
568
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediateButton.js
|
569
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationActions.js
|
570
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationHelpers.js
|
571
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.js
|
572
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationModal.scss
|
573
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationModalFooter.js
|
574
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/RemediationTableConstants.js
|
575
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/Resolutions.js
|
576
|
+
- webpack/InsightsCloudSync/Components/RemediationModal/index.js
|
545
577
|
- webpack/InsightsCloudSync/Components/__tests__/InsightsHeader.test.js
|
546
578
|
- webpack/InsightsCloudSync/Components/__tests__/NoTokenEmptyState.test.js
|
547
579
|
- webpack/InsightsCloudSync/Components/__tests__/__snapshots__/InsightsHeader.test.js.snap
|
548
580
|
- webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap
|
549
581
|
- webpack/InsightsCloudSync/InsightsCloudSync.js
|
582
|
+
- webpack/InsightsCloudSync/InsightsCloudSync.scss
|
550
583
|
- webpack/InsightsCloudSync/InsightsCloudSync.test.js
|
551
584
|
- webpack/InsightsCloudSync/InsightsCloudSyncActions.js
|
552
585
|
- webpack/InsightsCloudSync/InsightsCloudSyncConstants.js
|
@@ -596,6 +629,9 @@ files:
|
|
596
629
|
- webpack/__tests__/__snapshots__/ForemanRhCloudHelpers.test.js.snap
|
597
630
|
- webpack/__tests__/__snapshots__/ForemanRhCloudSelectors.test.js.snap
|
598
631
|
- webpack/__tests__/__snapshots__/ForemanRhCloudTestHelpers.test.js.snap
|
632
|
+
- webpack/common/ForemanTasks/ForemanTasksActions.js
|
633
|
+
- webpack/common/ForemanTasks/ForemanTasksHelpers.js
|
634
|
+
- webpack/common/ForemanTasks/index.js
|
599
635
|
- webpack/common/Switcher/HelpLabel.js
|
600
636
|
- webpack/common/Switcher/SwitcherPF4.js
|
601
637
|
- webpack/common/Switcher/SwitcherPF4.scss
|
@@ -604,6 +640,8 @@ files:
|
|
604
640
|
- webpack/common/Switcher/__tests__/__snapshots__/HelpLabel.test.js.snap
|
605
641
|
- webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap
|
606
642
|
- webpack/common/Switcher/index.js
|
643
|
+
- webpack/common/table/EmptyState.js
|
644
|
+
- webpack/common/table/helpers.js
|
607
645
|
- webpack/global_index.js
|
608
646
|
- webpack/index.js
|
609
647
|
homepage: https://github.com/theforeman/foreman_rh_cloud
|
@@ -625,7 +663,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
625
663
|
- !ruby/object:Gem::Version
|
626
664
|
version: '0'
|
627
665
|
requirements: []
|
628
|
-
rubygems_version: 3.
|
666
|
+
rubygems_version: 3.2.15
|
629
667
|
signing_key:
|
630
668
|
specification_version: 4
|
631
669
|
summary: Summary of ForemanRhCloud.
|
@@ -633,15 +671,20 @@ test_files:
|
|
633
671
|
- test/controllers/accounts_controller_test.rb
|
634
672
|
- test/controllers/insights_cloud/api/machine_telemetries_controller_test.rb
|
635
673
|
- test/controllers/insights_sync/settings_controller_test.rb
|
674
|
+
- test/controllers/inventory_upload/api/inventory_controller_test.rb
|
636
675
|
- test/controllers/reports_controller_test.rb
|
637
676
|
- test/controllers/uploads_controller_test.rb
|
638
677
|
- test/controllers/uploads_settings_controller_test.rb
|
639
678
|
- test/factories/insights_factories.rb
|
640
679
|
- test/factories/inventory_upload_factories.rb
|
641
680
|
- test/jobs/insights_full_sync_test.rb
|
681
|
+
- test/jobs/insights_resolutions_sync_test.rb
|
642
682
|
- test/jobs/insights_rules_sync_test.rb
|
643
683
|
- test/jobs/inventory_full_sync_test.rb
|
684
|
+
- test/jobs/inventory_hosts_sync_test.rb
|
685
|
+
- test/jobs/inventory_scheduled_sync_test.rb
|
644
686
|
- test/jobs/upload_report_job_test.rb
|
687
|
+
- test/models/insights_client_report_status_test.rb
|
645
688
|
- test/test_plugin_helper.rb
|
646
689
|
- test/unit/archived_report_generator_test.rb
|
647
690
|
- test/unit/fact_helpers_test.rb
|
@@ -650,6 +693,8 @@ test_files:
|
|
650
693
|
- test/unit/rh_cloud_http_proxy_test.rb
|
651
694
|
- test/unit/services/foreman_rh_cloud/branch_info_test.rb
|
652
695
|
- test/unit/services/foreman_rh_cloud/cloud_request_forwarder_test.rb
|
696
|
+
- test/unit/services/foreman_rh_cloud/remediations_retriever_test.rb
|
697
|
+
- test/unit/services/foreman_rh_cloud/template_renderer_helper_test.rb
|
653
698
|
- test/unit/shell_process_job_test.rb
|
654
699
|
- test/unit/slice_generator_test.rb
|
655
700
|
- test/unit/tags_generator_test.rb
|