foreman_remote_execution 13.1.0 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js +1000 -973
  3. data/app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js +553 -526
  4. data/app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js +584 -557
  5. data/app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js +1043 -1016
  6. data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +1047 -1020
  7. data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +1041 -1014
  8. data/app/assets/javascripts/foreman_remote_execution/locale/ka/foreman_remote_execution.js +1015 -988
  9. data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +886 -859
  10. data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js +1047 -1020
  11. data/app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js +901 -874
  12. data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +1041 -1014
  13. data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js +886 -859
  14. data/app/controllers/api/v2/job_invocations_controller.rb +1 -0
  15. data/app/models/job_invocation.rb +23 -0
  16. data/app/models/job_invocation_composer.rb +2 -0
  17. data/app/views/api/v2/job_invocations/base.json.rabl +3 -2
  18. data/app/views/templates/script/package_action.erb +5 -2
  19. data/lib/foreman_remote_execution/version.rb +1 -1
  20. data/locale/de/foreman_remote_execution.po +27 -0
  21. data/locale/en/foreman_remote_execution.po +27 -0
  22. data/locale/en_GB/foreman_remote_execution.po +27 -0
  23. data/locale/es/foreman_remote_execution.po +27 -0
  24. data/locale/foreman_remote_execution.pot +177 -141
  25. data/locale/fr/foreman_remote_execution.po +27 -0
  26. data/locale/ja/foreman_remote_execution.po +27 -0
  27. data/locale/ka/foreman_remote_execution.po +27 -0
  28. data/locale/ko/foreman_remote_execution.po +27 -0
  29. data/locale/pt_BR/foreman_remote_execution.po +27 -0
  30. data/locale/ru/foreman_remote_execution.po +27 -0
  31. data/locale/zh_CN/foreman_remote_execution.po +27 -0
  32. data/locale/zh_TW/foreman_remote_execution.po +27 -0
  33. data/package.json +2 -1
  34. data/webpack/JobInvocationDetail/JobInvocationActions.js +134 -3
  35. data/webpack/JobInvocationDetail/JobInvocationConstants.js +14 -0
  36. data/webpack/JobInvocationDetail/JobInvocationDetail.scss +5 -2
  37. data/webpack/JobInvocationDetail/JobInvocationSelectors.js +5 -0
  38. data/webpack/JobInvocationDetail/JobInvocationSystemStatusChart.js +13 -9
  39. data/webpack/JobInvocationDetail/JobInvocationToolbarButtons.js +268 -0
  40. data/webpack/JobInvocationDetail/__tests__/MainInformation.test.js +259 -0
  41. data/webpack/JobInvocationDetail/__tests__/fixtures.js +117 -0
  42. data/webpack/JobInvocationDetail/index.js +58 -38
  43. data/webpack/JobWizard/JobWizardPageRerun.js +16 -11
  44. data/webpack/JobWizard/steps/HostsAndInputs/HostPreviewModal.js +8 -6
  45. data/webpack/__mocks__/foremanReact/Root/Context/ForemanContext/index.js +2 -0
  46. data/webpack/__mocks__/foremanReact/components/BreadcrumbBar/index.js +4 -0
  47. data/webpack/__mocks__/foremanReact/components/Head/index.js +10 -0
  48. data/webpack/__mocks__/foremanReact/components/HostDetails/DetailsCard/DefaultLoaderEmptyState.js +8 -0
  49. data/webpack/__mocks__/foremanReact/components/ToastsList/index.js +3 -0
  50. data/webpack/__mocks__/foremanReact/redux/API/APIActions.js +21 -0
  51. data/webpack/__mocks__/foremanReact/redux/API/APIConstants.js +7 -0
  52. data/webpack/__mocks__/foremanReact/redux/API/index.js +14 -0
  53. data/webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/index.js +9 -0
  54. metadata +12 -2
@@ -1,5 +1,19 @@
1
1
  export const API = {
2
2
  get: jest.fn(),
3
+ put: jest.fn(),
4
+ post: jest.fn(),
5
+ delete: jest.fn(),
6
+ patch: jest.fn(),
3
7
  };
4
8
 
5
9
  export const get = data => ({ type: 'get-some-type', ...data });
10
+ export const post = data => ({ type: 'post-some-type', ...data });
11
+ export const put = data => ({ type: 'put-some-type', ...data });
12
+ export const patch = data => ({ type: 'patch-some-type', ...data });
13
+
14
+ export const APIActions = {
15
+ get,
16
+ post,
17
+ put,
18
+ patch,
19
+ };
@@ -0,0 +1,9 @@
1
+ export const stopInterval = key => ({
2
+ type: 'STOP_INTERVAL',
3
+ key,
4
+ });
5
+
6
+ export const withInterval = key => ({
7
+ type: 'WITH_INTERVAL',
8
+ key,
9
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.1.0
4
+ version: 13.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-16 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -440,6 +440,9 @@ files:
440
440
  - webpack/JobInvocationDetail/JobInvocationOverview.js
441
441
  - webpack/JobInvocationDetail/JobInvocationSelectors.js
442
442
  - webpack/JobInvocationDetail/JobInvocationSystemStatusChart.js
443
+ - webpack/JobInvocationDetail/JobInvocationToolbarButtons.js
444
+ - webpack/JobInvocationDetail/__tests__/MainInformation.test.js
445
+ - webpack/JobInvocationDetail/__tests__/fixtures.js
443
446
  - webpack/JobInvocationDetail/index.js
444
447
  - webpack/JobWizard/Footer.js
445
448
  - webpack/JobWizard/JobWizard.js
@@ -512,14 +515,21 @@ files:
512
515
  - webpack/__mocks__/foremanReact/common/hooks/API/APIHooks.js
513
516
  - webpack/__mocks__/foremanReact/components/AutoComplete/AutoCompleteActions.js
514
517
  - webpack/__mocks__/foremanReact/components/AutoComplete/AutoCompleteConstants.js
518
+ - webpack/__mocks__/foremanReact/components/BreadcrumbBar/index.js
519
+ - webpack/__mocks__/foremanReact/components/Head/index.js
520
+ - webpack/__mocks__/foremanReact/components/HostDetails/DetailsCard/DefaultLoaderEmptyState.js
515
521
  - webpack/__mocks__/foremanReact/components/Pagination.js
516
522
  - webpack/__mocks__/foremanReact/components/SearchBar.js
523
+ - webpack/__mocks__/foremanReact/components/ToastsList/index.js
517
524
  - webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
518
525
  - webpack/__mocks__/foremanReact/constants.js
519
526
  - webpack/__mocks__/foremanReact/history.js
527
+ - webpack/__mocks__/foremanReact/redux/API/APIActions.js
528
+ - webpack/__mocks__/foremanReact/redux/API/APIConstants.js
520
529
  - webpack/__mocks__/foremanReact/redux/API/APISelectors.js
521
530
  - webpack/__mocks__/foremanReact/redux/API/index.js
522
531
  - webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors.js
532
+ - webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware/index.js
523
533
  - webpack/__mocks__/foremanReact/routes/Hosts/constants.js
524
534
  - webpack/__mocks__/foremanReact/routes/RouterSelector.js
525
535
  - webpack/__mocks__/foremanReact/routes/common/PageLayout/PageLayout.js