katello 3.8.0.rc3 → 3.8.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.
- checksums.yaml +4 -4
- data/app/controllers/katello/api/v2/host_packages_controller.rb +1 -5
- data/app/lib/actions/pulp/consumer/abstract_content_action.rb +12 -0
- data/app/lib/actions/pulp/consumer/content_install.rb +1 -1
- data/app/lib/actions/pulp/consumer/content_uninstall.rb +1 -1
- data/app/lib/actions/pulp/consumer/content_update.rb +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-repository-sets-modal.controller.js +4 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages-installed.controller.js +1 -1
- data/lib/katello/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47586318c412278d01e596abf029eb1ac5daf00c
|
|
4
|
+
data.tar.gz: c6b70b2b09c74778a46cd0e9956bf1dea2026e7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e34da099dcbe80e6719c48e0aaca5384612b1b12c4aa629f1a573ba1608e36a1526f215b154dcacebcb01bc4fec32bc266ea3017b771025e0a7dedbf6949f438
|
|
7
|
+
data.tar.gz: b5a4629b88bb63be9fc35de61179d7db463b7dc5ee7d3c8c6b6f8a9bc0afe071c6529894612f3a3ecf338e28c3ea3da6d7e0484d66a79fff0d1566f920ddd445
|
|
@@ -102,13 +102,9 @@ module Katello
|
|
|
102
102
|
@host = resource_finder(::Host::Managed.authorized(:view_hosts, ::Host::Managed), params[:host_id])
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
def valid_package_name?(package_name)
|
|
106
|
-
package_name =~ /^[a-zA-Z0-9\-\.\_\+\,]+$/
|
|
107
|
-
end
|
|
108
|
-
|
|
109
105
|
def validate_package_list_format(packages)
|
|
110
106
|
packages.each do |package|
|
|
111
|
-
|
|
107
|
+
unless package.is_a?(String) && ::Katello::Util::Package.valid_package_name_format(package).nil?
|
|
112
108
|
fail HttpErrors::BadRequest, _("%s is not a valid package name") % package
|
|
113
109
|
end
|
|
114
110
|
end
|
|
@@ -44,6 +44,18 @@ module Actions
|
|
|
44
44
|
messages
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
# by default runcible puts whatever we pass into a hash under the 'name' key
|
|
48
|
+
# here we can make the unit hash more precise
|
|
49
|
+
def parse_units_for_type
|
|
50
|
+
if input[:type] == 'rpm'
|
|
51
|
+
input[:args].collect do |unit|
|
|
52
|
+
::Katello::Util::Package.parse_nvrea_nvre(unit) || unit
|
|
53
|
+
end
|
|
54
|
+
else
|
|
55
|
+
input[:args]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
47
59
|
def presenter
|
|
48
60
|
Consumer::ContentPresenter.new(self)
|
|
49
61
|
end
|
|
@@ -14,7 +14,7 @@ module Actions
|
|
|
14
14
|
def invoke_external_task
|
|
15
15
|
task = pulp_extensions.consumer.install_content(input[:consumer_uuid],
|
|
16
16
|
input[:type],
|
|
17
|
-
|
|
17
|
+
parse_units_for_type,
|
|
18
18
|
"importkeys" => true)
|
|
19
19
|
schedule_timeout(Setting['content_action_accept_timeout'])
|
|
20
20
|
task
|
|
@@ -28,14 +28,15 @@ angular.module('Bastion.content-hosts').controller('ContentHostsBulkRepositorySe
|
|
|
28
28
|
nutupaneParams = {
|
|
29
29
|
'organization_id': CurrentOrganization,
|
|
30
30
|
'offset': 0,
|
|
31
|
-
'sort_by': 'name',
|
|
32
|
-
'sort_order': 'ASC',
|
|
33
31
|
'paged': true
|
|
34
32
|
};
|
|
35
33
|
|
|
36
|
-
nutupane = new Nutupane(RepositorySet, nutupaneParams,
|
|
34
|
+
nutupane = new Nutupane(RepositorySet, nutupaneParams,
|
|
35
|
+
'queryPaged', {disableAutoLoad: true});
|
|
37
36
|
$scope.controllerName = 'katello_repository_sets';
|
|
38
37
|
nutupane.masterOnly = true;
|
|
38
|
+
nutupane.setSearchKey('repoSetsSearch');
|
|
39
|
+
nutupane.load();
|
|
39
40
|
|
|
40
41
|
$scope.table = nutupane.table;
|
|
41
42
|
|
|
@@ -18,7 +18,7 @@ angular.module('Bastion.content-hosts').controller('ContentHostPackagesInstalled
|
|
|
18
18
|
var packagesNutupane;
|
|
19
19
|
|
|
20
20
|
$scope.removeSelectedPackages = function () {
|
|
21
|
-
var selected = $scope.table.getSelected();
|
|
21
|
+
var selected = _.map($scope.table.getSelected(), 'name');
|
|
22
22
|
|
|
23
23
|
if (!$scope.working) {
|
|
24
24
|
$scope.working = true;
|
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: 3.8.0
|
|
4
|
+
version: 3.8.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: 2018-08-
|
|
11
|
+
date: 2018-08-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -2501,9 +2501,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
2501
2501
|
version: '0'
|
|
2502
2502
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
2503
2503
|
requirements:
|
|
2504
|
-
- - "
|
|
2504
|
+
- - ">="
|
|
2505
2505
|
- !ruby/object:Gem::Version
|
|
2506
|
-
version:
|
|
2506
|
+
version: '0'
|
|
2507
2507
|
requirements: []
|
|
2508
2508
|
rubyforge_project:
|
|
2509
2509
|
rubygems_version: 2.6.14.1
|