foreman-tasks 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.babelrc +9 -1
- data/.eslintrc +6 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +6 -0
- data/.storybook/webpack.config.js +51 -54
- data/app/controllers/foreman_tasks/api/tasks_controller.rb +0 -2
- data/app/controllers/foreman_tasks/tasks_controller.rb +6 -1
- data/app/helpers/foreman_tasks/foreman_tasks_helper.rb +8 -0
- data/app/lib/actions/base.rb +7 -0
- data/app/lib/actions/helpers/lifecycle_logging.rb +21 -0
- data/app/lib/actions/proxy_action.rb +4 -2
- data/app/models/foreman_tasks/task.rb +23 -0
- data/app/models/foreman_tasks/task/summarizer.rb +96 -6
- data/app/models/foreman_tasks/triggering.rb +2 -2
- data/app/models/setting/foreman_tasks.rb +8 -1
- data/app/services/foreman_tasks/dashboard_table_filter.rb +47 -0
- data/app/services/foreman_tasks/troubleshooting_help_generator.rb +92 -0
- data/app/services/ui_notifications/tasks.rb +20 -0
- data/app/services/ui_notifications/tasks/task_paused_admin.rb +43 -0
- data/app/services/ui_notifications/tasks/task_paused_owner.rb +30 -0
- data/app/views/foreman_tasks/tasks/_details.html.erb +5 -3
- data/app/views/foreman_tasks/tasks/index.html.erb +13 -0
- data/config/routes.rb +1 -0
- data/db/migrate/20190318153925_add_task_state_updated_at.foreman_tasks.rb +5 -0
- data/db/migrate/20190404132157_add_implicit_varchar_uuid_cast.rb +25 -0
- data/db/seeds.d/30-notification_blueprints.rb +33 -0
- data/foreman-tasks.gemspec +1 -1
- data/lib/foreman_tasks/cleaner.rb +5 -4
- data/lib/foreman_tasks/engine.rb +1 -1
- data/lib/foreman_tasks/test_helpers.rb +10 -0
- data/lib/foreman_tasks/version.rb +1 -1
- data/package.json +14 -11
- data/test/controllers/tasks_controller_test.rb +10 -0
- data/test/foreman_tasks_test_helper.rb +4 -0
- data/test/support/dummy_dynflow_action.rb +29 -0
- data/test/support/history_tasks_builder.rb +42 -0
- data/test/unit/actions/action_with_sub_plans_test.rb +4 -1
- data/test/unit/actions/bulk_action_test.rb +2 -0
- data/test/unit/cleaner_test.rb +15 -0
- data/test/unit/dashboard_table_filter_test.rb +65 -0
- data/test/unit/summarizer_test.rb +39 -0
- data/test/unit/task_test.rb +14 -0
- data/test/unit/troubleshooting_help_generator_test.rb +71 -0
- data/test/unit/ui_notifications_test.rb +86 -0
- data/webpack/ForemanTasks/Components/Chart/Chart.js +128 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js +20 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.stories.js +51 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js +11 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap +36 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js +20 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.stories.js +51 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js +11 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap +36 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js +64 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss +25 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.stories.js +28 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js +18 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap +94 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +89 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss +46 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.stories.js +72 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.test.js +48 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardHelper.js +63 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap +973 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js +96 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss +17 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.stories.js +46 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js +43 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap +183 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.js +166 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss +24 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.stories.js +25 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js +40 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartConstants.js +13 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.js +94 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js +152 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap +302 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap +21 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js +25 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js +72 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.stories.js +52 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js +21 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap +223 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.js +57 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.scss +26 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.stories.js +22 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.test.js +57 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/__snapshots__/TasksLabelsRow.test.js.snap +47 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js +51 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.stories.js +23 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js +19 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap +85 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js +33 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.scss +11 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.stories.js +22 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.test.js +15 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/__snapshots__/TasksTimeRow.test.js.snap +41 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.js +77 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.scss +6 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardActions.js +62 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardConstants.js +94 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardHelper.js +78 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardPropTypes.js +13 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardReducer.js +50 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardSelectors.js +44 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboard.test.js +13 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardActions.test.js +37 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardHelper.test.js +36 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardReducer.test.js +58 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardSelectors.test..js +59 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboard.test.js.snap +51 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardActions.test.js.snap +61 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardReducer.test.js.snap +280 -0
- data/webpack/ForemanTasks/Components/TasksDashboard/index.js +25 -0
- data/webpack/ForemanTasks/ForemanTasksReducers.js +10 -0
- data/webpack/ForemanTasks/ForemanTasksSelectors.js +1 -0
- data/webpack/__mocks__/foremanReact/API.js +7 -0
- data/webpack/__mocks__/foremanReact/common/I18n.js +5 -0
- data/webpack/__mocks__/foremanReact/common/helpers.js +3 -0
- data/webpack/index.js +13 -1
- data/webpack/stories/decorators/index.js +1 -0
- data/webpack/stories/decorators/withCardsDecorator.js +14 -0
- data/webpack/stories/index.js +1 -3
- data/webpack/stories/index.scss +6 -0
- metadata +101 -8
- data/webpack/ForemanTasks/components/Hello/Hello.stories.js +0 -5
- data/webpack/ForemanTasks/components/Hello/__tests__/Hello.test.js +0 -11
- data/webpack/ForemanTasks/components/Hello/__tests__/__snapshots__/Hello.test.js.snap +0 -7
- data/webpack/ForemanTasks/components/Hello/index.js +0 -5
@@ -0,0 +1,25 @@
|
|
1
|
+
import { bindActionCreators } from 'redux';
|
2
|
+
import { connect } from 'react-redux';
|
3
|
+
import TasksDashboard from './TasksDashboard';
|
4
|
+
import * as actions from './TasksDashboardActions';
|
5
|
+
import reducer from './TasksDashboardReducer';
|
6
|
+
import {
|
7
|
+
selectTime,
|
8
|
+
selectQuery,
|
9
|
+
selectTasksSummary,
|
10
|
+
} from './TasksDashboardSelectors';
|
11
|
+
|
12
|
+
const mapStateToProps = state => ({
|
13
|
+
time: selectTime(state),
|
14
|
+
query: selectQuery(state),
|
15
|
+
tasksSummary: selectTasksSummary(state),
|
16
|
+
});
|
17
|
+
|
18
|
+
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);
|
19
|
+
|
20
|
+
export const reducers = { tasksDashboard: reducer };
|
21
|
+
|
22
|
+
export default connect(
|
23
|
+
mapStateToProps,
|
24
|
+
mapDispatchToProps
|
25
|
+
)(TasksDashboard);
|
@@ -0,0 +1 @@
|
|
1
|
+
export const selectForemanTasks = state => state.foremanTasks || {};
|
data/webpack/index.js
CHANGED
@@ -1,11 +1,23 @@
|
|
1
1
|
/* eslint import/no-unresolved: [2, { ignore: [foremanReact/*] }] */
|
2
2
|
/* eslint-disable import/no-extraneous-dependencies */
|
3
3
|
/* eslint-disable import/extensions */
|
4
|
-
/* eslint-disable import/no-unresolved */
|
5
4
|
import componentRegistry from 'foremanReact/components/componentRegistry';
|
5
|
+
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
|
+
import reducers from './ForemanTasks/ForemanTasksReducers';
|
6
7
|
import ForemanTasks from './ForemanTasks';
|
8
|
+
import TasksDashboard from './ForemanTasks/Components/TasksDashboard';
|
7
9
|
|
10
|
+
// register reducers
|
11
|
+
Object.entries(reducers).forEach(([key, reducer]) =>
|
12
|
+
registerReducer(key, reducer)
|
13
|
+
);
|
14
|
+
|
15
|
+
// register components
|
8
16
|
componentRegistry.register({
|
9
17
|
name: 'ForemanTasks',
|
10
18
|
type: ForemanTasks,
|
11
19
|
});
|
20
|
+
componentRegistry.register({
|
21
|
+
name: 'TasksDashboard',
|
22
|
+
type: TasksDashboard,
|
23
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './withCardsDecorator';
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
|
3
|
+
export const withCardsDecorator = storyFn => (
|
4
|
+
<div
|
5
|
+
style={{
|
6
|
+
width: '100%',
|
7
|
+
height: '100vh',
|
8
|
+
backgroundColor: '#F5F5F5',
|
9
|
+
padding: '50px',
|
10
|
+
}}
|
11
|
+
>
|
12
|
+
<div style={{ width: '300px', margin: 'auto' }}>{storyFn()}</div>
|
13
|
+
</div>
|
14
|
+
);
|
data/webpack/stories/index.js
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Nečas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman-tasks-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.2.
|
33
|
+
version: 1.2.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.2.
|
40
|
+
version: 1.2.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sinatra
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- app/lib/actions/foreman/puppetclass/import.rb
|
146
146
|
- app/lib/actions/helpers/args_serialization.rb
|
147
147
|
- app/lib/actions/helpers/humanizer.rb
|
148
|
+
- app/lib/actions/helpers/lifecycle_logging.rb
|
148
149
|
- app/lib/actions/helpers/lock.rb
|
149
150
|
- app/lib/actions/helpers/with_continuous_output.rb
|
150
151
|
- app/lib/actions/helpers/with_delegated_action.rb
|
@@ -179,7 +180,12 @@ files:
|
|
179
180
|
- app/models/foreman_tasks/task_groups/recurring_logic_task_group.rb
|
180
181
|
- app/models/foreman_tasks/triggering.rb
|
181
182
|
- app/models/setting/foreman_tasks.rb
|
183
|
+
- app/services/foreman_tasks/dashboard_table_filter.rb
|
182
184
|
- app/services/foreman_tasks/proxy_selector.rb
|
185
|
+
- app/services/foreman_tasks/troubleshooting_help_generator.rb
|
186
|
+
- app/services/ui_notifications/tasks.rb
|
187
|
+
- app/services/ui_notifications/tasks/task_paused_admin.rb
|
188
|
+
- app/services/ui_notifications/tasks/task_paused_owner.rb
|
183
189
|
- app/views/common/_trigger_form.html.erb
|
184
190
|
- app/views/foreman_tasks/api/recurring_logics/base.json.rabl
|
185
191
|
- app/views/foreman_tasks/api/recurring_logics/index.json.rabl
|
@@ -225,7 +231,10 @@ files:
|
|
225
231
|
- db/migrate/20180207150921_add_remote_tasks.foreman_tasks.rb
|
226
232
|
- db/migrate/20180216092715_use_uuid.rb
|
227
233
|
- db/migrate/20181019135324_add_remote_task_operation.rb
|
234
|
+
- db/migrate/20190318153925_add_task_state_updated_at.foreman_tasks.rb
|
235
|
+
- db/migrate/20190404132157_add_implicit_varchar_uuid_cast.rb
|
228
236
|
- db/seeds.d/20-foreman_tasks_permissions.rb
|
237
|
+
- db/seeds.d/30-notification_blueprints.rb
|
229
238
|
- db/seeds.d/60-dynflow_proxy_feature.rb
|
230
239
|
- db/seeds.d/61-foreman_tasks_bookmarks.rb
|
231
240
|
- deploy/foreman-tasks.service
|
@@ -281,6 +290,7 @@ files:
|
|
281
290
|
- test/support/dummy_proxy_action.rb
|
282
291
|
- test/support/dummy_recurring_dynflow_action.rb
|
283
292
|
- test/support/dummy_task_group.rb
|
293
|
+
- test/support/history_tasks_builder.rb
|
284
294
|
- test/tasks/generate_task_actions_test.rb
|
285
295
|
- test/unit/actions/action_with_sub_plans_test.rb
|
286
296
|
- test/unit/actions/bulk_action_test.rb
|
@@ -288,17 +298,93 @@ files:
|
|
288
298
|
- test/unit/actions/recurring_action_test.rb
|
289
299
|
- test/unit/cleaner_test.rb
|
290
300
|
- test/unit/config/environment.rb
|
301
|
+
- test/unit/dashboard_table_filter_test.rb
|
291
302
|
- test/unit/dynflow_console_authorizer_test.rb
|
292
303
|
- test/unit/lock_test.rb
|
293
304
|
- test/unit/otp_manager_test.rb
|
294
305
|
- test/unit/proxy_selector_test.rb
|
295
306
|
- test/unit/recurring_logic_test.rb
|
296
307
|
- test/unit/remote_task_test.rb
|
308
|
+
- test/unit/summarizer_test.rb
|
297
309
|
- test/unit/task_groups_test.rb
|
298
310
|
- test/unit/task_test.rb
|
299
311
|
- test/unit/triggering_test.rb
|
312
|
+
- test/unit/troubleshooting_help_generator_test.rb
|
313
|
+
- test/unit/ui_notifications_test.rb
|
314
|
+
- webpack/ForemanTasks/Components/Chart/Chart.js
|
315
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js
|
316
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.stories.js
|
317
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js
|
318
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap
|
319
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.js
|
320
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.stories.js
|
321
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js
|
322
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap
|
323
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js
|
324
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.scss
|
325
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.stories.js
|
326
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js
|
327
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap
|
328
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js
|
329
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.scss
|
330
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.stories.js
|
331
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.test.js
|
332
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCardHelper.js
|
333
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/__snapshots__/StoppedTasksCard.test.js.snap
|
334
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js
|
335
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss
|
336
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.stories.js
|
337
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js
|
338
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap
|
339
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.js
|
340
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.scss
|
341
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.stories.js
|
342
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js
|
343
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartConstants.js
|
344
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.js
|
345
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js
|
346
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap
|
347
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap
|
348
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js
|
349
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js
|
350
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.stories.js
|
351
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js
|
352
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap
|
353
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.js
|
354
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.scss
|
355
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.stories.js
|
356
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/TasksLabelsRow.test.js
|
357
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksLabelsRow/__snapshots__/TasksLabelsRow.test.js.snap
|
358
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js
|
359
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.stories.js
|
360
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js
|
361
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap
|
362
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js
|
363
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.scss
|
364
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.stories.js
|
365
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.test.js
|
366
|
+
- webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/__snapshots__/TasksTimeRow.test.js.snap
|
367
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.js
|
368
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboard.scss
|
369
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardActions.js
|
370
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardConstants.js
|
371
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardHelper.js
|
372
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardPropTypes.js
|
373
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardReducer.js
|
374
|
+
- webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardSelectors.js
|
375
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboard.test.js
|
376
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardActions.test.js
|
377
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardHelper.test.js
|
378
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardReducer.test.js
|
379
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardSelectors.test..js
|
380
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboard.test.js.snap
|
381
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardActions.test.js.snap
|
382
|
+
- webpack/ForemanTasks/Components/TasksDashboard/__tests__/__snapshots__/TasksDashboardReducer.test.js.snap
|
383
|
+
- webpack/ForemanTasks/Components/TasksDashboard/index.js
|
300
384
|
- webpack/ForemanTasks/ForemanTasks.js
|
301
385
|
- webpack/ForemanTasks/ForemanTasks.test.js
|
386
|
+
- webpack/ForemanTasks/ForemanTasksReducers.js
|
387
|
+
- webpack/ForemanTasks/ForemanTasksSelectors.js
|
302
388
|
- webpack/ForemanTasks/Routes/ForemanTasksRouter.js
|
303
389
|
- webpack/ForemanTasks/Routes/ForemanTasksRouter.test.js
|
304
390
|
- webpack/ForemanTasks/Routes/ForemanTasksRoutes.js
|
@@ -316,13 +402,15 @@ files:
|
|
316
402
|
- webpack/ForemanTasks/Routes/__snapshots__/ForemanTasksRouter.test.js.snap
|
317
403
|
- webpack/ForemanTasks/Routes/__snapshots__/ForemanTasksRoutes.test.js.snap
|
318
404
|
- webpack/ForemanTasks/__snapshots__/ForemanTasks.test.js.snap
|
319
|
-
- webpack/ForemanTasks/components/Hello/Hello.stories.js
|
320
|
-
- webpack/ForemanTasks/components/Hello/__tests__/Hello.test.js
|
321
|
-
- webpack/ForemanTasks/components/Hello/__tests__/__snapshots__/Hello.test.js.snap
|
322
|
-
- webpack/ForemanTasks/components/Hello/index.js
|
323
405
|
- webpack/ForemanTasks/index.js
|
406
|
+
- webpack/__mocks__/foremanReact/API.js
|
407
|
+
- webpack/__mocks__/foremanReact/common/I18n.js
|
408
|
+
- webpack/__mocks__/foremanReact/common/helpers.js
|
324
409
|
- webpack/index.js
|
410
|
+
- webpack/stories/decorators/index.js
|
411
|
+
- webpack/stories/decorators/withCardsDecorator.js
|
325
412
|
- webpack/stories/index.js
|
413
|
+
- webpack/stories/index.scss
|
326
414
|
- webpack/test_setup.js
|
327
415
|
homepage: https://github.com/theforeman/foreman-tasks
|
328
416
|
licenses: []
|
@@ -370,6 +458,7 @@ test_files:
|
|
370
458
|
- test/support/dummy_proxy_action.rb
|
371
459
|
- test/support/dummy_recurring_dynflow_action.rb
|
372
460
|
- test/support/dummy_task_group.rb
|
461
|
+
- test/support/history_tasks_builder.rb
|
373
462
|
- test/tasks/generate_task_actions_test.rb
|
374
463
|
- test/unit/actions/action_with_sub_plans_test.rb
|
375
464
|
- test/unit/actions/bulk_action_test.rb
|
@@ -377,12 +466,16 @@ test_files:
|
|
377
466
|
- test/unit/actions/recurring_action_test.rb
|
378
467
|
- test/unit/cleaner_test.rb
|
379
468
|
- test/unit/config/environment.rb
|
469
|
+
- test/unit/dashboard_table_filter_test.rb
|
380
470
|
- test/unit/dynflow_console_authorizer_test.rb
|
381
471
|
- test/unit/lock_test.rb
|
382
472
|
- test/unit/otp_manager_test.rb
|
383
473
|
- test/unit/proxy_selector_test.rb
|
384
474
|
- test/unit/recurring_logic_test.rb
|
385
475
|
- test/unit/remote_task_test.rb
|
476
|
+
- test/unit/summarizer_test.rb
|
386
477
|
- test/unit/task_groups_test.rb
|
387
478
|
- test/unit/task_test.rb
|
388
479
|
- test/unit/triggering_test.rb
|
480
|
+
- test/unit/troubleshooting_help_generator_test.rb
|
481
|
+
- test/unit/ui_notifications_test.rb
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { shallow } from 'enzyme';
|
3
|
-
import toJson from 'enzyme-to-json';
|
4
|
-
import Hello from '../index';
|
5
|
-
|
6
|
-
describe('Hello component', () => {
|
7
|
-
it('rendering', () => {
|
8
|
-
const wrapper = shallow(<Hello />);
|
9
|
-
expect(toJson(wrapper)).toMatchSnapshot();
|
10
|
-
});
|
11
|
-
});
|