katello 4.8.3 → 4.8.4

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: 394c0b86328c832286333df0a23a4cdf78b828e1321d16182678a77dd263d919
4
- data.tar.gz: a5df02b4fa3455885b598649b352f7ccb315cb958ca5346ef5f448544284ceb4
3
+ metadata.gz: 46269d021a36d01d1cd9a655da9b12e73acfa52a2801766d1b5b716905b71114
4
+ data.tar.gz: 1d69cfc2c26463e943b8a68f5fc8dadb926690f9d49a1a3ce4a0738b05720015
5
5
  SHA512:
6
- metadata.gz: 703fdc37bae22b0b452ae2a144e05f2c5654678e64c0a56291a45047caaf730b6bdcc9da3db0bd4b936322b4634e3f0f5be7a9e5e5c64f719d3dab8e3cab201f
7
- data.tar.gz: '0914650d9e9c5b7664850fee333422206952ee5b469dbb3058612ddffd40f30d24b436f23b62cea07707ed9682250e3ab39c18a8dc17f0b028cf11984896f0e6'
6
+ metadata.gz: 7d71fab9ddd5f6370c2f263a00e4c81d8b61ed4eeb8435aaab8d1e38c05ee4af595fefff4ae0e738abd0911abbfb007271a493686b025a99e46ec07efed78a37
7
+ data.tar.gz: cf0e518f9cf7702c43d72ab2fa7dbb4fd45b74145176a29d202952394947fd14e4a37b9994c06c7e6327eb7d864ff80779498cecd11b64b1c194e80b10ef430a
@@ -41,7 +41,7 @@ module Katello
41
41
  end
42
42
 
43
43
  def apply_inherited_attributes(attributes, initialized = true)
44
- attributes = super(attributes, initialized)
44
+ attributes = super(attributes, initialized) || {}
45
45
  facet_attrs = attributes['content_facet_attributes']
46
46
  return attributes if facet_attrs.blank?
47
47
  cv_id = facet_attrs['content_view_id']
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "4.8.3".freeze
2
+ VERSION = "4.8.4".freeze
3
3
  end
@@ -106,7 +106,7 @@ const HostContentViewDetails = ({
106
106
  <h3>{__('Content view')}</h3>
107
107
  </Flex>
108
108
  <Flex direction={{ default: 'row', sm: 'row' }} flexWrap={{ default: 'wrap' }}>
109
- <a style={{ fontSize: '14px' }} href={`/content_views/${contentView.id}`}>{`${contentView.name}`}</a>
109
+ <a style={{ fontSize: '14px' }} href={`/content_views/${contentView.id}`}>{contentView.name}</a>
110
110
  <Tooltip
111
111
  position="top"
112
112
  enableFlip
@@ -119,7 +119,7 @@ const HostContentViewDetails = ({
119
119
  }}
120
120
  />}
121
121
  >
122
- <Label isTruncated color="purple" href={`/lifecycle_environments/${lifecycleEnvironment.id}`}>{`${lifecycleEnvironment.name}`}</Label>
122
+ <Label isTruncated color="purple" href={`/lifecycle_environments/${lifecycleEnvironment.id}`}>{lifecycleEnvironment.name}</Label>
123
123
  </Tooltip>
124
124
  </Flex>
125
125
  </Flex>
@@ -584,7 +584,7 @@ export const PackagesTab = () => {
584
584
  }
585
585
 
586
586
  return (
587
- <Tr key={`${id}`} ouiaId={`action-row-${id}`}>
587
+ <Tr key={id} ouiaId={`action-row-${id}`}>
588
588
  {showActions ? (
589
589
  <Td
590
590
  select={{
@@ -59,7 +59,7 @@ const ContentRepositories = ({ contentType, id, tabKey }) => {
59
59
  </Thead>
60
60
  <Tbody>
61
61
  {results?.map((details, idx) => (
62
- <Tr key={`${details.id}`} ouiaId={`content-repositories-row-${idx}`}>
62
+ <Tr key={details.id} ouiaId={`content-repositories-row-${idx}`}>
63
63
  {columnHeaders.map((col, index) =>
64
64
  <Td key={index}>{col.getProperty(details, typeSingularLabel)}</Td>)
65
65
  }
@@ -65,7 +65,7 @@ const ContentTable = ({
65
65
  </Thead>
66
66
  <Tbody>
67
67
  {results?.map(details => (
68
- <Tr key={`${details.id}`}>
68
+ <Tr key={details.id}>
69
69
  {columnHeaders.map((col, index) =>
70
70
  <Td key={index}>{col.getProperty(details)}</Td>)
71
71
  }
@@ -10,7 +10,7 @@ const ComponentEnvironments = ({ environments }) => environments.map((env, index
10
10
  href={`/lifecycle_environments/${env.id}`}
11
11
  isTruncated
12
12
  >
13
- {`${env.name}`}
13
+ {env.name}
14
14
  </Label>
15
15
  ));
16
16
 
@@ -49,9 +49,9 @@ const ContentViewHistories = ({ cvId }) => {
49
49
  const taskType = task ? task.label : taskTypes[action];
50
50
 
51
51
  if (taskType === taskTypes.removal) {
52
- return <>{__('Deleted from ')} <Label isTruncated key="1" color="blue" href={`/lifecycle_environments/${environment?.id}`}>{`${environment?.name ?? __('all environments')}`}</Label></>;
52
+ return <>{__('Deleted from ')} <Label isTruncated key="1" color="blue" href={`/lifecycle_environments/${environment?.id}`}>{environment?.name ?? __('all environments')}</Label></>;
53
53
  } else if (action === 'promotion' || taskType === taskTypes.promotion) {
54
- return <>{__('Promoted to ')}<Label isTruncated key="2" color="blue" href={`/lifecycle_environments/${environment?.id}`}>{`${environment?.name}`}</Label></>;
54
+ return <>{__('Promoted to ')}<Label isTruncated key="2" color="blue" href={`/lifecycle_environments/${environment?.id}`}>{environment?.name}</Label></>;
55
55
  } else if (taskType === taskTypes.publish) {
56
56
  return __('Published new version');
57
57
  } else if (taskType === taskTypes.export) {
@@ -66,7 +66,7 @@ const AffectedActivationKeys = ({
66
66
  </Thead>
67
67
  <Tbody>
68
68
  {results?.map(({ name, id, environment }) => (
69
- <Tr ouiaId={`${id}`} key={`${id}`}>
69
+ <Tr ouiaId={id} key={id}>
70
70
  <Td>
71
71
  <a rel="noreferrer" target="_blank" href={urlBuilder(`activation_keys/${id}`, '')}>{name}</a>
72
72
  </Td>
@@ -65,7 +65,7 @@ const AffectedHosts = ({
65
65
  id,
66
66
  content_facet_attributes: { lifecycle_environment: environment },
67
67
  }) => (
68
- <Tr ouiaId={`${id}`} key={`${id}`}>
68
+ <Tr ouiaId={id} key={id}>
69
69
  <Td>
70
70
  <a rel="noreferrer" target="_blank" href={urlBuilder(`hosts/${id}`, '')}>{name}</a>
71
71
  </Td>
@@ -47,7 +47,7 @@ export const relevantVersionFromCv = (cv, env) =>
47
47
  const ContentViewSelectOption = ({ cv, env }) => (
48
48
  <SelectOption
49
49
  key={cv.id}
50
- value={`${cv.name}`}
50
+ value={cv.name}
51
51
  >
52
52
  <Flex
53
53
  direction={{ default: 'row', sm: 'row' }}
@@ -83,7 +83,7 @@ const RelatedContentViewsModal = ({ cvName, cvId, relatedCVCount }) => {
83
83
  </Thead>
84
84
  <Tbody>
85
85
  {results?.map(details => (
86
- <Tr key={`${details.content_view.id}`} ouiaId={`${details.content_view.id}`}>
86
+ <Tr key={details.content_view.id} ouiaId={details.content_view.id}>
87
87
  <Td>
88
88
  <Link to={urlBuilder(`content_views/${details.content_view.id}`, '')}>{details.content_view.name}</Link>
89
89
  </Td>
@@ -52,7 +52,7 @@ const ContentSourceSelect = ({
52
52
  {contentSources.map(cs => (
53
53
  <SelectOption
54
54
  key={cs.id}
55
- value={`${cs.id}`}
55
+ value={cs.id}
56
56
  >
57
57
  {cs.name}
58
58
  </SelectOption>
@@ -187,7 +187,11 @@ const ContentSourceForm = ({
187
187
  className="set-select-width"
188
188
  placeholderText={(contentViews.length === 0) ? __('No content views available') : __('Select a content view')}
189
189
  >
190
- {contentViews?.map(cv => <ContentViewSelectOption key={`${cv.id}`} cv={cv} env={environments[0]} />)}
190
+ {contentViews?.map(cv => (<ContentViewSelectOption
191
+ key={cv.id}
192
+ cv={cv}
193
+ env={environments[0]}
194
+ />))}
191
195
  </ContentViewSelect>
192
196
  }
193
197
  <ActionGroup style={{ display: 'block' }}>
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.8.3
4
+ version: 4.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - N/A
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails