katello 4.14.1 → 4.14.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/controllers/katello/api/v2/activation_keys_controller.rb +2 -2
- data/app/lib/actions/katello/repository/destroy.rb +1 -5
- data/app/lib/actions/katello/repository/update.rb +1 -5
- data/app/models/katello/concerns/content_facet_host_extensions.rb +12 -36
- data/lib/katello/version.rb +1 -1
- data/locale/bn/LC_MESSAGES/katello.mo +0 -0
- data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/ca/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs/LC_MESSAGES/katello.mo +0 -0
- data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
- data/locale/de/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
- data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
- data/locale/el/LC_MESSAGES/katello.mo +0 -0
- data/locale/en/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
- data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
- data/locale/es/LC_MESSAGES/katello.mo +0 -0
- data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
- data/locale/fr/LC_MESSAGES/katello.mo +0 -0
- data/locale/gl/LC_MESSAGES/katello.mo +0 -0
- data/locale/gu/LC_MESSAGES/katello.mo +0 -0
- data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
- data/locale/hi/LC_MESSAGES/katello.mo +0 -0
- data/locale/id/LC_MESSAGES/katello.mo +0 -0
- data/locale/it/LC_MESSAGES/katello.mo +0 -0
- data/locale/ja/LC_MESSAGES/katello.mo +0 -0
- data/locale/ka/LC_MESSAGES/katello.mo +0 -0
- data/locale/kn/LC_MESSAGES/katello.mo +0 -0
- data/locale/ko/LC_MESSAGES/katello.mo +0 -0
- data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/mr/LC_MESSAGES/katello.mo +0 -0
- data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
- data/locale/or/LC_MESSAGES/katello.mo +0 -0
- data/locale/pa/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl/LC_MESSAGES/katello.mo +0 -0
- data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt/LC_MESSAGES/katello.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro/LC_MESSAGES/katello.mo +0 -0
- data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
- data/locale/ru/LC_MESSAGES/katello.mo +0 -0
- data/locale/sl/LC_MESSAGES/katello.mo +0 -0
- data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta/LC_MESSAGES/katello.mo +0 -0
- data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
- data/locale/te/LC_MESSAGES/katello.mo +0 -0
- data/locale/tr/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi/LC_MESSAGES/katello.mo +0 -0
- data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/katello.mo +0 -0
- data/webpack/redux/actions/RedHatRepositories/helpers.js +6 -6
- metadata +50 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd67a5d3169bbda126588bc123ac23ad95514e886fd546d212c149f5a62f7b8
|
4
|
+
data.tar.gz: 4b5681c673e1ecb65a71796ef5b493380363345336100efdf55a06ae818bf708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1834fc21b5fe071b50fb04837dd361f8d5dbe49155a3bfc195151ac1a3c7154dc426d25cd83cbd6e2d90c3d89135068ca79c5ce032e65ad29cccad57af3527b
|
7
|
+
data.tar.gz: 25fb6125c429eea841b1f1c4be625a4f51268ef126a3122f7357104721aa883d8a38cfb958565a642c7c6edf52b59119a0ded847063b9012ee92476890faa887
|
@@ -19,8 +19,8 @@ module Katello
|
|
19
19
|
api :GET, "/environments/:environment_id/activation_keys"
|
20
20
|
api :GET, "/organizations/:organization_id/activation_keys"
|
21
21
|
param :organization_id, :number, :desc => N_("organization identifier"), :required => true
|
22
|
-
param :environment_id, :number, :desc => N_("environment identifier")
|
23
|
-
param :content_view_id, :number, :desc => N_("content view identifier")
|
22
|
+
param :environment_id, :number, :desc => N_("environment identifier"), :allow_nil => true
|
23
|
+
param :content_view_id, :number, :desc => N_("content view identifier"), :allow_nil => true
|
24
24
|
param :name, String, :desc => N_("activation key name to filter by")
|
25
25
|
param_group :search, Api::V2::ApiController
|
26
26
|
add_scoped_search_description_for(ActivationKey)
|
@@ -70,11 +70,7 @@ module Actions
|
|
70
70
|
# Remove products from ACS's that contain no repositories which both
|
71
71
|
# match the ACS content type and have a non-nil URL
|
72
72
|
product = repository.product
|
73
|
-
repo_content_types =
|
74
|
-
product.repositories.each do |test_repo|
|
75
|
-
# we need to check id because test_repo will still contain the old, non-nil url
|
76
|
-
repo_content_types.add(test_repo.content_type) if (repository.id != test_repo.id) && test_repo.url.present?
|
77
|
-
end
|
73
|
+
repo_content_types = ::Katello::RootRepository.where(:id => product.repositories.where.not(:id => repository.id).select(:root_id)).where.not(:url => [nil, '']).distinct.pluck(:content_type)
|
78
74
|
::Katello::AlternateContentSource.with_products(product).each do |acs|
|
79
75
|
unless repo_content_types.include?(acs.content_type)
|
80
76
|
acs.products = acs.products - [product]
|
@@ -91,11 +91,7 @@ module Actions
|
|
91
91
|
# Remove products from ACS's that contain no repositories which both
|
92
92
|
# match the ACS content type and have a non-nil URL
|
93
93
|
product = repository.product
|
94
|
-
repo_content_types =
|
95
|
-
product.acs_compatible_repositories.each do |test_repo|
|
96
|
-
# we need to check id because test_repo will still contain the old, non-nil url
|
97
|
-
repo_content_types.add(test_repo.content_type) if (repository.id != test_repo.id) && test_repo.url.present?
|
98
|
-
end
|
94
|
+
repo_content_types = ::Katello::RootRepository.where(:id => product.repositories.where.not(:id => repository.id).select(:root_id)).where.not(:url => [nil, '']).distinct.pluck(:content_type)
|
99
95
|
::Katello::AlternateContentSource.with_products(product).each do |acs|
|
100
96
|
unless repo_content_types.include?(acs.content_type)
|
101
97
|
acs.products = acs.products - [product]
|
@@ -79,22 +79,14 @@ module Katello
|
|
79
79
|
module ClassMethods
|
80
80
|
def find_by_applicable_errata(_key, operator, value)
|
81
81
|
conditions = sanitize_sql_for_conditions(["#{Katello::Erratum.table_name}.errata_id #{operator} ?", value_to_sql(operator, value)])
|
82
|
-
hosts = ::Host::Managed.joins(:applicable_errata).where(conditions)
|
83
|
-
|
84
|
-
{ :conditions => "1=0" }
|
85
|
-
else
|
86
|
-
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{hosts.pluck(:id).join(',')})" }
|
87
|
-
end
|
82
|
+
hosts = ::Host::Managed.joins(:applicable_errata).select(:id).where(conditions)
|
83
|
+
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{hosts.to_sql})" }
|
88
84
|
end
|
89
85
|
|
90
86
|
def find_by_installable_errata(_key, operator, value)
|
91
87
|
conditions = sanitize_sql_for_conditions(["#{Katello::Erratum.table_name}.errata_id #{operator} ?", value_to_sql(operator, value)])
|
92
|
-
facets = Katello::Host::ContentFacet.joins_installable_errata.where(conditions)
|
93
|
-
|
94
|
-
{ :conditions => "1=0" }
|
95
|
-
else
|
96
|
-
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.pluck(:host_id).join(',')})" }
|
97
|
-
end
|
88
|
+
facets = Katello::Host::ContentFacet.joins_installable_errata.select(:host_id).where(conditions)
|
89
|
+
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.to_sql})" }
|
98
90
|
end
|
99
91
|
|
100
92
|
def find_by_applicable_debs(_key, operator, value)
|
@@ -117,42 +109,26 @@ module Katello
|
|
117
109
|
|
118
110
|
def find_by_applicable_rpms(_key, operator, value)
|
119
111
|
conditions = sanitize_sql_for_conditions(["#{Katello::Rpm.table_name}.nvra #{operator} ?", value_to_sql(operator, value)])
|
120
|
-
hosts = ::Host::Managed.joins(:applicable_rpms).where(conditions)
|
121
|
-
|
122
|
-
{ :conditions => "1=0" }
|
123
|
-
else
|
124
|
-
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{hosts.pluck(:id).join(',')})" }
|
125
|
-
end
|
112
|
+
hosts = ::Host::Managed.joins(:applicable_rpms).select(:id).where(conditions)
|
113
|
+
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{hosts.to_sql})" }
|
126
114
|
end
|
127
115
|
|
128
116
|
def find_by_installable_rpms(_key, operator, value)
|
129
117
|
conditions = sanitize_sql_for_conditions(["#{Katello::Rpm.table_name}.nvra #{operator} ?", value_to_sql(operator, value)])
|
130
|
-
facets = Katello::Host::ContentFacet.joins_installable_rpms.where(conditions)
|
131
|
-
|
132
|
-
{ :conditions => "1=0" }
|
133
|
-
else
|
134
|
-
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.pluck(:host_id).join(',')})" }
|
135
|
-
end
|
118
|
+
facets = Katello::Host::ContentFacet.joins_installable_rpms.select(:host_id).where(conditions)
|
119
|
+
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.to_sql})" }
|
136
120
|
end
|
137
121
|
|
138
122
|
def find_by_repository_content_label(_key, operator, value)
|
139
123
|
conditions = sanitize_sql_for_conditions(["#{Katello::Content.table_name}.label #{operator} ?", value_to_sql(operator, value)])
|
140
|
-
facets = Katello::Host::ContentFacet.joins_repositories.where(conditions)
|
141
|
-
|
142
|
-
{ :conditions => "1=0" }
|
143
|
-
else
|
144
|
-
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.pluck(:host_id).join(',')})" }
|
145
|
-
end
|
124
|
+
facets = Katello::Host::ContentFacet.joins_repositories.select(:host_id).where(conditions)
|
125
|
+
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.to_sql})" }
|
146
126
|
end
|
147
127
|
|
148
128
|
def find_by_repository_name(_key, operator, value)
|
149
129
|
conditions = sanitize_sql_for_conditions(["#{Katello::RootRepository.table_name}.name #{operator} ?", value_to_sql(operator, value)])
|
150
|
-
facets = Katello::Host::ContentFacet.joins_repositories.where(conditions)
|
151
|
-
|
152
|
-
{ :conditions => "1=0" }
|
153
|
-
else
|
154
|
-
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.pluck(:host_id).join(',')})" }
|
155
|
-
end
|
130
|
+
facets = Katello::Host::ContentFacet.joins_repositories.select(:host_id).where(conditions)
|
131
|
+
{ :conditions => "#{::Host::Managed.table_name}.id IN (#{facets.to_sql})" }
|
156
132
|
end
|
157
133
|
|
158
134
|
def in_content_view_environments(content_views: nil, lifecycle_environments: nil)
|
data/lib/katello/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -28,15 +28,15 @@ const recommendedRepositoriesSatTools = [
|
|
28
28
|
'satellite-client-6-for-rhel-9-x86_64-rpms',
|
29
29
|
'satellite-client-6-for-rhel-8-x86_64-rpms',
|
30
30
|
'rhel-7-server-els-satellite-client-6-rpms',
|
31
|
-
'rhel-7-server-els-satellite-6-client-2-rpms',
|
32
|
-
'satellite-6-client-2-for-rhel-8-x86_64-rpms',
|
33
|
-
'satellite-6-client-2-for-rhel-9-x86_64-rpms',
|
34
31
|
];
|
35
32
|
|
36
33
|
const recommendedRepositoriesMisc = [
|
37
|
-
'satellite-capsule-6.
|
38
|
-
'satellite-maintenance-6.
|
39
|
-
'satellite-utils-6.
|
34
|
+
'satellite-capsule-6.16-for-rhel-8-x86_64-rpms',
|
35
|
+
'satellite-maintenance-6.16-for-rhel-8-x86_64-rpms',
|
36
|
+
'satellite-utils-6.16-for-rhel-8-x86_64-rpms',
|
37
|
+
'satellite-utils-6.16-for-rhel-9-x86_64-rpms',
|
38
|
+
'satellite-maintenance-6.16-for-rhel-9-x86_64-rpms',
|
39
|
+
'satellite-capsule-6.16-for-rhel-9-x86_64-rpms',
|
40
40
|
];
|
41
41
|
|
42
42
|
const recommendedRepositorySetLables = recommendedRepositoriesRHEL
|
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.14.
|
4
|
+
version: 4.14.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: 2024-
|
11
|
+
date: 2024-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -4387,55 +4387,103 @@ files:
|
|
4387
4387
|
- locale/Makefile
|
4388
4388
|
- locale/README
|
4389
4389
|
- locale/action_names.rb
|
4390
|
+
- locale/bn/LC_MESSAGES/katello.mo
|
4390
4391
|
- locale/bn/katello.po
|
4392
|
+
- locale/bn_IN/LC_MESSAGES/katello.mo
|
4391
4393
|
- locale/bn_IN/katello.po
|
4394
|
+
- locale/ca/LC_MESSAGES/katello.mo
|
4392
4395
|
- locale/ca/katello.po
|
4396
|
+
- locale/cs/LC_MESSAGES/katello.mo
|
4393
4397
|
- locale/cs/katello.po
|
4398
|
+
- locale/cs_CZ/LC_MESSAGES/katello.mo
|
4394
4399
|
- locale/cs_CZ/katello.po
|
4400
|
+
- locale/de/LC_MESSAGES/katello.mo
|
4395
4401
|
- locale/de/katello.po
|
4402
|
+
- locale/de_AT/LC_MESSAGES/katello.mo
|
4396
4403
|
- locale/de_AT/katello.po
|
4404
|
+
- locale/de_DE/LC_MESSAGES/katello.mo
|
4397
4405
|
- locale/de_DE/katello.po
|
4406
|
+
- locale/el/LC_MESSAGES/katello.mo
|
4398
4407
|
- locale/el/katello.po
|
4408
|
+
- locale/en/LC_MESSAGES/katello.mo
|
4399
4409
|
- locale/en/katello.po
|
4410
|
+
- locale/en_GB/LC_MESSAGES/katello.mo
|
4400
4411
|
- locale/en_GB/katello.po
|
4412
|
+
- locale/en_US/LC_MESSAGES/katello.mo
|
4401
4413
|
- locale/en_US/katello.po
|
4414
|
+
- locale/es/LC_MESSAGES/katello.mo
|
4402
4415
|
- locale/es/katello.po
|
4416
|
+
- locale/et_EE/LC_MESSAGES/katello.mo
|
4403
4417
|
- locale/et_EE/katello.po
|
4418
|
+
- locale/fr/LC_MESSAGES/katello.mo
|
4404
4419
|
- locale/fr/katello.po
|
4420
|
+
- locale/gl/LC_MESSAGES/katello.mo
|
4405
4421
|
- locale/gl/katello.po
|
4422
|
+
- locale/gu/LC_MESSAGES/katello.mo
|
4406
4423
|
- locale/gu/katello.po
|
4424
|
+
- locale/he_IL/LC_MESSAGES/katello.mo
|
4407
4425
|
- locale/he_IL/katello.po
|
4426
|
+
- locale/hi/LC_MESSAGES/katello.mo
|
4408
4427
|
- locale/hi/katello.po
|
4428
|
+
- locale/id/LC_MESSAGES/katello.mo
|
4409
4429
|
- locale/id/katello.po
|
4430
|
+
- locale/it/LC_MESSAGES/katello.mo
|
4410
4431
|
- locale/it/katello.po
|
4432
|
+
- locale/ja/LC_MESSAGES/katello.mo
|
4411
4433
|
- locale/ja/katello.po
|
4434
|
+
- locale/ka/LC_MESSAGES/katello.mo
|
4412
4435
|
- locale/ka/katello.po
|
4413
4436
|
- locale/katello.pot
|
4437
|
+
- locale/kn/LC_MESSAGES/katello.mo
|
4414
4438
|
- locale/kn/katello.po
|
4439
|
+
- locale/ko/LC_MESSAGES/katello.mo
|
4415
4440
|
- locale/ko/katello.po
|
4441
|
+
- locale/ml_IN/LC_MESSAGES/katello.mo
|
4416
4442
|
- locale/ml_IN/katello.po
|
4443
|
+
- locale/mr/LC_MESSAGES/katello.mo
|
4417
4444
|
- locale/mr/katello.po
|
4445
|
+
- locale/nl_NL/LC_MESSAGES/katello.mo
|
4418
4446
|
- locale/nl_NL/katello.po
|
4447
|
+
- locale/or/LC_MESSAGES/katello.mo
|
4419
4448
|
- locale/or/katello.po
|
4449
|
+
- locale/pa/LC_MESSAGES/katello.mo
|
4420
4450
|
- locale/pa/katello.po
|
4451
|
+
- locale/pl/LC_MESSAGES/katello.mo
|
4421
4452
|
- locale/pl/katello.po
|
4453
|
+
- locale/pl_PL/LC_MESSAGES/katello.mo
|
4422
4454
|
- locale/pl_PL/katello.po
|
4455
|
+
- locale/pt/LC_MESSAGES/katello.mo
|
4423
4456
|
- locale/pt/katello.po
|
4457
|
+
- locale/pt_BR/LC_MESSAGES/katello.mo
|
4424
4458
|
- locale/pt_BR/katello.po
|
4459
|
+
- locale/ro/LC_MESSAGES/katello.mo
|
4425
4460
|
- locale/ro/katello.po
|
4461
|
+
- locale/ro_RO/LC_MESSAGES/katello.mo
|
4426
4462
|
- locale/ro_RO/katello.po
|
4463
|
+
- locale/ru/LC_MESSAGES/katello.mo
|
4427
4464
|
- locale/ru/katello.po
|
4465
|
+
- locale/sl/LC_MESSAGES/katello.mo
|
4428
4466
|
- locale/sl/katello.po
|
4467
|
+
- locale/sv_SE/LC_MESSAGES/katello.mo
|
4429
4468
|
- locale/sv_SE/katello.po
|
4469
|
+
- locale/ta/LC_MESSAGES/katello.mo
|
4430
4470
|
- locale/ta/katello.po
|
4471
|
+
- locale/ta_IN/LC_MESSAGES/katello.mo
|
4431
4472
|
- locale/ta_IN/katello.po
|
4473
|
+
- locale/te/LC_MESSAGES/katello.mo
|
4432
4474
|
- locale/te/katello.po
|
4475
|
+
- locale/tr/LC_MESSAGES/katello.mo
|
4433
4476
|
- locale/tr/katello.po
|
4434
4477
|
- locale/update-i18n
|
4478
|
+
- locale/vi/LC_MESSAGES/katello.mo
|
4435
4479
|
- locale/vi/katello.po
|
4480
|
+
- locale/vi_VN/LC_MESSAGES/katello.mo
|
4436
4481
|
- locale/vi_VN/katello.po
|
4482
|
+
- locale/zh/LC_MESSAGES/katello.mo
|
4437
4483
|
- locale/zh/katello.po
|
4484
|
+
- locale/zh_CN/LC_MESSAGES/katello.mo
|
4438
4485
|
- locale/zh_CN/katello.po
|
4486
|
+
- locale/zh_TW/LC_MESSAGES/katello.mo
|
4439
4487
|
- locale/zh_TW/katello.po
|
4440
4488
|
- package.json
|
4441
4489
|
- vendor/assets/images/katello/add2.png
|