foreman_ansible 11.1.1 → 11.1.2

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/helpers/foreman_ansible/ansible_hostgroups_helper.rb +28 -8
  3. data/lib/foreman_ansible/version.rb +1 -1
  4. data/test/integration/hostgroup_js_test.rb +4 -2
  5. metadata +14 -51
  6. data/locale/ca/foreman_ansible.edit.po +0 -1162
  7. data/locale/ca/foreman_ansible.po.time_stamp +0 -0
  8. data/locale/cs_CZ/foreman_ansible.edit.po +0 -1207
  9. data/locale/cs_CZ/foreman_ansible.po.time_stamp +0 -0
  10. data/locale/de/foreman_ansible.edit.po +0 -1148
  11. data/locale/de/foreman_ansible.po.time_stamp +0 -0
  12. data/locale/en/foreman_ansible.edit.po +0 -1146
  13. data/locale/en/foreman_ansible.po.time_stamp +0 -0
  14. data/locale/en_GB/foreman_ansible.edit.po +0 -1155
  15. data/locale/en_GB/foreman_ansible.po.time_stamp +0 -0
  16. data/locale/es/foreman_ansible.edit.po +0 -1148
  17. data/locale/es/foreman_ansible.po.time_stamp +0 -0
  18. data/locale/fr/foreman_ansible.edit.po +0 -1148
  19. data/locale/fr/foreman_ansible.po.time_stamp +0 -0
  20. data/locale/gl/foreman_ansible.edit.po +0 -1156
  21. data/locale/gl/foreman_ansible.po.time_stamp +0 -0
  22. data/locale/it/foreman_ansible.edit.po +0 -1148
  23. data/locale/it/foreman_ansible.po.time_stamp +0 -0
  24. data/locale/ja/foreman_ansible.edit.po +0 -1148
  25. data/locale/ja/foreman_ansible.po.time_stamp +0 -0
  26. data/locale/ko/foreman_ansible.edit.po +0 -1148
  27. data/locale/ko/foreman_ansible.po.time_stamp +0 -0
  28. data/locale/nl_NL/foreman_ansible.edit.po +0 -1168
  29. data/locale/nl_NL/foreman_ansible.po.time_stamp +0 -0
  30. data/locale/pl/foreman_ansible.edit.po +0 -1180
  31. data/locale/pl/foreman_ansible.po.time_stamp +0 -0
  32. data/locale/pt_BR/foreman_ansible.edit.po +0 -1148
  33. data/locale/pt_BR/foreman_ansible.po.time_stamp +0 -0
  34. data/locale/ru/foreman_ansible.edit.po +0 -1149
  35. data/locale/ru/foreman_ansible.po.time_stamp +0 -0
  36. data/locale/sv_SE/foreman_ansible.edit.po +0 -1180
  37. data/locale/sv_SE/foreman_ansible.po.time_stamp +0 -0
  38. data/locale/zh_CN/foreman_ansible.edit.po +0 -1148
  39. data/locale/zh_CN/foreman_ansible.po.time_stamp +0 -0
  40. data/locale/zh_TW/foreman_ansible.edit.po +0 -1148
  41. data/locale/zh_TW/foreman_ansible.po.time_stamp +0 -0
  42. 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
- &nbsp;
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);