foreman-tasks 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/foreman_tasks/tasks_controller.rb +6 -3
  3. data/app/models/foreman_tasks/task/dynflow_task.rb +1 -0
  4. data/db/migrate/20200611090846_add_task_lock_index_on_resource_type_and_task_id.rb +9 -0
  5. data/lib/foreman_tasks/engine.rb +0 -5
  6. data/lib/foreman_tasks/version.rb +1 -1
  7. data/locale/en/LC_MESSAGES/foreman_tasks.mo +0 -0
  8. data/locale/en/foreman_tasks.po +50 -20
  9. data/locale/foreman_tasks.pot +173 -126
  10. data/locale/fr/LC_MESSAGES/foreman_tasks.mo +0 -0
  11. data/locale/fr/foreman_tasks.po +817 -0
  12. data/locale/ja/LC_MESSAGES/foreman_tasks.mo +0 -0
  13. data/locale/ja/foreman_tasks.po +817 -0
  14. data/locale/zh_CN/LC_MESSAGES/foreman_tasks.mo +0 -0
  15. data/locale/zh_CN/foreman_tasks.po +816 -0
  16. data/webpack/ForemanTasks/Components/TaskActions/TaskAction.test.js +2 -2
  17. data/webpack/ForemanTasks/Components/TaskActions/index.js +1 -1
  18. data/webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js +17 -3
  19. data/webpack/ForemanTasks/Components/TaskDetails/Components/Task.js +3 -18
  20. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js +8 -1
  21. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js +5 -5
  22. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/RunningSteps.test.js.snap +1 -1
  23. data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Task.test.js.snap +4 -4
  24. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js +35 -5
  25. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js +36 -1
  26. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsConstants.js +4 -0
  27. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.fixtures.js +8 -0
  28. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.test.js +2 -1
  29. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +18 -2
  30. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetails.test.js.snap +27 -6
  31. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsActions.test.js.snap +91 -0
  32. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/integration.test.js +9 -4
  33. data/webpack/ForemanTasks/Components/TasksDashboard/TasksDashboardActions.js +1 -1
  34. data/webpack/ForemanTasks/Components/TasksDashboard/__tests__/TasksDashboardActions.test.js +2 -2
  35. data/webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js +1 -1
  36. data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksBulkActions.test.js +2 -2
  37. data/webpack/__mocks__/foremanReact/{API.js → redux/API.js} +1 -1
  38. metadata +12 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20b407d313a12c6d3491f6076c60afa9cc980a63ef65355de84c3213a4ed1a1b
4
- data.tar.gz: 746083bde8439365d394f2e15e9b4a0bf029f12e5683c1ba383bbdeca6e075f6
3
+ metadata.gz: e1026fe8670d8a41977697a9ff2bd4f04758dca2f18a9bac806dea4856cb4478
4
+ data.tar.gz: 8ec9ddbfb5a444a525cc27d178ade81c30e5c7c8b4fe0e577aba7d780ed3b37d
5
5
  SHA512:
6
- metadata.gz: 4afb8ab8065c0c736a5fac25334e62bf79b20992e79636d42ae82fcf1a3aac1b2f9c21ee5ac43c51c491db17d40a919c34995395130a9a6d258b25c9f9063f12
7
- data.tar.gz: 2b6bdf2cb9ed26320525c7fc604f239fdcfcfab90f5ff5932aee114f1a47612372762880338863fc0af9970edd877ac5a9c31c560ea63c79a9a57d1f53e6ee7a
6
+ metadata.gz: 044b43805dcfd80a9607154d0a8be54b54b8b054923727d79f699dec5a4f355fe84d1533f5049ecc47d65efd3313447a070cc9bd01bea47bbd639f800847375e
7
+ data.tar.gz: edd5a4f741c2e55eb7d695011e8dc7a017214e0a5b43027035352095ad8132d8ea93a75c5991a97c5ffa05645f970f6d878a5d33ba6f6c75ed7ece1b16af4237
@@ -31,9 +31,12 @@ module ForemanTasks
31
31
 
32
32
  def cancel_step
33
33
  task = find_dynflow_task
34
- flash[:info] = _('Trying to cancel step %s') % params[:step_id]
35
- ForemanTasks.dynflow.world.event(task.external_id, params[:step_id].to_i, ::Dynflow::Action::Cancellable::Cancel).wait
36
- redirect_to foreman_tasks_task_path(task)
34
+ result = ForemanTasks.dynflow.world.event(task.external_id, params[:step_id].to_i, ::Dynflow::Action::Cancellable::Cancel).wait
35
+ if result.rejected?
36
+ render json: { error: result.reason }, status: :bad_request
37
+ else
38
+ render json: { statusText: 'OK' }
39
+ end
37
40
  end
38
41
 
39
42
  def cancel
@@ -119,6 +119,7 @@ module ForemanTasks
119
119
  begin
120
120
  f_action = f.action(execution_plan)
121
121
  {
122
+ id: f_action.id,
122
123
  action_class: f.action_class.name,
123
124
  state: f.state,
124
125
  input: f_action.input.pretty_inspect,
@@ -0,0 +1,9 @@
1
+ class AddTaskLockIndexOnResourceTypeAndTaskId < ActiveRecord::Migration[6.0]
2
+ def change
3
+ add_index :foreman_tasks_locks, [:task_id, :resource_type, :resource_id], name: 'index_tasks_locks_on_task_id_resource_type_and_resource_id'
4
+ # These indexes are not needed as they can be gained from partial index lookups
5
+ remove_index :foreman_tasks_locks, :task_id
6
+ remove_index :foreman_tasks_locks, :name
7
+ remove_index :foreman_tasks_locks, :resource_type
8
+ end
9
+ end
@@ -79,11 +79,6 @@ module ForemanTasks
79
79
  end
80
80
  end
81
81
 
82
- initializer 'foreman_tasks.ignore_dynflow_tables' do |_app|
83
- # Ignore Dynflow tables when schema-dumping. Dynflow tables are handled automatically by Dynflow.
84
- ActiveRecord::SchemaDumper.ignore_tables << /^dynflow_.*$/
85
- end
86
-
87
82
  initializer 'foreman_tasks.apipie' do
88
83
  # this condition is here for compatibility reason to work with Foreman 1.4.x
89
84
  if Apipie.configuration.api_controllers_matcher.is_a?(Array) &&
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_tasks 0.2.5\n"
8
+ "Project-Id-Version: foreman_tasks 0.3.4\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "PO-Revision-Date: 2016-02-03 09:55-0500\n"
11
11
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@@ -26,6 +26,9 @@ msgstr ""
26
26
  msgid "%(older)s Older %(time)s"
27
27
  msgstr ""
28
28
 
29
+ msgid "%s Selected Tasks"
30
+ msgstr ""
31
+
29
32
  msgid "%s is not valid format of cron line"
30
33
  msgstr ""
31
34
 
@@ -74,9 +77,6 @@ msgstr ""
74
77
  msgid "Allow triggering tasks on the smart proxy in batches"
75
78
  msgstr ""
76
79
 
77
- msgid "Allow unlocking actions which can have dangerous consequences."
78
- msgstr ""
79
-
80
80
  msgid "Associated resources"
81
81
  msgstr ""
82
82
 
@@ -99,9 +99,6 @@ msgstr ""
99
99
  msgid "Cancel Selected"
100
100
  msgstr ""
101
101
 
102
- msgid "Cancel Selected Tasks"
103
- msgstr ""
104
-
105
102
  msgid "Cancel all cancellable tasks"
106
103
  msgstr ""
107
104
 
@@ -123,12 +120,18 @@ msgstr ""
123
120
  msgid "Canceling selected tasks, this might take a while"
124
121
  msgstr ""
125
122
 
123
+ msgid "Canceling with force selected tasks, this might take a while"
124
+ msgstr ""
125
+
126
126
  msgid "Cancelled"
127
127
  msgstr ""
128
128
 
129
129
  msgid "Cannot cancel tasks at the moment"
130
130
  msgstr ""
131
131
 
132
+ msgid "Cannot force cancel tasks at the moment"
133
+ msgstr ""
134
+
132
135
  msgid "Cannot resume tasks at the moment"
133
136
  msgstr ""
134
137
 
@@ -150,6 +153,9 @@ msgstr ""
150
153
  msgid "Conflicts with tasks:"
151
154
  msgstr ""
152
155
 
156
+ msgid "Could not cancel step."
157
+ msgstr ""
158
+
153
159
  msgid "Could not receive data: ${error && error.message}"
154
160
  msgstr ""
155
161
 
@@ -246,6 +252,15 @@ msgstr ""
246
252
  msgid "Finished"
247
253
  msgstr ""
248
254
 
255
+ msgid "Force Cancel"
256
+ msgstr ""
257
+
258
+ msgid "Force Cancel Selected"
259
+ msgstr ""
260
+
261
+ msgid "Force Cancel selected tasks"
262
+ msgstr ""
263
+
249
264
  msgid "Force Unlock"
250
265
  msgstr ""
251
266
 
@@ -463,9 +478,6 @@ msgstr ""
463
478
  msgid "Resume Selected"
464
479
  msgstr ""
465
480
 
466
- msgid "Resume Selected Tasks"
467
- msgstr ""
468
-
469
481
  msgid "Resume all paused error tasks"
470
482
  msgstr ""
471
483
 
@@ -544,6 +556,18 @@ msgstr ""
544
556
  msgid "State"
545
557
  msgstr ""
546
558
 
559
+ msgid "Step Canceled"
560
+ msgstr ""
561
+
562
+ msgid "Stop all stoppable tasks"
563
+ msgstr ""
564
+
565
+ msgid "Stop specific tasks by ID"
566
+ msgstr ""
567
+
568
+ msgid "Stop tasks matching search string"
569
+ msgstr ""
570
+
547
571
  msgid "Stopped"
548
572
  msgstr ""
549
573
 
@@ -568,6 +592,9 @@ msgstr ""
568
592
  msgid "Task aborted: the task might be still running on the proxy"
569
593
  msgstr ""
570
594
 
595
+ msgid "Task cannot be canceled"
596
+ msgstr ""
597
+
571
598
  msgid "Task count"
572
599
  msgstr ""
573
600
 
@@ -586,9 +613,6 @@ msgstr ""
586
613
  msgid "The ID of the step inside the execution plan to send the event to"
587
614
  msgstr ""
588
615
 
589
- msgid "The execution has to be paused."
590
- msgstr ""
591
-
592
616
  msgid "The recommended approach is to investigate the error messages below and in 'errors' tab, address the primary cause of the issue and resume the task."
593
617
  msgstr ""
594
618
 
@@ -604,12 +628,6 @@ msgstr ""
604
628
  msgid "The task could not be started"
605
629
  msgstr ""
606
630
 
607
- msgid "The task resources were unlocked with force."
608
- msgstr ""
609
-
610
- msgid "The task resources were unlocked."
611
- msgstr ""
612
-
613
631
  msgid "There is %{count} paused task in the system that need attention"
614
632
  msgid_plural "There are %{count} paused tasks in the system that need attention"
615
633
  msgstr[0] ""
@@ -633,7 +651,7 @@ msgstr ""
633
651
  msgid "Trying to abort the task"
634
652
  msgstr ""
635
653
 
636
- msgid "Trying to cancel step %s"
654
+ msgid "Trying to cancel step"
637
655
  msgstr ""
638
656
 
639
657
  msgid "Tue"
@@ -675,6 +693,9 @@ msgstr ""
675
693
  msgid "activation key"
676
694
  msgstr ""
677
695
 
696
+ msgid "cannot be cancelled with force at the moment."
697
+ msgstr ""
698
+
678
699
  msgid "content view"
679
700
  msgstr ""
680
701
 
@@ -731,6 +752,15 @@ msgstr ""
731
752
  msgid "repository"
732
753
  msgstr ""
733
754
 
755
+ msgid "resources cannot be unlocked at the moment."
756
+ msgstr ""
757
+
758
+ msgid "resources were unlocked "
759
+ msgstr ""
760
+
761
+ msgid "resources were unlocked with force."
762
+ msgstr ""
763
+
734
764
  msgid "result"
735
765
  msgstr ""
736
766
 
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_tasks 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2020-05-14 20:47+0530\n"
12
- "PO-Revision-Date: 2020-05-14 20:47+0530\n"
11
+ "POT-Creation-Date: 2020-06-22 23:35+0530\n"
12
+ "PO-Revision-Date: 2020-06-22 23:35+0530\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -60,6 +60,7 @@ msgstr ""
60
60
 
61
61
  #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:93
62
62
  #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:128
63
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:149
63
64
  msgid "Please provide at least one of search or task_ids parameters in the request"
64
65
  msgstr ""
65
66
 
@@ -76,93 +77,89 @@ msgid "Cancel specific tasks by ID"
76
77
  msgstr ""
77
78
 
78
79
  #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:144
79
- msgid "List tasks"
80
+ msgid "Stop all stoppable tasks"
80
81
  msgstr ""
81
82
 
82
83
  #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:145
83
- msgid "Search string"
84
+ msgid "Stop tasks matching search string"
84
85
  msgstr ""
85
86
 
86
87
  #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:146
88
+ msgid "Stop specific tasks by ID"
89
+ msgstr ""
90
+
91
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:172
92
+ msgid "List tasks"
93
+ msgstr ""
94
+
95
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:173
96
+ msgid "Search string"
97
+ msgstr ""
98
+
99
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:174
87
100
  msgid "Page number, starting at 1"
88
101
  msgstr ""
89
102
 
90
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:147
103
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:175
91
104
  msgid "Number of results per page to return"
92
105
  msgstr ""
93
106
 
94
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:148
107
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:176
95
108
  msgid "Sort field and order, e.g. 'name DESC'"
96
109
  msgstr ""
97
110
 
98
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:149
111
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:177
99
112
  msgid "Hash version of 'order' param"
100
113
  msgstr ""
101
114
 
102
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:150
115
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:178
103
116
  msgid "Field to sort the results on"
104
117
  msgstr ""
105
118
 
106
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:151
119
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:179
107
120
  msgid "How to order the sorted results (e.g. ASC for ascending)"
108
121
  msgstr ""
109
122
 
110
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:160
123
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:188
111
124
  msgid "UUID of the task"
112
125
  msgstr ""
113
126
 
114
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:161
127
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:189
115
128
  msgid "The ID of the step inside the execution plan to send the event to"
116
129
  msgstr ""
117
130
 
118
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:167
131
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:195
119
132
  msgid "Data to be sent to the action"
120
133
  msgstr ""
121
134
 
122
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:170
135
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:198
123
136
  msgid "Send data to the task from external executor (such as smart_proxy_dynflow)"
124
137
  msgstr ""
125
138
 
126
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:211
139
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:239
127
140
  msgid "User search_params requires user_id to be specified"
128
141
  msgstr ""
129
142
 
130
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:220
143
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:248
131
144
  msgid "Resource search_params requires resource_type and resource_id to be specified"
132
145
  msgstr ""
133
146
 
134
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:227
147
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:255
135
148
  msgid "Task search_params requires task_id to be specified"
136
149
  msgstr ""
137
150
 
138
- #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:231
151
+ #: ../app/controllers/foreman_tasks/api/tasks_controller.rb:259
139
152
  msgid "Type %s for search_params is not supported"
140
153
  msgstr ""
141
154
 
142
- #: ../app/controllers/foreman_tasks/tasks_controller.rb:36
143
- msgid "Trying to cancel step %s"
144
- msgstr ""
145
-
146
- #: ../app/controllers/foreman_tasks/tasks_controller.rb:53
155
+ #: ../app/controllers/foreman_tasks/tasks_controller.rb:54
147
156
  msgid "Trying to abort the task"
148
157
  msgstr ""
149
158
 
150
- #: ../app/controllers/foreman_tasks/tasks_controller.rb:55
159
+ #: ../app/controllers/foreman_tasks/tasks_controller.rb:56
151
160
  msgid "The task cannot be aborted at the moment."
152
161
  msgstr ""
153
162
 
154
- #: ../app/controllers/foreman_tasks/tasks_controller.rb:75
155
- msgid "The task resources were unlocked."
156
- msgstr ""
157
-
158
- #: ../app/controllers/foreman_tasks/tasks_controller.rb:77
159
- msgid "The execution has to be paused."
160
- msgstr ""
161
-
162
- #: ../app/controllers/foreman_tasks/tasks_controller.rb:86
163
- msgid "The task resources were unlocked with force."
164
- msgstr ""
165
-
166
163
  #: ../app/helpers/foreman_tasks/foreman_tasks_helper.rb:44
167
164
  msgid "Enable"
168
165
  msgstr ""
@@ -173,9 +170,10 @@ msgstr ""
173
170
 
174
171
  #: ../app/helpers/foreman_tasks/foreman_tasks_helper.rb:46
175
172
  #: ../app/views/foreman_tasks/recurring_logics/index.html.erb:30
176
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:19
177
- #: ../webpack/ForemanTasks/Components/common/ActionButtons/CancelButton.js:9
178
- #: ../webpack/ForemanTasks/Components/common/ClickConfirmation/index.js:52
173
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:29
174
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:103
175
+ #: ../webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.js:28
176
+ #: ../webpack/ForemanTasks/Components/common/ClickConfirmation/index.js:56
179
177
  msgid "Cancel"
180
178
  msgstr ""
181
179
 
@@ -184,15 +182,16 @@ msgstr ""
184
182
  #: ../db/seeds.d/30-notification_blueprints.rb:18
185
183
  #: ../db/seeds.d/30-notification_blueprints.rb:33
186
184
  #: ../db/seeds.d/30-notification_blueprints.rb:40
185
+ #: ../db/seeds.d/30-notification_blueprints.rb:47
187
186
  #: ../lib/foreman_tasks/engine.rb:41
188
187
  #: ../webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js:10
189
188
  #: ../webpack/ForemanTasks/Components/TasksTable/TasksIndexPage.js:7
190
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:204
189
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:133
191
190
  msgid "Tasks"
192
191
  msgstr ""
193
192
 
194
193
  #: ../app/helpers/foreman_tasks/foreman_tasks_helper.rb:119
195
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:142
194
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:120
196
195
  #: ../webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js:15
197
196
  #: ../webpack/ForemanTasks/Components/TasksTable/SubTasksPage.js:19
198
197
  msgid "Sub tasks"
@@ -337,7 +336,7 @@ msgstr ""
337
336
  msgid "Import facts"
338
337
  msgstr ""
339
338
 
340
- #: ../app/lib/actions/foreman/puppetclass/import.rb:18 action_names.rb:2
339
+ #: ../app/lib/actions/foreman/puppetclass/import.rb:18 action_names.rb:3
341
340
  msgid "Import Puppet classes"
342
341
  msgstr ""
343
342
 
@@ -446,12 +445,12 @@ msgid "Finished"
446
445
  msgstr ""
447
446
 
448
447
  #: ../app/models/foreman_tasks/recurring_logic.rb:142
449
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableSelectors.js:39
448
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableSelectors.js:36
450
449
  msgid "Disabled"
451
450
  msgstr ""
452
451
 
453
452
  #: ../app/models/foreman_tasks/recurring_logic.rb:144
454
- #: ../app/models/foreman_tasks/task.rb:105
453
+ #: ../app/models/foreman_tasks/task.rb:109
455
454
  #: ../app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb:14
456
455
  #: ../app/views/foreman_tasks/tasks/dashboard/_tasks_status.html.erb:14
457
456
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/TaskHelper.js:10
@@ -470,11 +469,11 @@ msgstr ""
470
469
  msgid "Cannot update a cancelled Recurring Logic."
471
470
  msgstr ""
472
471
 
473
- #: ../app/models/foreman_tasks/task.rb:90
472
+ #: ../app/models/foreman_tasks/task.rb:94
474
473
  msgid "Delayed"
475
474
  msgstr ""
476
475
 
477
- #: ../app/models/foreman_tasks/task.rb:90
476
+ #: ../app/models/foreman_tasks/task.rb:94
478
477
  msgid "Immediate"
479
478
  msgstr ""
480
479
 
@@ -517,51 +516,47 @@ msgid "Number of seconds to wait for synchronous task to finish."
517
516
  msgstr ""
518
517
 
519
518
  #: ../app/models/setting/foreman_tasks.rb:5
520
- msgid "Allow unlocking actions which can have dangerous consequences."
521
- msgstr ""
522
-
523
- #: ../app/models/setting/foreman_tasks.rb:6
524
519
  msgid "Enable the dynflow console (/foreman_tasks/dynflow) for debugging"
525
520
  msgstr ""
526
521
 
527
- #: ../app/models/setting/foreman_tasks.rb:7
522
+ #: ../app/models/setting/foreman_tasks.rb:6
528
523
  msgid ""
529
524
  "Require user to be authenticated as user with admin rights when accessing dynf"
530
525
  "low console"
531
526
  msgstr ""
532
527
 
533
- #: ../app/models/setting/foreman_tasks.rb:8
528
+ #: ../app/models/setting/foreman_tasks.rb:7
534
529
  msgid "Number of attempts to start a task on the smart proxy before failing"
535
530
  msgstr ""
536
531
 
537
- #: ../app/models/setting/foreman_tasks.rb:9
532
+ #: ../app/models/setting/foreman_tasks.rb:8
538
533
  msgid "Time in seconds between retries"
539
534
  msgstr ""
540
535
 
541
- #: ../app/models/setting/foreman_tasks.rb:10
536
+ #: ../app/models/setting/foreman_tasks.rb:9
542
537
  msgid "Allow triggering tasks on the smart proxy in batches"
543
538
  msgstr ""
544
539
 
545
- #: ../app/models/setting/foreman_tasks.rb:11
540
+ #: ../app/models/setting/foreman_tasks.rb:10
546
541
  msgid ""
547
542
  "Number of tasks which should be sent to the smart proxy in one request, if for"
548
543
  "eman_tasks_proxy_batch_trigger is enabled"
549
544
  msgstr ""
550
545
 
551
- #: ../app/models/setting/foreman_tasks.rb:13
546
+ #: ../app/models/setting/foreman_tasks.rb:12
552
547
  msgid ""
553
548
  "Url pointing to the task troubleshooting documentation. It should contain %{la"
554
549
  "bel} placeholder, that will be replaced with normalized task label (restricted"
555
550
  " to only alphanumeric characters)). %{version} placeholder is also available."
556
551
  msgstr ""
557
552
 
558
- #: ../app/models/setting/foreman_tasks.rb:18
553
+ #: ../app/models/setting/foreman_tasks.rb:17
559
554
  msgid ""
560
555
  "Polling multiplier which is used to multiply the default polling intervals. Th"
561
556
  "is can be used to prevent polling too frequently for long running tasks."
562
557
  msgstr ""
563
558
 
564
- #: ../app/models/setting/foreman_tasks.rb:21
559
+ #: ../app/models/setting/foreman_tasks.rb:20
565
560
  msgid "Polling intervals multiplier"
566
561
  msgstr ""
567
562
 
@@ -631,7 +626,7 @@ msgstr ""
631
626
  #: ../app/views/foreman_tasks/recurring_logics/index.html.erb:42
632
627
  #: ../app/views/foreman_tasks/task_groups/recurring_logic_task_groups/_recurring_logic_task_group.html.erb:12
633
628
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js:18
634
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:25
629
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:35
635
630
  #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableSchema.js:56
636
631
  msgid "Action"
637
632
  msgstr ""
@@ -665,7 +660,7 @@ msgstr ""
665
660
  #: ../app/views/foreman_tasks/task_groups/recurring_logic_task_groups/_recurring_logic_task_group.html.erb:36
666
661
  #: ../app/views/foreman_tasks/tasks/dashboard/_latest_tasks_in_error_warning.html.erb:5
667
662
  #: ../app/views/foreman_tasks/tasks/dashboard/_tasks_status.html.erb:4
668
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:30
663
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:40
669
664
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/TaskInfo.js:150
670
665
  #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableSchema.js:61
671
666
  msgid "State"
@@ -753,6 +748,54 @@ msgstr ""
753
748
  msgid "Recurring Logics"
754
749
  msgstr ""
755
750
 
751
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:37
752
+ msgid "was resumed"
753
+ msgstr ""
754
+
755
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:38
756
+ msgid "could not be resumed"
757
+ msgstr ""
758
+
759
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:39
760
+ msgid "task has to be resumable"
761
+ msgstr ""
762
+
763
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:43
764
+ msgid "was cancelled"
765
+ msgstr ""
766
+
767
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:44
768
+ msgid "task has to be cancellable"
769
+ msgstr ""
770
+
771
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:48
772
+ msgid "resources were unlocked with force."
773
+ msgstr ""
774
+
775
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:49
776
+ msgid "cannot be cancelled with force at the moment."
777
+ msgstr ""
778
+
779
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:53
780
+ msgid "resources were unlocked "
781
+ msgstr ""
782
+
783
+ #: ../webpack/ForemanTasks/Components/TaskActions/TaskActionHelpers.js:54
784
+ msgid "resources cannot be unlocked at the moment."
785
+ msgstr ""
786
+
787
+ #: ../webpack/ForemanTasks/Components/TaskActions/UnlockModals.js:14
788
+ #: ../webpack/ForemanTasks/Components/TaskActions/UnlockModals.js:19
789
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:129
790
+ msgid "Unlock"
791
+ msgstr ""
792
+
793
+ #: ../webpack/ForemanTasks/Components/TaskActions/UnlockModals.js:28
794
+ #: ../webpack/ForemanTasks/Components/TaskActions/UnlockModals.js:36
795
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:137
796
+ msgid "Force Unlock"
797
+ msgstr ""
798
+
756
799
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js:10
757
800
  msgid "Execution plan data not available "
758
801
  msgstr ""
@@ -762,12 +805,12 @@ msgid "No errors"
762
805
  msgstr ""
763
806
 
764
807
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js:22
765
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:33
808
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:43
766
809
  msgid "Input"
767
810
  msgstr ""
768
811
 
769
812
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js:26
770
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:37
813
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:47
771
814
  msgid "Output"
772
815
  msgstr ""
773
816
 
@@ -804,31 +847,24 @@ msgstr ""
804
847
  msgid "External Id"
805
848
  msgstr ""
806
849
 
807
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:7
850
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js:13
808
851
  msgid "No running steps"
809
852
  msgstr ""
810
853
 
811
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:50
812
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:57
813
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:151
814
- msgid "Unlock"
815
- msgstr ""
816
-
817
854
  #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:67
818
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:74
819
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:160
820
- msgid "Force Unlock"
821
- msgstr ""
822
-
823
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:98
824
855
  msgid "${taskReload ? 'Stop' : 'Start'} auto-reloading"
825
856
  msgstr ""
826
857
 
827
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:105
858
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:77
828
859
  msgid "Dynflow console"
829
860
  msgstr ""
830
861
 
831
- #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:134
862
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:90
863
+ #: ../webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.js:17
864
+ msgid "Resume"
865
+ msgstr ""
866
+
867
+ #: ../webpack/ForemanTasks/Components/TaskDetails/Components/Task.js:111
832
868
  msgid "Parent task"
833
869
  msgstr ""
834
870
 
@@ -852,26 +888,38 @@ msgstr ""
852
888
  msgid "Errors:"
853
889
  msgstr ""
854
890
 
855
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:42
891
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:59
856
892
  msgid "Task"
857
893
  msgstr ""
858
894
 
859
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:45
895
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:70
860
896
  msgid "Running Steps"
861
897
  msgstr ""
862
898
 
863
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:51
899
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:79
864
900
  msgid "Errors"
865
901
  msgstr ""
866
902
 
867
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:54
903
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:82
868
904
  msgid "Locks"
869
905
  msgstr ""
870
906
 
871
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:57
907
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js:85
872
908
  msgid "Raw"
873
909
  msgstr ""
874
910
 
911
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:114
912
+ msgid "Trying to cancel step"
913
+ msgstr ""
914
+
915
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:120
916
+ msgid "Step Canceled"
917
+ msgstr ""
918
+
919
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:126
920
+ msgid "Could not cancel step."
921
+ msgstr ""
922
+
875
923
  #:
876
924
  #: ../webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.js:8
877
925
  msgid "Paused"
@@ -1005,46 +1053,53 @@ msgid "week"
1005
1053
  msgstr ""
1006
1054
 
1007
1055
  #:
1008
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:8
1056
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:13
1009
1057
  msgid "Select Action"
1010
1058
  msgstr ""
1011
1059
 
1012
1060
  #:
1013
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:13
1061
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:18
1014
1062
  msgid "Cancel selected tasks"
1015
1063
  msgstr ""
1016
1064
 
1017
1065
  #:
1018
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:17
1066
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:22
1019
1067
  msgid "Cancel Selected"
1020
1068
  msgstr ""
1021
1069
 
1022
1070
  #:
1023
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:20
1071
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:25
1024
1072
  msgid "Resume selected tasks"
1025
1073
  msgstr ""
1026
1074
 
1027
1075
  #:
1028
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:24
1076
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:29
1029
1077
  msgid "Resume Selected"
1030
1078
  msgstr ""
1031
1079
 
1032
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/CancelConfirm.js:14
1033
- msgid "Cancel Selected Tasks"
1080
+ #:
1081
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:32
1082
+ msgid "Force Cancel selected tasks"
1034
1083
  msgstr ""
1035
1084
 
1036
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/CancelConfirm.js:23
1037
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ResumeConfirm.js:22
1038
- msgid "No"
1085
+ #:
1086
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js:36
1087
+ msgid "Force Cancel Selected"
1039
1088
  msgstr ""
1040
1089
 
1041
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/CancelConfirm.js:31
1042
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ResumeConfirm.js:30
1043
- msgid "Yes"
1090
+ #:
1091
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/ConfirmModal.js:37
1092
+ msgid "%s Selected Tasks"
1044
1093
  msgstr ""
1045
1094
 
1046
- #: ../webpack/ForemanTasks/Components/TasksTable/Components/ResumeConfirm.js:14
1047
- msgid "Resume Selected Tasks"
1095
+ #:
1096
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/ConfirmModal.js:47
1097
+ msgid "No"
1098
+ msgstr ""
1099
+
1100
+ #:
1101
+ #: ../webpack/ForemanTasks/Components/TasksTable/Components/ConfirmModal/ConfirmModal.js:56
1102
+ msgid "Yes"
1048
1103
  msgstr ""
1049
1104
 
1050
1105
  #:
@@ -1076,56 +1131,44 @@ msgstr ""
1076
1131
  msgid "Sub tasks of %s"
1077
1132
  msgstr ""
1078
1133
 
1079
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:46
1134
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:56
1080
1135
  msgid "Cannot resume tasks at the moment"
1081
1136
  msgstr ""
1082
1137
 
1083
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:61
1138
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:70
1084
1139
  msgid "Not all the selected tasks can be resumed"
1085
1140
  msgstr ""
1086
1141
 
1087
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:97
1142
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:105
1088
1143
  msgid "Resuming selected tasks, this might take a while"
1089
1144
  msgstr ""
1090
1145
 
1091
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:108
1146
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:115
1092
1147
  msgid "Cannot cancel tasks at the moment"
1093
1148
  msgstr ""
1094
1149
 
1095
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:121
1150
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:127
1096
1151
  msgid "Canceling selected tasks, this might take a while"
1097
1152
  msgstr ""
1098
1153
 
1099
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:137
1154
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:142
1100
1155
  msgid "Not all the selected tasks can be cancelled"
1101
1156
  msgstr ""
1102
1157
 
1103
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTable.js:68
1104
- msgid "Could not receive data: ${error && error.message}"
1105
- msgstr ""
1106
-
1107
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTable.js:78
1108
- msgid "No Tasks"
1109
- msgstr ""
1110
-
1111
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableActionHelpers.js:32
1112
- msgid "was resumed"
1158
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:176
1159
+ msgid "Cannot force cancel tasks at the moment"
1113
1160
  msgstr ""
1114
1161
 
1115
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableActionHelpers.js:33
1116
- msgid "could not be resumed"
1162
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksBulkActions.js:238
1163
+ msgid "Canceling with force selected tasks, this might take a while"
1117
1164
  msgstr ""
1118
1165
 
1119
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableActionHelpers.js:34
1120
- msgid "task has to be resumable"
1121
- msgstr ""
1122
-
1123
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableActionHelpers.js:38
1124
- msgid "was cancelled"
1166
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTable.js:70
1167
+ msgid "Could not receive data: ${error && error.message}"
1125
1168
  msgstr ""
1126
1169
 
1127
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableActionHelpers.js:39
1128
- msgid "task has to be cancellable"
1170
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTable.js:80
1171
+ msgid "No Tasks"
1129
1172
  msgstr ""
1130
1173
 
1131
1174
  #: ../webpack/ForemanTasks/Components/TasksTable/TasksTableHelpers.js:34
@@ -1144,7 +1187,7 @@ msgstr ""
1144
1187
  msgid "Less than a second"
1145
1188
  msgstr ""
1146
1189
 
1147
- #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:131
1190
+ #: ../webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js:69
1148
1191
  msgid "Export All"
1149
1192
  msgstr ""
1150
1193
 
@@ -1156,10 +1199,14 @@ msgstr ""
1156
1199
  msgid "Operation"
1157
1200
  msgstr ""
1158
1201
 
1159
- #: ../webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js:9
1160
- msgid "Resume"
1202
+ #: ../webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.js:14
1203
+ msgid "Task cannot be canceled"
1204
+ msgstr ""
1205
+
1206
+ #: ../webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.js:39
1207
+ msgid "Force Cancel"
1161
1208
  msgstr ""
1162
1209
 
1163
- #: action_names.rb:3
1210
+ #: action_names.rb:2
1164
1211
  msgid "Action with sub plans"
1165
1212
  msgstr ""