foreman-tasks 13.2.3 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/js_tests.yml +6 -2
- data/.github/workflows/ruby_tests.yml +2 -2
- data/.github/workflows/test-breaking.yaml +1 -1
- data/README.md +29 -3
- data/app/assets/javascripts/foreman-tasks/locale/de/foreman_tasks.js +8 -8
- data/app/assets/javascripts/foreman-tasks/locale/en/foreman_tasks.js +1 -1
- data/app/assets/javascripts/foreman-tasks/locale/es/foreman_tasks.js +7 -7
- data/app/assets/javascripts/foreman-tasks/locale/fr/foreman_tasks.js +38 -38
- data/app/assets/javascripts/foreman-tasks/locale/ja/foreman_tasks.js +55 -55
- data/app/assets/javascripts/foreman-tasks/locale/ka/foreman_tasks.js +5 -5
- data/app/assets/javascripts/foreman-tasks/locale/ko/foreman_tasks.js +39 -39
- data/app/assets/javascripts/foreman-tasks/locale/pt_BR/foreman_tasks.js +6 -6
- data/app/assets/javascripts/foreman-tasks/locale/ru/foreman_tasks.js +5 -5
- data/app/assets/javascripts/foreman-tasks/locale/zh_CN/foreman_tasks.js +36 -36
- data/app/assets/javascripts/foreman-tasks/locale/zh_TW/foreman_tasks.js +6 -6
- data/eslint.spelling.config.js +52 -0
- data/lib/foreman_tasks/engine.rb +1 -1
- data/lib/foreman_tasks/version.rb +1 -1
- data/locale/de/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/de/foreman_tasks.po +8 -8
- data/locale/en/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/en/foreman_tasks.po +1 -1
- data/locale/es/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/es/foreman_tasks.po +7 -7
- data/locale/foreman_tasks.pot +2 -2
- data/locale/fr/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/fr/foreman_tasks.po +38 -38
- data/locale/ja/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ja/foreman_tasks.po +55 -55
- data/locale/ka/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ka/foreman_tasks.po +5 -5
- data/locale/ko/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ko/foreman_tasks.po +39 -39
- data/locale/pt_BR/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/pt_BR/foreman_tasks.po +6 -6
- data/locale/ru/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/ru/foreman_tasks.po +5 -5
- data/locale/zh_CN/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/zh_CN/foreman_tasks.po +36 -36
- data/locale/zh_TW/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/zh_TW/foreman_tasks.po +6 -6
- data/package.json +12 -19
- data/webpack/ForemanTasks/Components/TaskActions/TaskAction.test.js +0 -4
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksBulkActions.test.js +414 -162
- metadata +2 -4
- data/.eslintrc +0 -4
- data/babel.config.js +0 -3
- data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksBulkActions.test.js.snap +0 -367
|
@@ -1,367 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TasksBulkActions Test reloadPage callback handles bulkCancelById requests 1`] = `
|
|
4
|
-
Array [
|
|
5
|
-
Array [
|
|
6
|
-
Object {
|
|
7
|
-
"type": "TASKS_CANCEL_REQUEST",
|
|
8
|
-
},
|
|
9
|
-
],
|
|
10
|
-
Array [
|
|
11
|
-
Object {
|
|
12
|
-
"type": "TASKS_CANCEL_SUCCESS",
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
Array [
|
|
16
|
-
Object {
|
|
17
|
-
"payload": Object {
|
|
18
|
-
"message": Object {
|
|
19
|
-
"message": "I am cancelled Task execution was cancelled",
|
|
20
|
-
"type": "success",
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
"type": "TOASTS_ADD",
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
]
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
exports[`TasksBulkActions handles bulkCancelById requests that are not cancellable 1`] = `
|
|
31
|
-
Array [
|
|
32
|
-
Array [
|
|
33
|
-
Object {
|
|
34
|
-
"payload": Object {
|
|
35
|
-
"message": Object {
|
|
36
|
-
"message": "Not all the selected tasks can be cancelled",
|
|
37
|
-
"type": "warning",
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
"type": "TOASTS_ADD",
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
]
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
exports[`TasksBulkActions handles bulkCancelById requests with canEdit false 1`] = `
|
|
47
|
-
Array [
|
|
48
|
-
Array [
|
|
49
|
-
Object {
|
|
50
|
-
"payload": Object {
|
|
51
|
-
"message": Object {
|
|
52
|
-
"message": "Not all the selected tasks can be cancelled",
|
|
53
|
-
"type": "warning",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
"type": "TOASTS_ADD",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
]
|
|
60
|
-
`;
|
|
61
|
-
|
|
62
|
-
exports[`TasksBulkActions handles bulkCancelBySearch requests 1`] = `
|
|
63
|
-
Array [
|
|
64
|
-
Array [
|
|
65
|
-
Object {
|
|
66
|
-
"type": "TASKS_CANCEL_REQUEST",
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
Array [
|
|
70
|
-
Object {
|
|
71
|
-
"payload": Object {
|
|
72
|
-
"message": Object {
|
|
73
|
-
"message": "Canceling selected tasks, this might take a while",
|
|
74
|
-
"type": "info",
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
"type": "TOASTS_ADD",
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
]
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
exports[`TasksBulkActions Test reloadPage callback handles bulkForceCancelById requests 1`] = `
|
|
84
|
-
Array [
|
|
85
|
-
Array [
|
|
86
|
-
Object {
|
|
87
|
-
"type": "TASKS_FORCE_CANCEL_REQUEST",
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
Array [
|
|
91
|
-
Object {
|
|
92
|
-
"type": "TASKS_FORCE_CANCEL_SUCCESS",
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
Array [
|
|
96
|
-
Object {
|
|
97
|
-
"payload": Object {
|
|
98
|
-
"message": Object {
|
|
99
|
-
"message": "2 task(s) cancelled with force",
|
|
100
|
-
"type": "success",
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
"type": "TOASTS_ADD",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
Array [
|
|
107
|
-
Object {
|
|
108
|
-
"payload": Object {
|
|
109
|
-
"message": Object {
|
|
110
|
-
"message": "4 task(s) are already stopped",
|
|
111
|
-
"type": "warning",
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
"type": "TOASTS_ADD",
|
|
115
|
-
},
|
|
116
|
-
],
|
|
117
|
-
]
|
|
118
|
-
`;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
exports[`TasksBulkActions handles bulkForceCancelById requests that are stopped 1`] = `
|
|
122
|
-
Array [
|
|
123
|
-
Array [
|
|
124
|
-
Object {
|
|
125
|
-
"payload": Object {
|
|
126
|
-
"message": Object {
|
|
127
|
-
"message": "1 task(s) are already stopped",
|
|
128
|
-
"type": "warning",
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
"type": "TOASTS_ADD",
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
]
|
|
135
|
-
`;
|
|
136
|
-
|
|
137
|
-
exports[`TasksBulkActions handles bulkForceCancelById requests that fail 1`] = `
|
|
138
|
-
Array [
|
|
139
|
-
Array [
|
|
140
|
-
Object {
|
|
141
|
-
"type": "TASKS_FORCE_CANCEL_REQUEST",
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
Array [
|
|
145
|
-
Object {
|
|
146
|
-
"error": [Error: Network Error],
|
|
147
|
-
"type": "TASKS_FORCE_CANCEL_FAILURE",
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
Array [
|
|
151
|
-
Object {
|
|
152
|
-
"payload": Object {
|
|
153
|
-
"message": Object {
|
|
154
|
-
"message": "Cannot force cancel tasks at the moment Error: Network Error",
|
|
155
|
-
"type": "error",
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
"type": "TOASTS_ADD",
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
]
|
|
162
|
-
`;
|
|
163
|
-
|
|
164
|
-
exports[`TasksBulkActions handles bulkForceCancelById requests with canEdit false 1`] = `
|
|
165
|
-
Array [
|
|
166
|
-
Array [
|
|
167
|
-
Object {
|
|
168
|
-
"payload": Object {
|
|
169
|
-
"message": Object {
|
|
170
|
-
"message": "User has no permission for 1 task(s)",
|
|
171
|
-
"type": "warning",
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
"type": "TOASTS_ADD",
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
]
|
|
178
|
-
`;
|
|
179
|
-
|
|
180
|
-
exports[`TasksBulkActions handles bulkForceCancelBySearch requests 1`] = `
|
|
181
|
-
Array [
|
|
182
|
-
Array [
|
|
183
|
-
Object {
|
|
184
|
-
"type": "TASKS_FORCE_CANCEL_REQUEST",
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
Array [
|
|
188
|
-
Object {
|
|
189
|
-
"payload": Object {
|
|
190
|
-
"message": Object {
|
|
191
|
-
"message": "Canceling with force selected tasks, this might take a while",
|
|
192
|
-
"type": "info",
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
"type": "TOASTS_ADD",
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
|
-
]
|
|
199
|
-
`;
|
|
200
|
-
|
|
201
|
-
exports[`TasksBulkActions handles bulkResumeById requests that are not resumable 1`] = `
|
|
202
|
-
Array [
|
|
203
|
-
Array [
|
|
204
|
-
Object {
|
|
205
|
-
"payload": Object {
|
|
206
|
-
"message": Object {
|
|
207
|
-
"message": "Not all the selected tasks can be resumed",
|
|
208
|
-
"type": "warning",
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
"type": "TOASTS_ADD",
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
]
|
|
215
|
-
`;
|
|
216
|
-
|
|
217
|
-
exports[`TasksBulkActions handles bulkResumeById requests that fail 1`] = `
|
|
218
|
-
Array [
|
|
219
|
-
Array [
|
|
220
|
-
Object {
|
|
221
|
-
"type": "TASKS_RESUME_REQUEST",
|
|
222
|
-
},
|
|
223
|
-
],
|
|
224
|
-
Array [
|
|
225
|
-
Object {
|
|
226
|
-
"error": [Error: Network Error],
|
|
227
|
-
"type": "TASKS_RESUME_FAILURE",
|
|
228
|
-
},
|
|
229
|
-
],
|
|
230
|
-
Array [
|
|
231
|
-
Object {
|
|
232
|
-
"payload": Object {
|
|
233
|
-
"message": Object {
|
|
234
|
-
"message": "Cannot resume tasks at the moment Error: Network Error",
|
|
235
|
-
"type": "error",
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
"type": "TOASTS_ADD",
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
]
|
|
242
|
-
`;
|
|
243
|
-
|
|
244
|
-
exports[`TasksBulkActions handles bulkResumeById requests with canEdit false 1`] = `
|
|
245
|
-
Array [
|
|
246
|
-
Array [
|
|
247
|
-
Object {
|
|
248
|
-
"payload": Object {
|
|
249
|
-
"message": Object {
|
|
250
|
-
"message": "Not all the selected tasks can be resumed",
|
|
251
|
-
"type": "warning",
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
"type": "TOASTS_ADD",
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
]
|
|
258
|
-
`;
|
|
259
|
-
|
|
260
|
-
exports[`TasksBulkActions handles bulkResumeBySearch requests 1`] = `
|
|
261
|
-
Array [
|
|
262
|
-
Array [
|
|
263
|
-
Object {
|
|
264
|
-
"type": "TASKS_RESUME_REQUEST",
|
|
265
|
-
},
|
|
266
|
-
],
|
|
267
|
-
Array [
|
|
268
|
-
Object {
|
|
269
|
-
"payload": Object {
|
|
270
|
-
"message": Object {
|
|
271
|
-
"message": "Resuming selected tasks, this might take a while",
|
|
272
|
-
"type": "info",
|
|
273
|
-
},
|
|
274
|
-
},
|
|
275
|
-
"type": "TOASTS_ADD",
|
|
276
|
-
},
|
|
277
|
-
],
|
|
278
|
-
]
|
|
279
|
-
`;
|
|
280
|
-
|
|
281
|
-
exports[`TasksBulkActions Test reloadPage callback handles resumable bulkResumeById requests 1`] = `
|
|
282
|
-
Array [
|
|
283
|
-
Array [
|
|
284
|
-
Object {
|
|
285
|
-
"type": "TASKS_RESUME_REQUEST",
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
Array [
|
|
289
|
-
Object {
|
|
290
|
-
"type": "TASKS_RESUME_SUCCESS",
|
|
291
|
-
},
|
|
292
|
-
],
|
|
293
|
-
Array [
|
|
294
|
-
Object {
|
|
295
|
-
"payload": Object {
|
|
296
|
-
"message": Object {
|
|
297
|
-
"message": "I am resumed Task execution was resumed",
|
|
298
|
-
"type": "success",
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
"type": "TOASTS_ADD",
|
|
302
|
-
},
|
|
303
|
-
],
|
|
304
|
-
Array [
|
|
305
|
-
Object {
|
|
306
|
-
"payload": Object {
|
|
307
|
-
"message": Object {
|
|
308
|
-
"message": "I am failed Task execution could not be resumed",
|
|
309
|
-
"type": "error",
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
"type": "TOASTS_ADD",
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
]
|
|
316
|
-
`;
|
|
317
|
-
exports[`TasksBulkActions handles skipped bulkCancelById requests 1`] = `
|
|
318
|
-
Array [
|
|
319
|
-
Array [
|
|
320
|
-
Object {
|
|
321
|
-
"type": "TASKS_CANCEL_REQUEST",
|
|
322
|
-
},
|
|
323
|
-
],
|
|
324
|
-
Array [
|
|
325
|
-
Object {
|
|
326
|
-
"type": "TASKS_CANCEL_SUCCESS",
|
|
327
|
-
},
|
|
328
|
-
],
|
|
329
|
-
Array [
|
|
330
|
-
Object {
|
|
331
|
-
"payload": Object {
|
|
332
|
-
"message": Object {
|
|
333
|
-
"message": "I am skipped Task execution task has to be cancellable",
|
|
334
|
-
"type": "warning",
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
"type": "TOASTS_ADD",
|
|
338
|
-
},
|
|
339
|
-
],
|
|
340
|
-
]
|
|
341
|
-
`;
|
|
342
|
-
|
|
343
|
-
exports[`TasksBulkActions handles skipped bulkResumeById requests 1`] = `
|
|
344
|
-
Array [
|
|
345
|
-
Array [
|
|
346
|
-
Object {
|
|
347
|
-
"type": "TASKS_RESUME_REQUEST",
|
|
348
|
-
},
|
|
349
|
-
],
|
|
350
|
-
Array [
|
|
351
|
-
Object {
|
|
352
|
-
"type": "TASKS_RESUME_SUCCESS",
|
|
353
|
-
},
|
|
354
|
-
],
|
|
355
|
-
Array [
|
|
356
|
-
Object {
|
|
357
|
-
"payload": Object {
|
|
358
|
-
"message": Object {
|
|
359
|
-
"message": "I am skipped Task execution task has to be resumable",
|
|
360
|
-
"type": "warning",
|
|
361
|
-
},
|
|
362
|
-
},
|
|
363
|
-
"type": "TOASTS_ADD",
|
|
364
|
-
},
|
|
365
|
-
],
|
|
366
|
-
]
|
|
367
|
-
`;
|