katello 4.4.0.1 → 4.4.0.2
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 +4 -4
- data/app/lib/actions/katello/repository/filtered_index_content.rb +3 -3
- data/app/models/katello/concerns/pulp_database_unit.rb +2 -1
- data/app/services/katello/content_unit_indexer.rb +3 -3
- data/lib/katello/version.rb +1 -1
- data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/CdnConfigurationConstants.js +1 -0
- data/webpack/scenes/Subscriptions/Manifest/CdnConfigurationTab/UpstreamServerTypeForm.js +9 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e2cbec78c4d297f09f1517b095e566c055bd14e2b3d4a534a5f904f8e9d43bc
|
4
|
+
data.tar.gz: 5f96a7ce828a6ac081883643f8f79d55088ded4a5a06d86c4bfc69fababc315e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c109e2ed4481c10d8bc475b706aa00498f3cfce65fb2f9ec6cf589be8da2a47344561b31d45a5721aaab9743ccdbf751ec665663b858c26eb433803db59bbc6c
|
7
|
+
data.tar.gz: 87d9b9ced044f3b34df8045a1ca1a02ca5ba695e4048999290fc0594f21186065c63036b93d4b1beef09162ddf9bb60c06dbd7cde7057df8a456a5701b8e9e3d
|
@@ -36,7 +36,7 @@ module Actions
|
|
36
36
|
else
|
37
37
|
unit_ids = search_units(repo)
|
38
38
|
end
|
39
|
-
::Katello::Deb.import_all(unit_ids, repo)
|
39
|
+
::Katello::Deb.import_all(unit_ids, repo, {filtered_indexing: true})
|
40
40
|
elsif repo.yum?
|
41
41
|
if input[:import_upload_task] && input[:import_upload_task][:content_unit_href]
|
42
42
|
unit_ids = [input[:import_upload_task][:content_unit_href]]
|
@@ -48,9 +48,9 @@ module Actions
|
|
48
48
|
unit_ids = search_units(repo)
|
49
49
|
end
|
50
50
|
if input[:content_type] == ::Katello::Srpm::CONTENT_TYPE
|
51
|
-
::Katello::Srpm.import_all(unit_ids, repo)
|
51
|
+
::Katello::Srpm.import_all(unit_ids, repo, {filtered_indexing: true})
|
52
52
|
else
|
53
|
-
::Katello::Rpm.import_all(unit_ids, repo)
|
53
|
+
::Katello::Rpm.import_all(unit_ids, repo, {filtered_indexing: true})
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -81,7 +81,8 @@ module Katello
|
|
81
81
|
|
82
82
|
def import_all(unit_ids, repository = nil, options = {})
|
83
83
|
content_type = options[:content_type] || self.content_type
|
84
|
-
|
84
|
+
filtered_indexing = options[:filtered_indexing] || false
|
85
|
+
Katello::ContentUnitIndexer.new(content_type: Katello::RepositoryTypeManager.find_content_type(content_type), repository: repository, pulp_content_ids: unit_ids).import_all(filtered_indexing)
|
85
86
|
end
|
86
87
|
|
87
88
|
def copy_repository_associations(source_repo, dest_repo)
|
@@ -21,9 +21,9 @@ module Katello
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
def import_all
|
24
|
+
def import_all(filtered_indexing = false)
|
25
|
+
additive = filtered_indexing || (@repository&.mirroring_policy == 'additive')
|
25
26
|
association_tracker = RepoAssociationTracker.new(@content_type, @service_class, @repository)
|
26
|
-
|
27
27
|
units_from_pulp.each do |units|
|
28
28
|
units.each do |unit|
|
29
29
|
association_tracker.push(unit)
|
@@ -52,7 +52,7 @@ module Katello
|
|
52
52
|
end
|
53
53
|
|
54
54
|
if @model_class.many_repository_associations && @repository
|
55
|
-
sync_repository_associations(association_tracker)
|
55
|
+
sync_repository_associations(association_tracker, additive: additive)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
data/lib/katello/version.rb
CHANGED
@@ -9,5 +9,6 @@ export const CDN_CONFIGURATION_TYPES = {
|
|
9
9
|
airgapped: __('Air-gapped'),
|
10
10
|
};
|
11
11
|
|
12
|
+
export const DEFAULT_ORGANIZATION_LABEL = 'Default_Organization';
|
12
13
|
export const DEFAULT_CONTENT_VIEW_LABEL = 'Default_Organization_View';
|
13
14
|
export const DEFAULT_LIFECYCLE_ENVIRONMENT_LABEL = 'Library';
|
@@ -18,7 +18,7 @@ import {
|
|
18
18
|
import { translate as __ } from 'foremanReact/common/I18n';
|
19
19
|
import { noop } from 'foremanReact/common/helpers';
|
20
20
|
|
21
|
-
import { UPSTREAM_SERVER, DEFAULT_CONTENT_VIEW_LABEL, DEFAULT_LIFECYCLE_ENVIRONMENT_LABEL } from './CdnConfigurationConstants';
|
21
|
+
import { UPSTREAM_SERVER, DEFAULT_CONTENT_VIEW_LABEL, DEFAULT_LIFECYCLE_ENVIRONMENT_LABEL, DEFAULT_ORGANIZATION_LABEL } from './CdnConfigurationConstants';
|
22
22
|
import EditableTextInput from '../../../../components/EditableTextInput';
|
23
23
|
|
24
24
|
import {
|
@@ -37,15 +37,17 @@ const UpstreamServerTypeForm = ({
|
|
37
37
|
const [username, setUsername] = useState(cdnConfiguration.username);
|
38
38
|
const [password, setPassword] = useState(null);
|
39
39
|
const [organizationLabel, setOrganizationLabel] =
|
40
|
-
useState(cdnConfiguration.upstream_organization_label);
|
40
|
+
useState(cdnConfiguration.upstream_organization_label || DEFAULT_ORGANIZATION_LABEL);
|
41
41
|
const [sslCaCredentialId, setSslCaCredentialId] = useState(cdnConfiguration.ssl_ca_credential_id);
|
42
42
|
const updatingCdnConfiguration = useSelector(state => selectUpdatingCdnConfiguration(state));
|
43
43
|
|
44
44
|
const [contentViewLabel, setContentViewLabel] =
|
45
|
-
useState(cdnConfiguration.upstream_content_view_label
|
45
|
+
useState(cdnConfiguration.upstream_content_view_label ||
|
46
|
+
DEFAULT_CONTENT_VIEW_LABEL);
|
46
47
|
|
47
48
|
const [lifecycleEnvironmentLabel, setLifecycleEnvironmentLabel] =
|
48
|
-
useState(cdnConfiguration.upstream_lifecycle_environment_label
|
49
|
+
useState(cdnConfiguration.upstream_lifecycle_environment_label ||
|
50
|
+
DEFAULT_LIFECYCLE_ENVIRONMENT_LABEL);
|
49
51
|
|
50
52
|
const [updateEnabled, setUpdateEnabled] = useState(false);
|
51
53
|
|
@@ -85,7 +87,7 @@ const UpstreamServerTypeForm = ({
|
|
85
87
|
url,
|
86
88
|
username,
|
87
89
|
password,
|
88
|
-
upstream_organization_label: organizationLabel,
|
90
|
+
upstream_organization_label: organizationLabel || DEFAULT_ORGANIZATION_LABEL,
|
89
91
|
ssl_ca_credential_id: sslCaCredentialId,
|
90
92
|
upstream_content_view_label: contentViewLabel || DEFAULT_CONTENT_VIEW_LABEL,
|
91
93
|
upstream_lifecycle_environment_label: lifecycleEnvironmentLabel ||
|
@@ -184,7 +186,7 @@ const UpstreamServerTypeForm = ({
|
|
184
186
|
<TextInput
|
185
187
|
aria-label="cdn-lifecycle-environment-label"
|
186
188
|
type="text"
|
187
|
-
value={lifecycleEnvironmentLabel ||
|
189
|
+
value={lifecycleEnvironmentLabel || ''}
|
188
190
|
isDisabled={updatingCdnConfiguration}
|
189
191
|
onChange={setLifecycleEnvironmentLabel}
|
190
192
|
/>
|
@@ -195,7 +197,7 @@ const UpstreamServerTypeForm = ({
|
|
195
197
|
<TextInput
|
196
198
|
aria-label="cdn-content-view-label"
|
197
199
|
type="text"
|
198
|
-
value={contentViewLabel ||
|
200
|
+
value={contentViewLabel || ''}
|
199
201
|
isDisabled={updatingCdnConfiguration}
|
200
202
|
onChange={setContentViewLabel}
|
201
203
|
/>
|
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.4.0.
|
4
|
+
version: 4.4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N/A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|