foreman_ansible 11.1.1 → 11.2.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/helpers/foreman_ansible/ansible_hostgroups_helper.rb +28 -8
- data/app/views/foreman_ansible/job_templates/convert_to_rhel.erb +20 -0
- data/db/migrate/20221003153000_add_ansible_callback_enabled_to_templates.rb +1 -1
- data/db/migrate/20230416170000_enable_ansible_callback_for_rex_feature.rb +5 -0
- data/lib/foreman_ansible/version.rb +1 -1
- data/test/integration/hostgroup_js_test.rb +4 -2
- metadata +15 -51
- data/locale/ca/foreman_ansible.edit.po +0 -1162
- data/locale/ca/foreman_ansible.po.time_stamp +0 -0
- data/locale/cs_CZ/foreman_ansible.edit.po +0 -1207
- data/locale/cs_CZ/foreman_ansible.po.time_stamp +0 -0
- data/locale/de/foreman_ansible.edit.po +0 -1148
- data/locale/de/foreman_ansible.po.time_stamp +0 -0
- data/locale/en/foreman_ansible.edit.po +0 -1146
- data/locale/en/foreman_ansible.po.time_stamp +0 -0
- data/locale/en_GB/foreman_ansible.edit.po +0 -1155
- data/locale/en_GB/foreman_ansible.po.time_stamp +0 -0
- data/locale/es/foreman_ansible.edit.po +0 -1148
- data/locale/es/foreman_ansible.po.time_stamp +0 -0
- data/locale/fr/foreman_ansible.edit.po +0 -1148
- data/locale/fr/foreman_ansible.po.time_stamp +0 -0
- data/locale/gl/foreman_ansible.edit.po +0 -1156
- data/locale/gl/foreman_ansible.po.time_stamp +0 -0
- data/locale/it/foreman_ansible.edit.po +0 -1148
- data/locale/it/foreman_ansible.po.time_stamp +0 -0
- data/locale/ja/foreman_ansible.edit.po +0 -1148
- data/locale/ja/foreman_ansible.po.time_stamp +0 -0
- data/locale/ko/foreman_ansible.edit.po +0 -1148
- data/locale/ko/foreman_ansible.po.time_stamp +0 -0
- data/locale/nl_NL/foreman_ansible.edit.po +0 -1168
- data/locale/nl_NL/foreman_ansible.po.time_stamp +0 -0
- data/locale/pl/foreman_ansible.edit.po +0 -1180
- data/locale/pl/foreman_ansible.po.time_stamp +0 -0
- data/locale/pt_BR/foreman_ansible.edit.po +0 -1148
- data/locale/pt_BR/foreman_ansible.po.time_stamp +0 -0
- data/locale/ru/foreman_ansible.edit.po +0 -1149
- data/locale/ru/foreman_ansible.po.time_stamp +0 -0
- data/locale/sv_SE/foreman_ansible.edit.po +0 -1180
- data/locale/sv_SE/foreman_ansible.po.time_stamp +0 -0
- data/locale/zh_CN/foreman_ansible.edit.po +0 -1148
- data/locale/zh_CN/foreman_ansible.po.time_stamp +0 -0
- data/locale/zh_TW/foreman_ansible.edit.po +0 -1148
- data/locale/zh_TW/foreman_ansible.po.time_stamp +0 -0
- data/webpack/components/AnsibleHostDetail/components/JobsTab/PreviousJobsTable.js.orig +0 -151
File without changes
|
@@ -1,151 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import { translate as __ } from 'foremanReact/common/I18n';
|
4
|
-
import { usePaginationOptions } from 'foremanReact/components/Pagination/PaginationHooks';
|
5
|
-
|
6
|
-
import RelativeDateTime from 'foremanReact/components/common/dates/RelativeDateTime';
|
7
|
-
|
8
|
-
import {
|
9
|
-
TableComposable,
|
10
|
-
Thead,
|
11
|
-
Tbody,
|
12
|
-
Tr,
|
13
|
-
Th,
|
14
|
-
Td,
|
15
|
-
} from '@patternfly/react-table';
|
16
|
-
import { Flex, FlexItem, Pagination } from '@patternfly/react-core';
|
17
|
-
|
18
|
-
import { decodeId } from '../../../../globalIdHelper';
|
19
|
-
import withLoading from '../../../withLoading';
|
20
|
-
<<<<<<< HEAD
|
21
|
-
import { readableCron } from './JobsTabHelper';
|
22
|
-
import {
|
23
|
-
preparePerPageOptions,
|
24
|
-
refreshPage,
|
25
|
-
} from '../../../../helpers/paginationHelper';
|
26
|
-
=======
|
27
|
-
import { readableCron, readablePurpose } from './JobsTabHelper';
|
28
|
-
>>>>>>> 5b01704 (Fixes #34458 - Show Hostgroup jobs on the Host Detail page)
|
29
|
-
|
30
|
-
const PreviousJobsTable = ({ history, totalCount, jobs, pagination }) => {
|
31
|
-
const columns = [
|
32
|
-
__('Description'),
|
33
|
-
__('Result'),
|
34
|
-
__('State'),
|
35
|
-
__('Executed at'),
|
36
|
-
__('Schedule'),
|
37
|
-
];
|
38
|
-
|
39
|
-
const handlePerPageSelected = (event, perPage) => {
|
40
|
-
refreshPage(history, { page: 1, perPage });
|
41
|
-
};
|
42
|
-
|
43
|
-
const handlePageSelected = (event, page) => {
|
44
|
-
refreshPage(history, { ...pagination, page });
|
45
|
-
};
|
46
|
-
|
47
|
-
const perPageOptions = preparePerPageOptions(usePaginationOptions());
|
48
|
-
|
49
|
-
return (
|
50
|
-
<React.Fragment>
|
51
|
-
<h3>{__('Previously executed jobs')}</h3>
|
52
|
-
<<<<<<< HEAD
|
53
|
-
<Flex className="pf-u-pt-md">
|
54
|
-
=======
|
55
|
-
<Flex direction={{ default: 'column' }} className="pf-u-pt-md">
|
56
|
-
<FlexItem align={{ default: 'alignRight' }}>
|
57
|
-
<Pagination updateParamsByUrl itemCount={totalCount} variant="top" />
|
58
|
-
</FlexItem>
|
59
|
-
<FlexItem>
|
60
|
-
<TableComposable variant="compact">
|
61
|
-
<Thead>
|
62
|
-
<Tr>
|
63
|
-
{columns.map(col => (
|
64
|
-
<Th key={col}>{col}</Th>
|
65
|
-
))}
|
66
|
-
</Tr>
|
67
|
-
</Thead>
|
68
|
-
<Tbody>
|
69
|
-
{jobs.map(job => (
|
70
|
-
<Tr key={job.id}>
|
71
|
-
<Td>
|
72
|
-
<a
|
73
|
-
onClick={() =>
|
74
|
-
window.tfm.nav.pushUrl(
|
75
|
-
`/job_invocations/${decodeId(job.id)}`
|
76
|
-
)
|
77
|
-
}
|
78
|
-
>
|
79
|
-
{job.description}
|
80
|
-
</a>
|
81
|
-
|
82
|
-
{readablePurpose(job.recurringLogic.purpose)}
|
83
|
-
</Td>
|
84
|
-
<Td>{job.task.result}</Td>
|
85
|
-
<Td>{job.task.state}</Td>
|
86
|
-
<Td>
|
87
|
-
<RelativeDateTime date={job.startAt} />
|
88
|
-
</Td>
|
89
|
-
<Td>{readableCron(job.recurringLogic.cronLine)}</Td>
|
90
|
-
</Tr>
|
91
|
-
))}
|
92
|
-
</Tbody>
|
93
|
-
</TableComposable>
|
94
|
-
</FlexItem>
|
95
|
-
>>>>>>> 5b01704 (Fixes #34458 - Show Hostgroup jobs on the Host Detail page)
|
96
|
-
<FlexItem align={{ default: 'alignRight' }}>
|
97
|
-
<Pagination
|
98
|
-
itemCount={totalCount}
|
99
|
-
page={pagination.page}
|
100
|
-
perPage={pagination.perPage}
|
101
|
-
onSetPage={handlePageSelected}
|
102
|
-
onPerPageSelect={handlePerPageSelected}
|
103
|
-
perPageOptions={perPageOptions}
|
104
|
-
variant="top"
|
105
|
-
/>
|
106
|
-
</FlexItem>
|
107
|
-
</Flex>
|
108
|
-
<TableComposable variant="compact">
|
109
|
-
<Thead>
|
110
|
-
<Tr>
|
111
|
-
{columns.map(col => (
|
112
|
-
<Th key={col}>{col}</Th>
|
113
|
-
))}
|
114
|
-
</Tr>
|
115
|
-
</Thead>
|
116
|
-
<Tbody>
|
117
|
-
{jobs.map(job => (
|
118
|
-
<Tr key={job.id}>
|
119
|
-
<Td>
|
120
|
-
<a
|
121
|
-
onClick={() =>
|
122
|
-
window.tfm.nav.pushUrl(
|
123
|
-
`/job_invocations/${decodeId(job.id)}`
|
124
|
-
)
|
125
|
-
}
|
126
|
-
>
|
127
|
-
{job.description}
|
128
|
-
</a>
|
129
|
-
</Td>
|
130
|
-
<Td>{job.task.result}</Td>
|
131
|
-
<Td>{job.task.state}</Td>
|
132
|
-
<Td>
|
133
|
-
<RelativeDateTime date={job.startAt} />
|
134
|
-
</Td>
|
135
|
-
<Td>{readableCron(job.recurringLogic.cronLine)}</Td>
|
136
|
-
</Tr>
|
137
|
-
))}
|
138
|
-
</Tbody>
|
139
|
-
</TableComposable>
|
140
|
-
</React.Fragment>
|
141
|
-
);
|
142
|
-
};
|
143
|
-
|
144
|
-
PreviousJobsTable.propTypes = {
|
145
|
-
jobs: PropTypes.array.isRequired,
|
146
|
-
history: PropTypes.object.isRequired,
|
147
|
-
totalCount: PropTypes.number.isRequired,
|
148
|
-
pagination: PropTypes.object.isRequired,
|
149
|
-
};
|
150
|
-
|
151
|
-
export default withLoading(PreviousJobsTable);
|