katello 4.17.0.rc2 → 4.17.0
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/app/controllers/katello/api/v2/content_view_repositories_controller.rb +5 -0
- data/app/controllers/katello/api/v2/repositories_controller.rb +1 -0
- data/app/lib/actions/katello/content_view/create.rb +5 -0
- data/app/models/katello/content_view_repository.rb +7 -0
- data/lib/katello/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c680d70aff055930ae2682d03f339d169d0e8925bd750b3589814aa575b38ae6
|
4
|
+
data.tar.gz: 9bc9ea09232f58f7a34fee366d45d0769bfbe8678833e63f3c533e001b23c20d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d866d7231780c82c6f437d23367cfd72292db1ba8ed5e4bfb32c9f323b8454be3f06833cb15823f9147afdff35f828d1d07363f83a9f0b2421e6f74de9f49f40
|
7
|
+
data.tar.gz: 328ff0812895e6201f486b5ae01459b1710dbf6532a6ac1c5164c5263a8a3843d24d1fa9301471498c623e4edcbaabd16d955ba06985af02a0a1de4918145b6e
|
@@ -25,6 +25,11 @@ module Katello
|
|
25
25
|
SQL
|
26
26
|
|
27
27
|
query = Katello::Repository.readable.in_default_view.in_organization(@organization)
|
28
|
+
if @content_view.rolling
|
29
|
+
# Exclude container push repositories
|
30
|
+
query = query.joins(:root).where(katello_root_repositories: { is_container_push: false })
|
31
|
+
end
|
32
|
+
|
28
33
|
query = query.with_type(params[:content_type]) if params[:content_type]
|
29
34
|
# Use custom sort to perform the join and order since we need to order by specific content_view
|
30
35
|
# and the ORDER BY query needs access to the katello_content_view_repositories table
|
@@ -719,6 +719,7 @@ Alternatively, use the 'force' parameter to regenerate metadata locally. On the
|
|
719
719
|
if is_available_for
|
720
720
|
params[:library] = true
|
721
721
|
sub_query = ContentViewRepository.where(:content_view_id => content_view_id).pluck(:repository_id)
|
722
|
+
sub_query += Repository.where(root: RootRepository.where(is_container_push: true)).pluck(:id) if ContentView.find(content_view_id).rolling
|
722
723
|
query = query.where("#{Repository.table_name}.id not in (#{sub_query.join(',')})") unless sub_query.empty?
|
723
724
|
elsif environment_id
|
724
725
|
version = ContentViewVersion.in_environment(environment_id).where(:content_view_id => content_view_id)
|
@@ -6,6 +6,11 @@ module Actions
|
|
6
6
|
content_view.save!
|
7
7
|
if content_view.rolling?
|
8
8
|
plan_action(AddToEnvironment, content_view.create_new_version, content_view.organization.library)
|
9
|
+
repository_ids = content_view.repository_ids
|
10
|
+
if repository_ids.any?
|
11
|
+
content_view.reload
|
12
|
+
plan_action(AddRollingRepoClone, content_view, repository_ids)
|
13
|
+
end
|
9
14
|
end
|
10
15
|
end
|
11
16
|
|
@@ -18,6 +18,7 @@ module Katello
|
|
18
18
|
validates_lengths_from_database
|
19
19
|
validates :repository_id, :uniqueness => {:scope => :content_view_id, :message => N_("already belongs to the content view") }
|
20
20
|
validate :content_view_composite
|
21
|
+
validate :content_view_rolling
|
21
22
|
validate :ensure_repository_type
|
22
23
|
validate :check_repo_membership
|
23
24
|
|
@@ -29,6 +30,12 @@ module Katello
|
|
29
30
|
end
|
30
31
|
end
|
31
32
|
|
33
|
+
def content_view_rolling
|
34
|
+
if content_view.rolling? && repository.root.is_container_push?
|
35
|
+
errors.add(:base, _("Cannot add container push repositories to a rolling content view"))
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
32
39
|
def ensure_repository_type
|
33
40
|
unless allowed_repository_types.include?(repository.content_type)
|
34
41
|
errors.add(:base, _("Cannot add %s repositories to a content view.") % repository.content_type)
|
data/lib/katello/version.rb
CHANGED
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.17.0
|
4
|
+
version: 4.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N/A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -5544,11 +5544,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
5544
5544
|
version: '4'
|
5545
5545
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
5546
5546
|
requirements:
|
5547
|
-
- - "
|
5547
|
+
- - ">="
|
5548
5548
|
- !ruby/object:Gem::Version
|
5549
|
-
version:
|
5549
|
+
version: '0'
|
5550
5550
|
requirements: []
|
5551
|
-
rubygems_version: 3.
|
5551
|
+
rubygems_version: 3.5.22
|
5552
5552
|
signing_key:
|
5553
5553
|
specification_version: 4
|
5554
5554
|
summary: Content and Subscription Management plugin for Foreman
|