katello 4.3.0.rc2 → 4.3.0.rc2.1
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.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/katello/version.rb +1 -1
- data/webpack/scenes/Content/Details/__tests__/contentDetail.test.js +2 -0
- data/webpack/scenes/ContentViews/Details/Repositories/LastSync.js +10 -2
- data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewAddRemove.test.js +2 -0
- metadata +2 -3
- data/webpack/utils/dateTimeHelpers.js +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bef8f9a19283e1e922e5fd790b8cad66e87076521d03f8ee38a3b943d2c836db
|
4
|
+
data.tar.gz: f43be54d4e047f721872fc83ad6bf084412aa79e09d0b0fe615a5a857e653705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9be75ea348924a76d51e354203f184a6079173c29bf9273310beee15c7a4f5f677cda11740321abad79d39df25f63d427dd218173ff818263d2ffdc5132126
|
7
|
+
data.tar.gz: 61e8e11e80f1f8c7a5e3a4376777213fc0ce186da26971fdbc180bdd12e01cd3fcb6d188402eade222c157bd2321b8227c7ef1a2f66bfee79b745c280f824d07
|
data/lib/katello/version.rb
CHANGED
@@ -20,6 +20,8 @@ const withContentRoute = component => <Route path="/content/:content_type([a-z_]
|
|
20
20
|
let searchDelayScope;
|
21
21
|
let autoSearchScope;
|
22
22
|
|
23
|
+
jest.mock('react-intl', () => ({ addLocaleData: () => { }, FormattedDate: () => 'mocked' }));
|
24
|
+
|
23
25
|
test('Can call API for Python package details and show details tab on page load', async (done) => {
|
24
26
|
const renderOptions = {
|
25
27
|
apiNamespace: CONTENT_ID_KEY,
|
@@ -5,13 +5,13 @@ import {
|
|
5
5
|
ExclamationCircleIcon,
|
6
6
|
InProgressIcon,
|
7
7
|
} from '@patternfly/react-icons';
|
8
|
+
import { FormattedDate } from 'react-intl';
|
8
9
|
import { Tooltip, TooltipPosition } from '@patternfly/react-core';
|
9
10
|
|
10
11
|
import { foremanUrl } from 'foremanReact/common/helpers';
|
11
12
|
import PropTypes from 'prop-types';
|
12
13
|
import { translate as __ } from 'foremanReact/common/I18n';
|
13
14
|
import InactiveText from '../../components/InactiveText';
|
14
|
-
import { makeReadableDate } from '../../../../utils/dateTimeHelpers';
|
15
15
|
|
16
16
|
const LastSync = ({
|
17
17
|
lastSyncWords, lastSync, emptyMessage, startedAt,
|
@@ -41,7 +41,15 @@ const LastSync = ({
|
|
41
41
|
return (
|
42
42
|
<Tooltip
|
43
43
|
position={TooltipPosition.top}
|
44
|
-
content={
|
44
|
+
content={
|
45
|
+
<FormattedDate
|
46
|
+
value={startedAt}
|
47
|
+
day="2-digit"
|
48
|
+
month="long"
|
49
|
+
hour="2-digit"
|
50
|
+
minute="2-digit"
|
51
|
+
year="numeric"
|
52
|
+
/>}
|
45
53
|
>
|
46
54
|
<a
|
47
55
|
href={foremanUrl(`/foreman_tasks/tasks/${id}/`)}
|
data/webpack/scenes/ContentViews/Details/Repositories/__tests__/contentViewAddRemove.test.js
CHANGED
@@ -38,6 +38,8 @@ afterEach(() => {
|
|
38
38
|
assertNockRequest(autoSearchScope);
|
39
39
|
});
|
40
40
|
|
41
|
+
jest.mock('react-intl', () => ({ addLocaleData: () => { }, FormattedDate: () => 'mocked' }));
|
42
|
+
|
41
43
|
test('Can enable and disable add repositories button', async (done) => {
|
42
44
|
const autocompleteScope = mockAutocomplete(nockInstance, autocompleteUrl);
|
43
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.0.rc2
|
4
|
+
version: 4.3.0.rc2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N/A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -5306,7 +5306,6 @@ files:
|
|
5306
5306
|
- webpack/test-utils/react-testing-lib-wrapper.js
|
5307
5307
|
- webpack/test_setup.js
|
5308
5308
|
- webpack/utils/__tests__/useParamsWithHash.test.js
|
5309
|
-
- webpack/utils/dateTimeHelpers.js
|
5310
5309
|
- webpack/utils/helpers.js
|
5311
5310
|
- webpack/utils/paramsFromHash.js
|
5312
5311
|
- webpack/utils/useDebounce.js
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import moment from 'moment';
|
2
|
-
|
3
|
-
// Example: "2021-11-08 12:01:23 -0700" => November 08, 2021, 12:01 PM
|
4
|
-
export const makeReadableDate = dateString =>
|
5
|
-
moment(dateString, 'YYYY-MM-DD hh:mm:ss Z').format('MMMM DD, YYYY, h:mm A');
|
6
|
-
|
7
|
-
export default { makeReadableDate };
|