foreman_remote_execution 9.1.0 → 10.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/release.yml +14 -0
- data/.tx/config +3 -1
- data/app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js +1 -0
- data/app/assets/javascripts/foreman_remote_execution/template_invocation.js +10 -1
- data/app/controllers/job_invocations_controller.rb +20 -1
- data/app/controllers/ui_job_wizard_controller.rb +0 -3
- data/app/lib/actions/remote_execution/run_host_job.rb +1 -1
- data/app/views/job_invocations/_form.html.erb +1 -1
- data/app/views/templates/script/run_command.erb +1 -0
- data/config/routes.rb +1 -0
- data/lib/foreman_remote_execution/engine.rb +8 -8
- data/lib/foreman_remote_execution/tasks/explain_proxy_selection.rake +12 -3
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/locale/Makefile +6 -3
- data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/de/foreman_remote_execution.po +53 -8
- data/locale/en/foreman_remote_execution.po +52 -7
- data/locale/en_GB/foreman_remote_execution.po +52 -7
- data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/es/foreman_remote_execution.po +56 -11
- data/locale/foreman_remote_execution.pot +193 -126
- data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/fr/foreman_remote_execution.po +56 -11
- data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/ja/foreman_remote_execution.po +56 -11
- data/locale/ko/foreman_remote_execution.po +52 -7
- data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/pt_BR/foreman_remote_execution.po +56 -11
- data/locale/ru/foreman_remote_execution.po +52 -7
- data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/zh_CN/foreman_remote_execution.po +56 -11
- data/locale/zh_TW/foreman_remote_execution.po +52 -7
- data/webpack/JobWizard/Footer.js +104 -0
- data/webpack/JobWizard/JobWizard.js +24 -16
- data/webpack/JobWizard/JobWizard.scss +6 -17
- data/webpack/JobWizard/JobWizardConstants.js +1 -1
- data/webpack/JobWizard/JobWizardPageRerun.js +2 -0
- data/webpack/JobWizard/__tests__/fixtures.js +8 -1
- data/webpack/JobWizard/__tests__/validation.test.js +9 -0
- data/webpack/JobWizard/steps/HostsAndInputs/HostPreviewModal.js +2 -0
- data/webpack/JobWizard/steps/HostsAndInputs/SelectedChips.js +28 -14
- data/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js +3 -3
- data/webpack/JobWizard/steps/ReviewDetails/ReviewDetails.test.js +117 -0
- data/webpack/JobWizard/steps/ReviewDetails/helpers.js +43 -0
- data/webpack/JobWizard/steps/ReviewDetails/index.js +169 -18
- data/webpack/JobWizard/steps/Schedule/QueryType.js +1 -1
- data/webpack/JobWizard/steps/Schedule/RepeatHour.js +0 -1
- data/webpack/JobWizard/steps/Schedule/RepeatWeek.js +1 -1
- data/webpack/JobWizard/steps/Schedule/__tests__/Schedule.test.js +19 -5
- data/webpack/JobWizard/steps/form/DateTimePicker.js +0 -1
- data/webpack/JobWizard/steps/form/GroupedSelectField.js +0 -1
- data/webpack/JobWizard/steps/form/SelectField.js +0 -1
- data/webpack/react_app/components/RecentJobsCard/RecentJobsCard.js +4 -4
- data/webpack/react_app/components/RecentJobsCard/RecentJobsTable.js +2 -2
- data/webpack/react_app/components/RecentJobsCard/constants.js +2 -2
- data/webpack/react_app/components/RegistrationExtension/RexPull.js +0 -2
- metadata +21 -6
|
@@ -43,7 +43,6 @@ export const SelectField = ({
|
|
|
43
43
|
isOpen={isOpen}
|
|
44
44
|
className="without_select2"
|
|
45
45
|
maxHeight="45vh"
|
|
46
|
-
menuAppendTo={() => document.body}
|
|
47
46
|
placeholderText=" " // To prevent showing first option as selected
|
|
48
47
|
aria-labelledby={fieldId}
|
|
49
48
|
toggleAriaLabel={`${label} toggle`}
|
|
@@ -25,7 +25,7 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
|
|
|
25
25
|
header={__('Recent jobs')}
|
|
26
26
|
dropdownItems={[
|
|
27
27
|
<DropdownItem
|
|
28
|
-
href={foremanUrl(`${JOB_BASE_URL}${
|
|
28
|
+
href={foremanUrl(`${JOB_BASE_URL}${id}`)}
|
|
29
29
|
key="link-to-all"
|
|
30
30
|
ouiaId="link-to-all-dropdown-item"
|
|
31
31
|
>
|
|
@@ -33,7 +33,7 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
|
|
|
33
33
|
</DropdownItem>,
|
|
34
34
|
<DropdownItem
|
|
35
35
|
href={foremanUrl(
|
|
36
|
-
`${JOB_BASE_URL}${
|
|
36
|
+
`${JOB_BASE_URL}${id}+and+status+%3D+failed+or+status%3D+succeeded`
|
|
37
37
|
)}
|
|
38
38
|
key="link-to-finished"
|
|
39
39
|
ouiaId="link-to-finished-dropdown-item"
|
|
@@ -41,14 +41,14 @@ const RecentJobsCard = ({ hostDetails: { name, id } }) => {
|
|
|
41
41
|
{__('View finished jobs')}
|
|
42
42
|
</DropdownItem>,
|
|
43
43
|
<DropdownItem
|
|
44
|
-
href={foremanUrl(`${JOB_BASE_URL}${
|
|
44
|
+
href={foremanUrl(`${JOB_BASE_URL}${id}+and+status+%3D+running`)}
|
|
45
45
|
key="link-to-running"
|
|
46
46
|
ouiaId="link-to-running-dropdown-item"
|
|
47
47
|
>
|
|
48
48
|
{__('View running jobs')}
|
|
49
49
|
</DropdownItem>,
|
|
50
50
|
<DropdownItem
|
|
51
|
-
href={foremanUrl(`${JOB_BASE_URL}${
|
|
51
|
+
href={foremanUrl(`${JOB_BASE_URL}${id}+and+status+%3D+queued`)}
|
|
52
52
|
key="link-to-scheduled"
|
|
53
53
|
ouiaId="link-to-scheduled-dropdown-item"
|
|
54
54
|
>
|
|
@@ -17,10 +17,10 @@ const RecentJobsTable = ({ status, hostId }) => {
|
|
|
17
17
|
const jobsUrl =
|
|
18
18
|
hostId &&
|
|
19
19
|
foremanUrl(
|
|
20
|
-
`${JOB_API_URL}${hostId}
|
|
20
|
+
`${JOB_API_URL}${hostId}&status=${status}&limit=${JOBS_IN_CARD}`
|
|
21
21
|
);
|
|
22
22
|
const {
|
|
23
|
-
response: {
|
|
23
|
+
response: { job_invocations: jobs },
|
|
24
24
|
status: responseStatus,
|
|
25
25
|
} = useAPI('get', jobsUrl, RECENT_JOBS_KEY);
|
|
26
26
|
|
|
@@ -6,8 +6,8 @@ export const SCHEDULED_TAB = 2;
|
|
|
6
6
|
export const JOB_SUCCESS_STATUS = 0;
|
|
7
7
|
export const JOB_ERROR_STATUS = 1;
|
|
8
8
|
|
|
9
|
-
export const JOB_BASE_URL = '/job_invocations?search=
|
|
9
|
+
export const JOB_BASE_URL = '/job_invocations?search=targeted_host_id+%3D+';
|
|
10
10
|
export const JOB_API_URL =
|
|
11
|
-
'/
|
|
11
|
+
'/job_invocations/preview_job_invocations_per_host?host_id=';
|
|
12
12
|
export const JOBS_IN_CARD = 3;
|
|
13
13
|
export const RECENT_JOBS_KEY = { key: 'RECENT_JOBS_KEY' };
|
|
@@ -26,7 +26,6 @@ const options = (value = '') => {
|
|
|
26
26
|
const RexPull = ({ isLoading, onChange, pluginValues, configParams }) => (
|
|
27
27
|
<FormGroup
|
|
28
28
|
label={__('REX pull mode')}
|
|
29
|
-
isRequired
|
|
30
29
|
labelIcon={
|
|
31
30
|
<LabelIcon
|
|
32
31
|
text={__(
|
|
@@ -44,7 +43,6 @@ const RexPull = ({ isLoading, onChange, pluginValues, configParams }) => (
|
|
|
44
43
|
className="without_select2"
|
|
45
44
|
id="registration_setup_remote_execution_pull"
|
|
46
45
|
isDisabled={isLoading}
|
|
47
|
-
isRequired
|
|
48
46
|
>
|
|
49
47
|
{/* eslint-disable-next-line camelcase */
|
|
50
48
|
options(configParams?.host_registration_remote_execution_pull)}
|
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:
|
|
4
|
+
version: 10.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Remote Execution team
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: deface
|
|
@@ -100,6 +100,7 @@ files:
|
|
|
100
100
|
- ".eslintignore"
|
|
101
101
|
- ".eslintrc"
|
|
102
102
|
- ".github/workflows/js_ci.yml"
|
|
103
|
+
- ".github/workflows/release.yml"
|
|
103
104
|
- ".github/workflows/ruby_ci.yml"
|
|
104
105
|
- ".gitignore"
|
|
105
106
|
- ".prettierrc"
|
|
@@ -112,6 +113,17 @@ files:
|
|
|
112
113
|
- Rakefile
|
|
113
114
|
- app/assets/javascripts/foreman_remote_execution/execution_interface.js
|
|
114
115
|
- app/assets/javascripts/foreman_remote_execution/job_templates.js
|
|
116
|
+
- app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js
|
|
117
|
+
- app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js
|
|
118
|
+
- app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js
|
|
119
|
+
- app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js
|
|
120
|
+
- app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js
|
|
121
|
+
- app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js
|
|
122
|
+
- app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js
|
|
123
|
+
- app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js
|
|
124
|
+
- app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js
|
|
125
|
+
- app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js
|
|
126
|
+
- app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js
|
|
115
127
|
- app/assets/javascripts/foreman_remote_execution/template_input.js
|
|
116
128
|
- app/assets/javascripts/foreman_remote_execution/template_invocation.js
|
|
117
129
|
- app/assets/stylesheets/foreman_remote_execution/foreman_remote_execution.css
|
|
@@ -413,6 +425,7 @@ files:
|
|
|
413
425
|
- test/unit/renderer_scope_input.rb
|
|
414
426
|
- test/unit/targeting_test.rb
|
|
415
427
|
- test/unit/template_invocation_input_value_test.rb
|
|
428
|
+
- webpack/JobWizard/Footer.js
|
|
416
429
|
- webpack/JobWizard/JobWizard.js
|
|
417
430
|
- webpack/JobWizard/JobWizard.scss
|
|
418
431
|
- webpack/JobWizard/JobWizardConstants.js
|
|
@@ -447,6 +460,8 @@ files:
|
|
|
447
460
|
- webpack/JobWizard/steps/HostsAndInputs/hostgroups.gql
|
|
448
461
|
- webpack/JobWizard/steps/HostsAndInputs/hosts.gql
|
|
449
462
|
- webpack/JobWizard/steps/HostsAndInputs/index.js
|
|
463
|
+
- webpack/JobWizard/steps/ReviewDetails/ReviewDetails.test.js
|
|
464
|
+
- webpack/JobWizard/steps/ReviewDetails/helpers.js
|
|
450
465
|
- webpack/JobWizard/steps/ReviewDetails/index.js
|
|
451
466
|
- webpack/JobWizard/steps/Schedule/PurposeField.js
|
|
452
467
|
- webpack/JobWizard/steps/Schedule/QueryType.js
|
|
@@ -545,7 +560,7 @@ homepage: https://github.com/theforeman/foreman_remote_execution
|
|
|
545
560
|
licenses:
|
|
546
561
|
- GPL-3.0
|
|
547
562
|
metadata: {}
|
|
548
|
-
post_install_message:
|
|
563
|
+
post_install_message:
|
|
549
564
|
rdoc_options: []
|
|
550
565
|
require_paths:
|
|
551
566
|
- lib
|
|
@@ -560,8 +575,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
560
575
|
- !ruby/object:Gem::Version
|
|
561
576
|
version: '0'
|
|
562
577
|
requirements: []
|
|
563
|
-
rubygems_version: 3.
|
|
564
|
-
signing_key:
|
|
578
|
+
rubygems_version: 3.1.6
|
|
579
|
+
signing_key:
|
|
565
580
|
specification_version: 4
|
|
566
581
|
summary: A plugin bringing remote execution to the Foreman, completing the config
|
|
567
582
|
management functionality with remote management functionality.
|