foreman_ansible 15.0.6 → 16.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/app/assets/javascripts/foreman_ansible/locale/ca/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/cs_CZ/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/de/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/es/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/fr/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/gl/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/it/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/ja/foreman_ansible.js +13 -4
- data/app/assets/javascripts/foreman_ansible/locale/ka/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/ko/foreman_ansible.js +242 -233
- data/app/assets/javascripts/foreman_ansible/locale/nl_NL/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/pl/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/pt_BR/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/ru/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/sv_SE/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/zh_CN/foreman_ansible.js +10 -1
- data/app/assets/javascripts/foreman_ansible/locale/zh_TW/foreman_ansible.js +10 -1
- data/app/controllers/concerns/foreman/controller/parameters/job_template_extensions.rb +1 -1
- data/app/controllers/foreman_ansible/api/v2/job_templates_controller_extensions.rb +1 -0
- data/app/models/foreman_ansible/ansible_provider.rb +1 -0
- data/app/views/api/v2/job_templates/job_templates.json.rabl +1 -1
- data/app/views/job_templates/_job_template_callback_tab_content.html.erb +1 -0
- data/db/migrate/20241022000000_add_ansible_check_mode_to_templates.rb +5 -0
- data/lib/foreman_ansible/register.rb +1 -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 +10 -1
- data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/cs_CZ/foreman_ansible.po +10 -1
- data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/de/foreman_ansible.po +10 -1
- data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/es/foreman_ansible.po +11 -2
- data/locale/foreman_ansible.pot +20 -7
- data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/fr/foreman_ansible.po +10 -1
- data/locale/gl/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/gl/foreman_ansible.po +10 -1
- data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/it/foreman_ansible.po +10 -1
- data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ja/foreman_ansible.po +14 -5
- data/locale/ka/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ka/foreman_ansible.po +10 -1
- data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ko/foreman_ansible.po +244 -233
- data/locale/nl_NL/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/nl_NL/foreman_ansible.po +10 -1
- data/locale/pl/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/pl/foreman_ansible.po +10 -1
- data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/pt_BR/foreman_ansible.po +10 -1
- data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ru/foreman_ansible.po +10 -1
- data/locale/sv_SE/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/sv_SE/foreman_ansible.po +10 -1
- data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/zh_CN/foreman_ansible.po +10 -1
- data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/zh_TW/foreman_ansible.po +10 -1
- data/webpack/components/AnsibleHostDetail/AnsibleHostDetail.scss +1 -1
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/AnsibleVariableOverridesTable.js +4 -11
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValueHelper.js +11 -5
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverrides.test.js +1 -1
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverridesDelete.test.js +2 -2
- data/webpack/components/AnsibleHostDetail/components/JobsTab/NewRecurringJobModal.scss +2 -2
- data/webpack/components/AnsibleHostDetail/components/JobsTab/PreviousJobsTable.js +3 -10
- data/webpack/components/AnsibleHostDetail/components/JobsTab/RecurringJobsTable.js +3 -10
- data/webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTab.test.js +2 -1
- data/webpack/components/AnsibleHostDetail/components/RolesTab/AllRolesModal/AllRolesTable.js +3 -10
- data/webpack/components/AnsibleHostDetail/components/RolesTab/EditRolesModal/EditRolesModal.scss +1 -1
- data/webpack/components/AnsibleHostDetail/components/RolesTab/RolesTable.js +3 -10
- data/webpack/components/AnsibleRolesAndVariables/AnsibleRolesAndVariables.js +3 -3
- data/webpack/components/DualList/ListControls.js +9 -9
- data/webpack/components/DualList/ListHeader.js +5 -3
- data/webpack/components/DualList/ListItem.js +9 -9
- data/webpack/components/DualList/ListPane.js +3 -3
- data/webpack/components/DualList/SelectedStatus.js +2 -2
- data/webpack/components/DualList/index.js +1 -1
- data/webpack/formHelper.js +26 -29
- data/webpack/routes/HostgroupJobs/__test__/HostgroupJobs.test.js +1 -0
- metadata +10 -16
- data/app/assets/javascripts/foreman_ansible/locale/en/foreman_ansible.js +0 -910
- data/app/assets/javascripts/foreman_ansible/locale/en_GB/foreman_ansible.js +0 -910
- data/locale/en/foreman_ansible.po +0 -908
- data/locale/en_GB/foreman_ansible.po +0 -912
Binary file
|
@@ -14,7 +14,7 @@
|
|
14
14
|
#
|
15
15
|
msgid ""
|
16
16
|
msgstr ""
|
17
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
17
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
18
18
|
"Report-Msgid-Bugs-To: \n"
|
19
19
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
20
20
|
"Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
|
@@ -294,6 +294,12 @@ msgstr ""
|
|
294
294
|
msgid "Enable Ansible Callback"
|
295
295
|
msgstr ""
|
296
296
|
|
297
|
+
msgid "Enable Ansible Check Mode"
|
298
|
+
msgstr ""
|
299
|
+
|
300
|
+
msgid "Enable Ansible Check Mode for this template"
|
301
|
+
msgstr ""
|
302
|
+
|
297
303
|
msgid "Enable the callback plugin for this template"
|
298
304
|
msgstr ""
|
299
305
|
|
@@ -827,6 +833,9 @@ msgstr ""
|
|
827
833
|
msgid "Update Smart Proxy"
|
828
834
|
msgstr ""
|
829
835
|
|
836
|
+
msgid "Update an override value"
|
837
|
+
msgstr ""
|
838
|
+
|
830
839
|
msgid "Updates Ansible variable"
|
831
840
|
msgstr ""
|
832
841
|
|
Binary file
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
12
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
14
14
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
15
15
|
"Last-Translator: Michał Foryt <michal.foryt@gmail.com>, 2023\n"
|
@@ -289,6 +289,12 @@ msgstr ""
|
|
289
289
|
msgid "Enable Ansible Callback"
|
290
290
|
msgstr ""
|
291
291
|
|
292
|
+
msgid "Enable Ansible Check Mode"
|
293
|
+
msgstr ""
|
294
|
+
|
295
|
+
msgid "Enable Ansible Check Mode for this template"
|
296
|
+
msgstr ""
|
297
|
+
|
292
298
|
msgid "Enable the callback plugin for this template"
|
293
299
|
msgstr ""
|
294
300
|
|
@@ -822,6 +828,9 @@ msgstr ""
|
|
822
828
|
msgid "Update Smart Proxy"
|
823
829
|
msgstr ""
|
824
830
|
|
831
|
+
msgid "Update an override value"
|
832
|
+
msgstr ""
|
833
|
+
|
825
834
|
msgid "Updates Ansible variable"
|
826
835
|
msgstr ""
|
827
836
|
|
Binary file
|
@@ -14,7 +14,7 @@
|
|
14
14
|
#
|
15
15
|
msgid ""
|
16
16
|
msgstr ""
|
17
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
17
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
18
18
|
"Report-Msgid-Bugs-To: \n"
|
19
19
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
20
20
|
"Last-Translator: Luiz Henrique Vasconcelos <luizvasconceloss@yahoo.com.br>, 20"
|
@@ -295,6 +295,12 @@ msgstr "Editar Funções possíveis"
|
|
295
295
|
msgid "Enable Ansible Callback"
|
296
296
|
msgstr ""
|
297
297
|
|
298
|
+
msgid "Enable Ansible Check Mode"
|
299
|
+
msgstr ""
|
300
|
+
|
301
|
+
msgid "Enable Ansible Check Mode for this template"
|
302
|
+
msgstr ""
|
303
|
+
|
298
304
|
msgid "Enable the callback plugin for this template"
|
299
305
|
msgstr ""
|
300
306
|
|
@@ -830,6 +836,9 @@ msgstr "Atualização de variáveis de função"
|
|
830
836
|
msgid "Update Smart Proxy"
|
831
837
|
msgstr ""
|
832
838
|
|
839
|
+
msgid "Update an override value"
|
840
|
+
msgstr ""
|
841
|
+
|
833
842
|
msgid "Updates Ansible variable"
|
834
843
|
msgstr "Atualiza a variável do Ansible"
|
835
844
|
|
Binary file
|
@@ -15,7 +15,7 @@
|
|
15
15
|
#
|
16
16
|
msgid ""
|
17
17
|
msgstr ""
|
18
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
18
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
19
19
|
"Report-Msgid-Bugs-To: \n"
|
20
20
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
21
21
|
"Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4, 2023\n"
|
@@ -295,6 +295,12 @@ msgstr ""
|
|
295
295
|
msgid "Enable Ansible Callback"
|
296
296
|
msgstr ""
|
297
297
|
|
298
|
+
msgid "Enable Ansible Check Mode"
|
299
|
+
msgstr ""
|
300
|
+
|
301
|
+
msgid "Enable Ansible Check Mode for this template"
|
302
|
+
msgstr ""
|
303
|
+
|
298
304
|
msgid "Enable the callback plugin for this template"
|
299
305
|
msgstr ""
|
300
306
|
|
@@ -828,6 +834,9 @@ msgstr ""
|
|
828
834
|
msgid "Update Smart Proxy"
|
829
835
|
msgstr ""
|
830
836
|
|
837
|
+
msgid "Update an override value"
|
838
|
+
msgstr ""
|
839
|
+
|
831
840
|
msgid "Updates Ansible variable"
|
832
841
|
msgstr ""
|
833
842
|
|
Binary file
|
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
msgid ""
|
12
12
|
msgstr ""
|
13
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
13
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
14
14
|
"Report-Msgid-Bugs-To: \n"
|
15
15
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
16
16
|
"Last-Translator: johnny.westerlund <johnny.westerlund@gmail.com>, 2023\n"
|
@@ -289,6 +289,12 @@ msgstr ""
|
|
289
289
|
msgid "Enable Ansible Callback"
|
290
290
|
msgstr ""
|
291
291
|
|
292
|
+
msgid "Enable Ansible Check Mode"
|
293
|
+
msgstr ""
|
294
|
+
|
295
|
+
msgid "Enable Ansible Check Mode for this template"
|
296
|
+
msgstr ""
|
297
|
+
|
292
298
|
msgid "Enable the callback plugin for this template"
|
293
299
|
msgstr ""
|
294
300
|
|
@@ -822,6 +828,9 @@ msgstr ""
|
|
822
828
|
msgid "Update Smart Proxy"
|
823
829
|
msgstr ""
|
824
830
|
|
831
|
+
msgid "Update an override value"
|
832
|
+
msgstr ""
|
833
|
+
|
825
834
|
msgid "Updates Ansible variable"
|
826
835
|
msgstr ""
|
827
836
|
|
Binary file
|
@@ -12,7 +12,7 @@
|
|
12
12
|
#
|
13
13
|
msgid ""
|
14
14
|
msgstr ""
|
15
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
15
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
16
16
|
"Report-Msgid-Bugs-To: \n"
|
17
17
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
18
18
|
"Last-Translator: Ewoud Kohl van Wijngaarden <ewoud+transifex@kohlvanwijngaarde"
|
@@ -292,6 +292,12 @@ msgstr "编辑 Ansible 角色"
|
|
292
292
|
msgid "Enable Ansible Callback"
|
293
293
|
msgstr "启用 Ansible 回调"
|
294
294
|
|
295
|
+
msgid "Enable Ansible Check Mode"
|
296
|
+
msgstr ""
|
297
|
+
|
298
|
+
msgid "Enable Ansible Check Mode for this template"
|
299
|
+
msgstr ""
|
300
|
+
|
295
301
|
msgid "Enable the callback plugin for this template"
|
296
302
|
msgstr "为此模板启用回调插件"
|
297
303
|
|
@@ -827,6 +833,9 @@ msgstr "更新角色变量"
|
|
827
833
|
msgid "Update Smart Proxy"
|
828
834
|
msgstr "更新智能代理"
|
829
835
|
|
836
|
+
msgid "Update an override value"
|
837
|
+
msgstr ""
|
838
|
+
|
830
839
|
msgid "Updates Ansible variable"
|
831
840
|
msgstr "更新 Ansible 变量"
|
832
841
|
|
Binary file
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version: foreman_ansible 15.0.
|
12
|
+
"Project-Id-Version: foreman_ansible 15.0.5\n"
|
13
13
|
"Report-Msgid-Bugs-To: \n"
|
14
14
|
"PO-Revision-Date: 2018-11-14 21:36+0000\n"
|
15
15
|
"Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4, 2023\n"
|
@@ -288,6 +288,12 @@ msgstr ""
|
|
288
288
|
msgid "Enable Ansible Callback"
|
289
289
|
msgstr ""
|
290
290
|
|
291
|
+
msgid "Enable Ansible Check Mode"
|
292
|
+
msgstr ""
|
293
|
+
|
294
|
+
msgid "Enable Ansible Check Mode for this template"
|
295
|
+
msgstr ""
|
296
|
+
|
291
297
|
msgid "Enable the callback plugin for this template"
|
292
298
|
msgstr ""
|
293
299
|
|
@@ -821,6 +827,9 @@ msgstr ""
|
|
821
827
|
msgid "Update Smart Proxy"
|
822
828
|
msgstr ""
|
823
829
|
|
830
|
+
msgid "Update an override value"
|
831
|
+
msgstr ""
|
832
|
+
|
824
833
|
msgid "Updates Ansible variable"
|
825
834
|
msgstr ""
|
826
835
|
|
@@ -5,14 +5,7 @@ import { useMutation } from '@apollo/client';
|
|
5
5
|
|
6
6
|
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
|
7
7
|
import { openConfirmModal } from 'foremanReact/components/ConfirmModal';
|
8
|
-
import {
|
9
|
-
TableComposable,
|
10
|
-
Thead,
|
11
|
-
Tbody,
|
12
|
-
Tr,
|
13
|
-
Th,
|
14
|
-
Td,
|
15
|
-
} from '@patternfly/react-table';
|
8
|
+
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
|
16
9
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
17
10
|
|
18
11
|
import Pagination from 'foremanReact/components/Pagination';
|
@@ -77,7 +70,7 @@ const AnsibleVariableOverridesTable = ({
|
|
77
70
|
innerDispatch({ idx, payload: { open: flag } });
|
78
71
|
};
|
79
72
|
|
80
|
-
const onValueChange = (idx, variable) => value => {
|
73
|
+
const onValueChange = (idx, variable) => (e, value) => {
|
81
74
|
const payload = {
|
82
75
|
value,
|
83
76
|
validation: validateValue(variable, value),
|
@@ -156,7 +149,7 @@ const AnsibleVariableOverridesTable = ({
|
|
156
149
|
/>
|
157
150
|
</FlexItem>
|
158
151
|
<FlexItem>
|
159
|
-
<
|
152
|
+
<Table ouiaId="table-composable-compact" variant="compact">
|
160
153
|
<Thead>
|
161
154
|
<Tr ouiaId="row-header">
|
162
155
|
{columns.map(col => (
|
@@ -203,7 +196,7 @@ const AnsibleVariableOverridesTable = ({
|
|
203
196
|
</Tr>
|
204
197
|
))}
|
205
198
|
</Tbody>
|
206
|
-
</
|
199
|
+
</Table>
|
207
200
|
</FlexItem>
|
208
201
|
<FlexItem align={{ default: 'alignRight' }}>
|
209
202
|
<Pagination
|
data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/EditableValueHelper.js
CHANGED
@@ -5,17 +5,23 @@ import {
|
|
5
5
|
FormGroup,
|
6
6
|
FormSelect,
|
7
7
|
FormSelectOption,
|
8
|
+
FormHelperText,
|
9
|
+
HelperText,
|
10
|
+
HelperTextItem,
|
8
11
|
} from '@patternfly/react-core';
|
9
12
|
|
10
13
|
const withFormGroup = Component => componentProps => {
|
11
14
|
const { validation, ...rest } = componentProps;
|
12
15
|
return (
|
13
|
-
<FormGroup
|
14
|
-
label=""
|
15
|
-
helperTextInvalid={validation.msg}
|
16
|
-
validated={validation.key}
|
17
|
-
>
|
16
|
+
<FormGroup label="">
|
18
17
|
<Component {...rest} validated={validation.key} />
|
18
|
+
{validation.key === 'error' && (
|
19
|
+
<FormHelperText>
|
20
|
+
<HelperText>
|
21
|
+
<HelperTextItem>{validation.msg}</HelperTextItem>
|
22
|
+
</HelperText>
|
23
|
+
</FormHelperText>
|
24
|
+
)}
|
19
25
|
</FormGroup>
|
20
26
|
);
|
21
27
|
};
|
@@ -67,7 +67,7 @@ describe('AnsibleVariableOverrides', () => {
|
|
67
67
|
name: 'Edit override button',
|
68
68
|
});
|
69
69
|
expect(editBtns).toHaveLength(0);
|
70
|
-
const actions = screen.queryAllByRole('button', { name: '
|
70
|
+
const actions = screen.queryAllByRole('button', { name: 'Kebab toggle' });
|
71
71
|
expect(actions).toHaveLength(0);
|
72
72
|
});
|
73
73
|
});
|
@@ -33,7 +33,7 @@ describe('AnsibleVariableOverrides', () => {
|
|
33
33
|
/>
|
34
34
|
);
|
35
35
|
await waitFor(tick);
|
36
|
-
userEvent.click(screen.getAllByRole('button', { name: '
|
36
|
+
userEvent.click(screen.getAllByRole('button', { name: 'Kebab toggle' })[0]);
|
37
37
|
userEvent.click(screen.getByText('Delete'));
|
38
38
|
await waitFor(tick);
|
39
39
|
expect(
|
@@ -58,7 +58,7 @@ describe('AnsibleVariableOverrides', () => {
|
|
58
58
|
);
|
59
59
|
await waitFor(tick);
|
60
60
|
expect(screen.queryByText('21')).toBeInTheDocument();
|
61
|
-
userEvent.click(screen.getAllByRole('button', { name: '
|
61
|
+
userEvent.click(screen.getAllByRole('button', { name: 'Kebab toggle' })[0]);
|
62
62
|
userEvent.click(screen.getByText('Delete'));
|
63
63
|
await waitFor(tick);
|
64
64
|
userEvent.click(screen.getByText('Confirm'));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.pf-c-backdrop {
|
1
|
+
.pf-v5-c-backdrop {
|
2
2
|
z-index: 1040;
|
3
3
|
}
|
4
4
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
height: 70vh;
|
9
9
|
}
|
10
10
|
|
11
|
-
.pf-c-form-control, .pf-c-date-picker, .pf-c-date-picker__input {
|
11
|
+
.pf-v5-c-form-control, .pf-v5-c-date-picker, .pf-v5-c-date-picker__input {
|
12
12
|
width: 250px
|
13
13
|
}
|
14
14
|
}
|
@@ -3,14 +3,7 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { translate as __ } from 'foremanReact/common/I18n';
|
4
4
|
import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';
|
5
5
|
|
6
|
-
import {
|
7
|
-
TableComposable,
|
8
|
-
Thead,
|
9
|
-
Tbody,
|
10
|
-
Tr,
|
11
|
-
Th,
|
12
|
-
Td,
|
13
|
-
} from '@patternfly/react-table';
|
6
|
+
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
|
14
7
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
15
8
|
import Pagination from 'foremanReact/components/Pagination';
|
16
9
|
|
@@ -40,7 +33,7 @@ const PreviousJobsTable = ({ history, totalCount, jobs, pagination }) => {
|
|
40
33
|
/>
|
41
34
|
</FlexItem>
|
42
35
|
<FlexItem>
|
43
|
-
<
|
36
|
+
<Table ouiaId="table-composable-compact" variant="compact">
|
44
37
|
<Thead>
|
45
38
|
<Tr ouiaId="row-header">
|
46
39
|
{columns.map(col => (
|
@@ -73,7 +66,7 @@ const PreviousJobsTable = ({ history, totalCount, jobs, pagination }) => {
|
|
73
66
|
</Tr>
|
74
67
|
))}
|
75
68
|
</Tbody>
|
76
|
-
</
|
69
|
+
</Table>
|
77
70
|
</FlexItem>
|
78
71
|
<FlexItem align={{ default: 'alignRight' }}>
|
79
72
|
<Pagination
|
@@ -5,14 +5,7 @@ import { translate as __ } from 'foremanReact/common/I18n';
|
|
5
5
|
import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';
|
6
6
|
import { openConfirmModal } from 'foremanReact/components/ConfirmModal';
|
7
7
|
|
8
|
-
import {
|
9
|
-
TableComposable,
|
10
|
-
Thead,
|
11
|
-
Tbody,
|
12
|
-
Tr,
|
13
|
-
Th,
|
14
|
-
Td,
|
15
|
-
} from '@patternfly/react-table';
|
8
|
+
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
|
16
9
|
|
17
10
|
import {
|
18
11
|
useCancelMutation,
|
@@ -60,7 +53,7 @@ const RecurringJobsTable = ({
|
|
60
53
|
return (
|
61
54
|
<React.Fragment>
|
62
55
|
<h3>{__('Scheduled recurring jobs')}</h3>
|
63
|
-
<
|
56
|
+
<Table ouiaId="table-composable-compact" variant="compact">
|
64
57
|
<Thead>
|
65
58
|
<Tr ouiaId="row-header">
|
66
59
|
{columns.map(col => (
|
@@ -93,7 +86,7 @@ const RecurringJobsTable = ({
|
|
93
86
|
</Tr>
|
94
87
|
))}
|
95
88
|
</Tbody>
|
96
|
-
</
|
89
|
+
</Table>
|
97
90
|
</React.Fragment>
|
98
91
|
);
|
99
92
|
};
|
@@ -102,6 +102,7 @@ describe('JobsTab', () => {
|
|
102
102
|
/>
|
103
103
|
);
|
104
104
|
await waitFor(tick);
|
105
|
+
await waitFor(tick);
|
105
106
|
userEvent.click(
|
106
107
|
screen.getByRole('button', { name: 'schedule recurring job' })
|
107
108
|
);
|
@@ -156,7 +157,7 @@ describe('JobsTab', () => {
|
|
156
157
|
expect(
|
157
158
|
screen.queryByText('No config job for Ansible roles scheduled')
|
158
159
|
).not.toBeInTheDocument();
|
159
|
-
userEvent.click(screen.getAllByRole('button', { name: '
|
160
|
+
userEvent.click(screen.getAllByRole('button', { name: 'Kebab toggle' })[0]);
|
160
161
|
userEvent.click(screen.getByText('Cancel'));
|
161
162
|
await waitFor(tick);
|
162
163
|
expect(
|
data/webpack/components/AnsibleHostDetail/components/RolesTab/AllRolesModal/AllRolesTable.js
CHANGED
@@ -2,14 +2,7 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { translate as __ } from 'foremanReact/common/I18n';
|
4
4
|
|
5
|
-
import {
|
6
|
-
TableComposable,
|
7
|
-
Thead,
|
8
|
-
Tbody,
|
9
|
-
Tr,
|
10
|
-
Th,
|
11
|
-
Td,
|
12
|
-
} from '@patternfly/react-table';
|
5
|
+
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
|
13
6
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
14
7
|
import Pagination from 'foremanReact/components/Pagination';
|
15
8
|
import withLoading from '../../../../withLoading';
|
@@ -28,7 +21,7 @@ const AllRolesTable = ({ allAnsibleRoles, totalCount }) => {
|
|
28
21
|
variant="top"
|
29
22
|
/>
|
30
23
|
</FlexItem>
|
31
|
-
<
|
24
|
+
<Table ouiaId="table-composable-compact" variant="compact">
|
32
25
|
<Thead>
|
33
26
|
<Tr ouiaId="row-header">
|
34
27
|
<Th />
|
@@ -60,7 +53,7 @@ const AllRolesTable = ({ allAnsibleRoles, totalCount }) => {
|
|
60
53
|
</Tr>
|
61
54
|
))}
|
62
55
|
</Tbody>
|
63
|
-
</
|
56
|
+
</Table>
|
64
57
|
<FlexItem align={{ default: 'alignRight' }}>
|
65
58
|
<Pagination
|
66
59
|
ouiaId="pagination-bottom"
|
@@ -4,14 +4,7 @@ import { translate as __ } from 'foremanReact/common/I18n';
|
|
4
4
|
import { Route, Link } from 'react-router-dom';
|
5
5
|
import Pagination from 'foremanReact/components/Pagination';
|
6
6
|
|
7
|
-
import {
|
8
|
-
TableComposable,
|
9
|
-
Thead,
|
10
|
-
Tbody,
|
11
|
-
Tr,
|
12
|
-
Th,
|
13
|
-
Td,
|
14
|
-
} from '@patternfly/react-table';
|
7
|
+
import { Table, Thead, Tbody, Tr, Th, Td } from '@patternfly/react-table';
|
15
8
|
import { Flex, FlexItem, Button } from '@patternfly/react-core';
|
16
9
|
|
17
10
|
import EditRolesModal from './EditRolesModal';
|
@@ -66,7 +59,7 @@ const RolesTable = ({
|
|
66
59
|
</Flex>
|
67
60
|
<Flex direction={{ default: 'column' }}>
|
68
61
|
<FlexItem>
|
69
|
-
<
|
62
|
+
<Table variant="compact" ouiaId="table-composable-compact">
|
70
63
|
<Thead>
|
71
64
|
<Tr ouiaId="row-header">
|
72
65
|
{columns.map(col => (
|
@@ -92,7 +85,7 @@ const RolesTable = ({
|
|
92
85
|
</Tr>
|
93
86
|
))}
|
94
87
|
</Tbody>
|
95
|
-
</
|
88
|
+
</Table>
|
96
89
|
</FlexItem>
|
97
90
|
<FlexItem align={{ default: 'alignRight' }}>
|
98
91
|
<Pagination
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import React, { useState } from 'react';
|
2
|
+
import { cellWidth } from '@patternfly/react-table';
|
2
3
|
import {
|
3
4
|
Table,
|
4
5
|
TableHeader,
|
5
6
|
TableBody,
|
6
|
-
|
7
|
-
} from '@patternfly/react-table';
|
7
|
+
} from '@patternfly/react-table/deprecated';
|
8
8
|
import {
|
9
9
|
Button,
|
10
10
|
Toolbar,
|
@@ -99,7 +99,7 @@ const ImportRolesAndVariablesTable = ({
|
|
99
99
|
<Checkbox
|
100
100
|
ouiaId="ansible-roles-and-variables-table-select-all-checkbox"
|
101
101
|
isChecked={isChecked}
|
102
|
-
onChange={SelectAll}
|
102
|
+
onChange={(_event, checked) => SelectAll(checked)}
|
103
103
|
aria-label="select all checkbox"
|
104
104
|
id="select-all"
|
105
105
|
name="select-all"
|
@@ -3,10 +3,10 @@ import PropTypes from 'prop-types';
|
|
3
3
|
import { translate as __ } from 'foremanReact/common/I18n';
|
4
4
|
|
5
5
|
const ListControls = props => (
|
6
|
-
<div className="pf-c-dual-list-selector__controls">
|
7
|
-
<div className="pf-c-dual-list-selector__controls-item">
|
6
|
+
<div className="pf-v5-c-dual-list-selector__controls">
|
7
|
+
<div className="pf-v5-c-dual-list-selector__controls-item">
|
8
8
|
<button
|
9
|
-
className="pf-c-button pf-m-plain"
|
9
|
+
className="pf-v5-c-button pf-m-plain"
|
10
10
|
type="button"
|
11
11
|
disabled={props.addSelectedDisabled}
|
12
12
|
onClick={props.onAddSelected}
|
@@ -15,9 +15,9 @@ const ListControls = props => (
|
|
15
15
|
<i className="fas fa-fw fa-angle-right" />
|
16
16
|
</button>
|
17
17
|
</div>
|
18
|
-
<div className="pf-c-dual-list-selector__controls-item">
|
18
|
+
<div className="pf-v5-c-dual-list-selector__controls-item">
|
19
19
|
<button
|
20
|
-
className="pf-c-button pf-m-plain"
|
20
|
+
className="pf-v5-c-button pf-m-plain"
|
21
21
|
type="button"
|
22
22
|
disabled={props.addAllDisabled}
|
23
23
|
onClick={props.onAddAll}
|
@@ -26,9 +26,9 @@ const ListControls = props => (
|
|
26
26
|
<i className="fas fa-fw fa-angle-double-right" />
|
27
27
|
</button>
|
28
28
|
</div>
|
29
|
-
<div className="pf-c-dual-list-selector__controls-item">
|
29
|
+
<div className="pf-v5-c-dual-list-selector__controls-item">
|
30
30
|
<button
|
31
|
-
className="pf-c-button pf-m-plain"
|
31
|
+
className="pf-v5-c-button pf-m-plain"
|
32
32
|
type="button"
|
33
33
|
disabled={props.removeAllDisabled}
|
34
34
|
onClick={props.onRemoveAll}
|
@@ -37,9 +37,9 @@ const ListControls = props => (
|
|
37
37
|
<i className="fas fa-fw fa-angle-double-left" />
|
38
38
|
</button>
|
39
39
|
</div>
|
40
|
-
<div className="pf-c-dual-list-selector__controls-item">
|
40
|
+
<div className="pf-v5-c-dual-list-selector__controls-item">
|
41
41
|
<button
|
42
|
-
className="pf-c-button pf-m-plain"
|
42
|
+
className="pf-v5-c-button pf-m-plain"
|
43
43
|
type="button"
|
44
44
|
disabled={props.removeSelectedDisabled}
|
45
45
|
onClick={props.onRemoveSelected}
|
@@ -2,9 +2,11 @@ import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
|
4
4
|
const ListHeader = props => (
|
5
|
-
<div className="pf-c-dual-list-selector__header">
|
6
|
-
<div className="pf-c-dual-list-selector__title">
|
7
|
-
<div className="pf-c-dual-list-selector__title-text">
|
5
|
+
<div className="pf-v5-c-dual-list-selector__header">
|
6
|
+
<div className="pf-v5-c-dual-list-selector__title">
|
7
|
+
<div className="pf-v5-c-dual-list-selector__title-text">
|
8
|
+
{props.title}
|
9
|
+
</div>
|
8
10
|
</div>
|
9
11
|
</div>
|
10
12
|
);
|
@@ -4,9 +4,9 @@ import PropTypes from 'prop-types';
|
|
4
4
|
|
5
5
|
const ListItem = props => {
|
6
6
|
const draggableBtn = (
|
7
|
-
<div className="pf-c-dual-list-selector__draggable">
|
7
|
+
<div className="pf-v5-c-dual-list-selector__draggable">
|
8
8
|
<button
|
9
|
-
className="pf-c-button pf-m-plain"
|
9
|
+
className="pf-v5-c-button pf-m-plain"
|
10
10
|
type="button"
|
11
11
|
aria-pressed="false"
|
12
12
|
aria-label="Reorder"
|
@@ -24,27 +24,27 @@ const ListItem = props => {
|
|
24
24
|
);
|
25
25
|
|
26
26
|
return (
|
27
|
-
<li className="pf-c-dual-list-selector__list-item">
|
27
|
+
<li className="pf-v5-c-dual-list-selector__list-item">
|
28
28
|
<div
|
29
|
-
className={classNames('pf-c-dual-list-selector__list-item-row ', {
|
29
|
+
className={classNames('pf-v5-c-dual-list-selector__list-item-row ', {
|
30
30
|
'pf-m-selected': props.selected,
|
31
31
|
'pf-m-ghost-row': props.dragging,
|
32
32
|
})}
|
33
33
|
>
|
34
34
|
{props.draggable && draggableBtn}
|
35
35
|
<button
|
36
|
-
className="pf-c-dual-list-selector__item"
|
36
|
+
className="pf-v5-c-dual-list-selector__item"
|
37
37
|
type="button"
|
38
38
|
onClick={props.onClick}
|
39
39
|
>
|
40
|
-
<span className="pf-c-dual-list-selector__item-main">
|
41
|
-
<span className="pf-c-dual-list-selector__item-text">
|
40
|
+
<span className="pf-v5-c-dual-list-selector__item-main">
|
41
|
+
<span className="pf-v5-c-dual-list-selector__item-text">
|
42
42
|
{props.draggable && orderBtn}
|
43
43
|
<span>{props.name}</span>
|
44
44
|
</span>
|
45
45
|
</span>
|
46
|
-
<span className="pf-c-dual-list-selector__item-count">
|
47
|
-
<span className="pf-c-badge pf-m-read" />
|
46
|
+
<span className="pf-v5-c-dual-list-selector__item-count">
|
47
|
+
<span className="pf-v5-c-badge pf-m-read" />
|
48
48
|
</span>
|
49
49
|
</button>
|
50
50
|
</div>
|