katello 4.3.0.rc2 → 4.3.0.rc2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0f8ba091ba332e76f76b544ef424c77aa3a38b6b787e8f8f8b36ab1440e25af
4
- data.tar.gz: 6f756d679f8b06257ed6b378832b657af76498831e8e22b28a46ae700e228e1e
3
+ metadata.gz: bef8f9a19283e1e922e5fd790b8cad66e87076521d03f8ee38a3b943d2c836db
4
+ data.tar.gz: f43be54d4e047f721872fc83ad6bf084412aa79e09d0b0fe615a5a857e653705
5
5
  SHA512:
6
- metadata.gz: 559529864f4cdb5816256466bcf41b19eaaea681003163b55740760ff264475d20e3a786da8e57faae43580550ead9e6850b72935addca224c20d85264e2ef9d
7
- data.tar.gz: a699a711de49a1212a50e24cb7661e310723581a501bb74633ef4f41c062546362631588269452e9d54e39f2a809dc1c5d2a10fa4067f2ba1265fa5e3909a372
6
+ metadata.gz: 7a9be75ea348924a76d51e354203f184a6079173c29bf9273310beee15c7a4f5f677cda11740321abad79d39df25f63d427dd218173ff818263d2ffdc5132126
7
+ data.tar.gz: 61e8e11e80f1f8c7a5e3a4376777213fc0ce186da26971fdbc180bdd12e01cd3fcb6d188402eade222c157bd2321b8227c7ef1a2f66bfee79b745c280f824d07
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "4.3.0.rc2".freeze
2
+ VERSION = "4.3.0.rc2.1".freeze
3
3
  end
@@ -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={makeReadableDate(startedAt)}
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}/`)}
@@ -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-29 00:00:00.000000000 Z
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 };