foreman-tasks 9.2.0 → 9.2.2

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.
@@ -46,7 +46,7 @@ module Actions
46
46
  notify ::Actions::ProxyAction::ProxyActionMissing.new, missing if missing.any?
47
47
 
48
48
  stopped = present.select { |task| %w[stopped paused].include? results.dig(task.remote_task_id, 'state') }
49
- notify ::Actions::ProxyAction::ProxyActionStopped.new, stopped if stopped.any?
49
+ notify ::Actions::ProxyAction::ProxyActionStoppedEvent[nil], stopped if stopped.any?
50
50
  end
51
51
 
52
52
  def notify(event, tasks)
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '9.2.0'.freeze
2
+ VERSION = '9.2.2'.freeze
3
3
  end
@@ -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: 2023-11-28 22:09+0100\n"
12
- "PO-Revision-Date: 2023-11-28 22:09+0100\n"
11
+ "POT-Creation-Date: 2024-07-10 19:55+0200\n"
12
+ "PO-Revision-Date: 2024-07-10 19:55+0200\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -312,15 +312,15 @@ msgstr ""
312
312
  msgid "%{total} task(s), %{success} success, %{failed} fail"
313
313
  msgstr ""
314
314
 
315
- #: ../app/lib/actions/bulk_action.rb:28
315
+ #: ../app/lib/actions/bulk_action.rb:29
316
316
  msgid "Bulk action"
317
317
  msgstr ""
318
318
 
319
- #: ../app/lib/actions/bulk_action.rb:62
319
+ #: ../app/lib/actions/bulk_action.rb:63
320
320
  msgid "Empty bulk action"
321
321
  msgstr ""
322
322
 
323
- #: ../app/lib/actions/bulk_action.rb:64
323
+ #: ../app/lib/actions/bulk_action.rb:65
324
324
  msgid "The targets are of different types"
325
325
  msgstr ""
326
326
 
@@ -1049,11 +1049,11 @@ msgstr ""
1049
1049
  msgid "Trying to cancel step"
1050
1050
  msgstr ""
1051
1051
 
1052
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:45
1052
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:46
1053
1053
  msgid "Step Canceled"
1054
1054
  msgstr ""
1055
1055
 
1056
- #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:51
1056
+ #: ../webpack/ForemanTasks/Components/TaskDetails/TaskDetailsActions.js:53
1057
1057
  msgid "Could not cancel step."
1058
1058
  msgstr ""
1059
1059
 
@@ -42,7 +42,9 @@ export const cancelStep = (taskId, stepId) => async dispatch => {
42
42
  key: TASK_STEP_CANCEL,
43
43
  url: foremanTasksPath(`${taskId}/cancel_step?step_id=${stepId}`),
44
44
  handleSuccess: () => {
45
- dispatch(addToast(successToastData(`${stepId} {__('Step Canceled')}`)));
45
+ dispatch(
46
+ addToast(successToastData(`${stepId} ${__('Step Canceled')}`))
47
+ );
46
48
  },
47
49
  handleError: error => {
48
50
  dispatch(
@@ -1,15 +1,10 @@
1
1
  import { testActionSnapshotWithFixtures } from '@theforeman/test';
2
- import { API } from 'foremanReact/redux/API';
3
2
  import {
4
3
  taskReloadStop,
5
4
  taskReloadStart,
6
5
  cancelStep,
7
6
  } from '../TaskDetailsActions';
8
7
 
9
- jest.mock('foremanReact/redux/API');
10
-
11
- API.post.mockImplementation(async () => ({ data: 'some-data' }));
12
-
13
8
  const fixtures = {
14
9
  'should start reload': () => taskReloadStart(1),
15
10
  'should stop reload': () => taskReloadStop(),
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: 9.2.0
4
+ version: 9.2.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: 2024-06-12 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynflow