foreman_ansible 12.0.3 → 12.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_ansible/locale/ca/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/cs_CZ/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/de/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/en/foreman_ansible.js +931 -1
- data/app/assets/javascripts/foreman_ansible/locale/en_GB/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/es/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/fr/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/gl/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/it/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/ja/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/ka/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/ko/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/nl_NL/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/pl/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/pt_BR/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/ru/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/sv_SE/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/zh_CN/foreman_ansible.js +932 -1
- data/app/assets/javascripts/foreman_ansible/locale/zh_TW/foreman_ansible.js +932 -1
- data/lib/foreman_ansible/register.rb +0 -1
- data/lib/foreman_ansible/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ca/foreman_ansible.po +14 -2
- data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/cs_CZ/foreman_ansible.po +14 -2
- data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/de/foreman_ansible.po +52 -40
- data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/en/foreman_ansible.po +13 -1
- data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/en_GB/foreman_ansible.po +14 -2
- data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/es/foreman_ansible.po +85 -74
- data/locale/foreman_ansible.pot +20 -2
- data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/fr/foreman_ansible.po +43 -31
- data/locale/gl/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/gl/foreman_ansible.po +14 -2
- data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/it/foreman_ansible.po +14 -2
- data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ja/foreman_ansible.po +32 -20
- data/locale/ka/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ka/foreman_ansible.po +44 -32
- data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ko/foreman_ansible.po +14 -2
- data/locale/nl_NL/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/nl_NL/foreman_ansible.po +14 -2
- data/locale/pl/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/pl/foreman_ansible.po +14 -2
- data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/pt_BR/foreman_ansible.po +44 -32
- data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ru/foreman_ansible.po +14 -2
- data/locale/sv_SE/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/sv_SE/foreman_ansible.po +14 -2
- data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/zh_CN/foreman_ansible.po +29 -17
- data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/zh_TW/foreman_ansible.po +14 -2
- data/webpack/components/AnsibleHostDetail/AnsibleHostDetail.js +1 -0
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverrides.test.js +3 -1
- data/webpack/components/AnsibleHostDetail/components/JobsTab/NewRecurringJobModal.js +1 -0
- data/webpack/components/AnsibleHostDetail/components/RolesTab/AllRolesModal/index.js +10 -2
- data/webpack/components/AnsibleHostDetail/components/RolesTab/EditRolesModal/index.js +10 -2
- data/webpack/components/AnsibleRolesAndVariables/AnsibleRolesAndVariables.js +13 -4
- data/webpack/components/AnsibleRolesAndVariables/index.js +6 -5
- data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcher.js +0 -1
- data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherActions.js +2 -1
- data/webpack/components/AnsibleRolesSwitcher/components/AvailableRolesList.js +3 -1
- data/webpack/components/AnsibleRolesSwitcher/components/__snapshots__/AvailableRolesList.test.js.snap +2 -8
- data/webpack/formHelper.js +1 -0
- metadata +2 -2
@@ -44,12 +44,20 @@ const EditRolesModal = ({
|
|
44
44
|
];
|
45
45
|
|
46
46
|
const emptyWrapper = child => (
|
47
|
-
<Modal
|
47
|
+
<Modal
|
48
|
+
ouiaId="empty-edit-modal-ansible-roles"
|
49
|
+
{...baseModalProps}
|
50
|
+
actions={actions}
|
51
|
+
>
|
48
52
|
{child}
|
49
53
|
</Modal>
|
50
54
|
);
|
51
55
|
|
52
|
-
const loadingWrapper = child =>
|
56
|
+
const loadingWrapper = child => (
|
57
|
+
<Modal ouiaId="loading-edit-modal-ansible-roles" {...baseModalProps}>
|
58
|
+
{child}
|
59
|
+
</Modal>
|
60
|
+
);
|
53
61
|
|
54
62
|
const variables = {
|
55
63
|
id: encodeId('Host', hostId),
|
@@ -14,6 +14,7 @@ import {
|
|
14
14
|
Checkbox,
|
15
15
|
} from '@patternfly/react-core';
|
16
16
|
import Pagination from 'foremanReact/components/Pagination';
|
17
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
17
18
|
import PropTypes from 'prop-types';
|
18
19
|
import { DEFAULT_PER_PAGE } from './AnsibleRolesAndVariablesConstants';
|
19
20
|
import './AnsibleRolesAndVariables.scss';
|
@@ -91,11 +92,12 @@ const ImportRolesAndVariablesTable = ({
|
|
91
92
|
);
|
92
93
|
|
93
94
|
const renderSelectAll = () => (
|
94
|
-
<Toolbar>
|
95
|
+
<Toolbar ouiaId="ansible-roles-and-variables-table-toolbar">
|
95
96
|
<ToolbarContent>
|
96
97
|
<ToolbarGroup variant="icon-button-group">
|
97
98
|
<ToolbarItem>
|
98
99
|
<Checkbox
|
100
|
+
ouiaId="ansible-roles-and-variables-table-select-all-checkbox"
|
99
101
|
isChecked={isChecked}
|
100
102
|
onChange={SelectAll}
|
101
103
|
aria-label="select all checkbox"
|
@@ -114,15 +116,21 @@ const ImportRolesAndVariablesTable = ({
|
|
114
116
|
<br />
|
115
117
|
<br />
|
116
118
|
<Button
|
119
|
+
ouiaId="ansible-roles-variables-submit"
|
117
120
|
variant="primary"
|
118
121
|
onClick={() => onSubmit(rows, proxy)}
|
119
122
|
isLoading={isImporting}
|
120
123
|
isDisabled={isImporting || selectedRowsCount === 0}
|
121
124
|
>
|
122
|
-
Submit
|
125
|
+
{__('Submit')}
|
123
126
|
</Button>
|
124
|
-
<Button
|
125
|
-
|
127
|
+
<Button
|
128
|
+
ouiaId="ansible-roles-variables-cancel"
|
129
|
+
variant="secondary"
|
130
|
+
onClick={onCancel}
|
131
|
+
isDisabled={isImporting}
|
132
|
+
>
|
133
|
+
{__('Cancel')}
|
126
134
|
</Button>
|
127
135
|
</div>
|
128
136
|
);
|
@@ -131,6 +139,7 @@ const ImportRolesAndVariablesTable = ({
|
|
131
139
|
<div id="import-ansible-roles-variables">
|
132
140
|
{renderSelectAll()}
|
133
141
|
<Table
|
142
|
+
ouiaId="ansible-roles-and-variables-table"
|
134
143
|
aria-label="import roles and variables"
|
135
144
|
onSelect={onSelect}
|
136
145
|
rows={paginatedRows}
|
@@ -3,6 +3,7 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
3
3
|
import { push } from 'connected-react-router';
|
4
4
|
|
5
5
|
import { STATUS } from 'foremanReact/constants';
|
6
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
6
7
|
|
7
8
|
import ImportRolesAndVariablesTable from './AnsibleRolesAndVariables';
|
8
9
|
import { onSubmit } from './AnsibleRolesAndVariablesActions';
|
@@ -11,11 +12,11 @@ import { selectApiImportStatus } from './AnsibleRolesAndVariablesSelectors';
|
|
11
12
|
|
12
13
|
const WrappedImportRolesAndVariables = props => {
|
13
14
|
const cols = [
|
14
|
-
{ title: 'Name' },
|
15
|
-
{ title: 'Operation' },
|
16
|
-
{ title: 'Variables' },
|
17
|
-
{ title: '
|
18
|
-
{ title: '
|
15
|
+
{ title: __('Name') },
|
16
|
+
{ title: __('Operation') },
|
17
|
+
{ title: __('Variables') },
|
18
|
+
{ title: __('Host count') },
|
19
|
+
{ title: __('Hostgroup count') },
|
19
20
|
];
|
20
21
|
const dispatch = useDispatch();
|
21
22
|
const submit = (rows, proxy) => dispatch(onSubmit(rows, proxy));
|
@@ -3,6 +3,7 @@ import {
|
|
3
3
|
propsToSnakeCase,
|
4
4
|
propsToCamelCase,
|
5
5
|
} from 'foremanReact/common/helpers';
|
6
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
6
7
|
|
7
8
|
import {
|
8
9
|
ANSIBLE_ROLES_REQUEST,
|
@@ -48,7 +49,7 @@ export const getAnsibleRoles = (
|
|
48
49
|
|
49
50
|
const errorHandler = (msg, err) => {
|
50
51
|
const error = {
|
51
|
-
errorMsg: 'Failed to fetch Ansible Roles from server.',
|
52
|
+
errorMsg: __('Failed to fetch Ansible Roles from server.'),
|
52
53
|
statusText: err.response.statusText,
|
53
54
|
};
|
54
55
|
return { type: msg, payload: { error } };
|
@@ -19,7 +19,9 @@ const AvailableRolesList = ({
|
|
19
19
|
<Pagination
|
20
20
|
viewType="list"
|
21
21
|
itemCount={itemCount}
|
22
|
-
|
22
|
+
updateParamsByUrl={false}
|
23
|
+
page={pagination.page}
|
24
|
+
perPage={pagination.perPage}
|
23
25
|
onChange={onListingChange}
|
24
26
|
dropdownButtonId="available-ansible-roles-pagination-row-dropdown"
|
25
27
|
/>
|
@@ -16,14 +16,8 @@ exports[`AvailableRolesList should render 1`] = `
|
|
16
16
|
onPerPageSelect={null}
|
17
17
|
onSetPage={null}
|
18
18
|
page={1}
|
19
|
-
|
20
|
-
|
21
|
-
"page": 1,
|
22
|
-
"perPage": 25,
|
23
|
-
}
|
24
|
-
}
|
25
|
-
perPage={null}
|
26
|
-
updateParamsByUrl={true}
|
19
|
+
perPage={25}
|
20
|
+
updateParamsByUrl={false}
|
27
21
|
variant="bottom"
|
28
22
|
viewType="list"
|
29
23
|
/>
|
data/webpack/formHelper.js
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.0.
|
4
|
+
version: 12.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|