katello 4.14.0.rc1 → 4.14.0.rc2
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/concerns/api/v2/registration_controller_extensions.rb +4 -0
- data/app/controllers/katello/remote_execution_controller.rb +1 -1
- data/app/models/katello/authorization/product.rb +1 -1
- data/lib/katello/version.rb +1 -1
- data/webpack/components/Table/PageControls.js +1 -0
- data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionActions.js +11 -3
- data/webpack/components/extensions/HostDetails/Tabs/__tests__/remoteExecutionActions.test.js +44 -0
- data/webpack/components/pf3Table/components/Table.js +1 -0
- data/webpack/components/pf3Table/components/__snapshots__/Table.test.js.snap +1 -1
- data/webpack/scenes/RedHatRepositories/__tests__/__snapshots__/RedHatRepositoriesPage.test.js.snap +1 -1
- data/webpack/scenes/RedHatRepositories/helpers.js +2 -0
- metadata +3 -50
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d82407c5c5f59353d0e535980acdf1e885159503324fdfc3ddb14fee9dbe8369
|
4
|
+
data.tar.gz: cb93598ca6c89f41ffa97661955c5a16ab7457431ab8ed20fba22e39c4a5f5eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be8629757389e83723b4db3f6c816473df09f009e73ef34ce6c710e33468c62939710f3bf2392797f146ca45b0d26f2540c2e8696e688ddf8ba7f927d2d2efd2
|
7
|
+
data.tar.gz: f57e816ce94d26a0f98b3974d6c21936754805177b07f05f076adb953de0c9b21b3453834c9a2e8c1e8eb02539bd1102fc653bdfa8ecc2ab86819eef0ed4ab6c
|
@@ -31,6 +31,10 @@ module Katello
|
|
31
31
|
super.merge(rhsm_url: smart_proxy.rhsm_url, pulp_content_url: smart_proxy.pulp_content_url)
|
32
32
|
end
|
33
33
|
|
34
|
+
def default_location
|
35
|
+
Location.authorized(:view_locations).find_by(title: Setting[:default_location_subscribed_hosts]) || super
|
36
|
+
end
|
37
|
+
|
34
38
|
private
|
35
39
|
|
36
40
|
def smart_proxy
|
@@ -19,7 +19,7 @@ module Katello
|
|
19
19
|
|
20
20
|
def deletable?
|
21
21
|
promoted_repos = repositories.select { |repo| repo.promoted? }
|
22
|
-
authorized?(:destroy_products) && promoted_repos.empty?
|
22
|
+
authorized?(:destroy_products) && (promoted_repos.empty? || Setting[:delete_repo_across_cv])
|
23
23
|
end
|
24
24
|
|
25
25
|
module ClassMethods
|
data/lib/katello/version.rb
CHANGED
@@ -9,11 +9,19 @@ import { PACKAGE_SEARCH_QUERY } from './PackagesTab/YumInstallablePackagesConsta
|
|
9
9
|
import { PACKAGES_SEARCH_QUERY, SELECTED_UPDATE_VERSIONS } from './PackagesTab/HostPackagesConstants';
|
10
10
|
|
11
11
|
// PARAM BUILDING
|
12
|
-
const
|
12
|
+
export const buildHostSearch = ({ hostname, hostSearch }) => {
|
13
|
+
let result = hostSearch ?? `name ^ (${hostname})`;
|
14
|
+
if (result === '') {
|
15
|
+
// user has selected all hosts
|
16
|
+
result = 'set? name'; // the name field is NOT NULL, so this will match all hosts
|
17
|
+
}
|
18
|
+
return result;
|
19
|
+
};
|
20
|
+
export const baseParams = (options) => {
|
13
21
|
const {
|
14
22
|
feature, hostname, hostSearch, descriptionFormat, inputs = {},
|
15
23
|
} = options;
|
16
|
-
const search =
|
24
|
+
const search = buildHostSearch({ hostname, hostSearch });
|
17
25
|
return ({
|
18
26
|
job_invocation: {
|
19
27
|
feature,
|
@@ -89,7 +97,7 @@ const katelloPackagesUpdateParams = (options) => {
|
|
89
97
|
const {
|
90
98
|
hostname, search, hostSearch, versions, descriptionFormat,
|
91
99
|
} = options;
|
92
|
-
const searchQuery =
|
100
|
+
const searchQuery = buildHostSearch({ hostname, hostSearch });
|
93
101
|
return ({
|
94
102
|
job_invocation: {
|
95
103
|
feature: REX_FEATURES.KATELLO_PACKAGES_UPDATE_BY_SEARCH,
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { baseParams, buildHostSearch } from '../RemoteExecutionActions';
|
2
|
+
|
3
|
+
describe('buildHostSearch', () => {
|
4
|
+
it('Replaces empty string with special search', () => {
|
5
|
+
const options = {
|
6
|
+
hostname: 'test',
|
7
|
+
hostSearch: '',
|
8
|
+
};
|
9
|
+
expect(buildHostSearch(options)).toEqual('set? name');
|
10
|
+
});
|
11
|
+
it('Composes hostname search when hostSearch is not passed', () => {
|
12
|
+
const options = {
|
13
|
+
hostname: 'test',
|
14
|
+
};
|
15
|
+
expect(buildHostSearch(options)).toEqual('name ^ (test)');
|
16
|
+
});
|
17
|
+
it('Composes hostSearch when hostname is not passed', () => {
|
18
|
+
const options = {
|
19
|
+
hostSearch: 'test',
|
20
|
+
};
|
21
|
+
expect(buildHostSearch(options)).toEqual('test');
|
22
|
+
});
|
23
|
+
});
|
24
|
+
|
25
|
+
describe('baseParams', () => {
|
26
|
+
it('Composes base params', () => {
|
27
|
+
const options = {
|
28
|
+
feature: 'feature',
|
29
|
+
hostname: 'hostname',
|
30
|
+
hostSearch: 'hostSearch',
|
31
|
+
descriptionFormat: 'descriptionFormat',
|
32
|
+
inputs: { input: 'input' },
|
33
|
+
};
|
34
|
+
expect(baseParams(options)).toEqual({
|
35
|
+
job_invocation: {
|
36
|
+
feature: 'feature',
|
37
|
+
inputs: { input: 'input' },
|
38
|
+
description_format: 'descriptionFormat',
|
39
|
+
search_query: 'hostSearch',
|
40
|
+
},
|
41
|
+
});
|
42
|
+
});
|
43
|
+
});
|
44
|
+
|
@@ -36,6 +36,7 @@ export const getSetsComponent = (repoSetsState, onPaginationChange) => {
|
|
36
36
|
<Pagination
|
37
37
|
itemCount={itemCount}
|
38
38
|
onChange={onPaginationChange}
|
39
|
+
updateParamsByUrl={false}
|
39
40
|
isCompact
|
40
41
|
{...pagination}
|
41
42
|
/>
|
@@ -67,6 +68,7 @@ export const getEnabledComponent = (enabledReposState, onPaginationChange) => {
|
|
67
68
|
isCompact
|
68
69
|
itemCount={itemCount}
|
69
70
|
onChange={onPaginationChange}
|
71
|
+
updateParamsByUrl={false}
|
70
72
|
{...pagination}
|
71
73
|
/>
|
72
74
|
</div>
|
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.0.
|
4
|
+
version: 4.14.0.rc2
|
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-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -4374,103 +4374,55 @@ files:
|
|
4374
4374
|
- locale/Makefile
|
4375
4375
|
- locale/README
|
4376
4376
|
- locale/action_names.rb
|
4377
|
-
- locale/bn/LC_MESSAGES/katello.mo
|
4378
4377
|
- locale/bn/katello.po
|
4379
|
-
- locale/bn_IN/LC_MESSAGES/katello.mo
|
4380
4378
|
- locale/bn_IN/katello.po
|
4381
|
-
- locale/ca/LC_MESSAGES/katello.mo
|
4382
4379
|
- locale/ca/katello.po
|
4383
|
-
- locale/cs/LC_MESSAGES/katello.mo
|
4384
4380
|
- locale/cs/katello.po
|
4385
|
-
- locale/cs_CZ/LC_MESSAGES/katello.mo
|
4386
4381
|
- locale/cs_CZ/katello.po
|
4387
|
-
- locale/de/LC_MESSAGES/katello.mo
|
4388
4382
|
- locale/de/katello.po
|
4389
|
-
- locale/de_AT/LC_MESSAGES/katello.mo
|
4390
4383
|
- locale/de_AT/katello.po
|
4391
|
-
- locale/de_DE/LC_MESSAGES/katello.mo
|
4392
4384
|
- locale/de_DE/katello.po
|
4393
|
-
- locale/el/LC_MESSAGES/katello.mo
|
4394
4385
|
- locale/el/katello.po
|
4395
|
-
- locale/en/LC_MESSAGES/katello.mo
|
4396
4386
|
- locale/en/katello.po
|
4397
|
-
- locale/en_GB/LC_MESSAGES/katello.mo
|
4398
4387
|
- locale/en_GB/katello.po
|
4399
|
-
- locale/en_US/LC_MESSAGES/katello.mo
|
4400
4388
|
- locale/en_US/katello.po
|
4401
|
-
- locale/es/LC_MESSAGES/katello.mo
|
4402
4389
|
- locale/es/katello.po
|
4403
|
-
- locale/et_EE/LC_MESSAGES/katello.mo
|
4404
4390
|
- locale/et_EE/katello.po
|
4405
|
-
- locale/fr/LC_MESSAGES/katello.mo
|
4406
4391
|
- locale/fr/katello.po
|
4407
|
-
- locale/gl/LC_MESSAGES/katello.mo
|
4408
4392
|
- locale/gl/katello.po
|
4409
|
-
- locale/gu/LC_MESSAGES/katello.mo
|
4410
4393
|
- locale/gu/katello.po
|
4411
|
-
- locale/he_IL/LC_MESSAGES/katello.mo
|
4412
4394
|
- locale/he_IL/katello.po
|
4413
|
-
- locale/hi/LC_MESSAGES/katello.mo
|
4414
4395
|
- locale/hi/katello.po
|
4415
|
-
- locale/id/LC_MESSAGES/katello.mo
|
4416
4396
|
- locale/id/katello.po
|
4417
|
-
- locale/it/LC_MESSAGES/katello.mo
|
4418
4397
|
- locale/it/katello.po
|
4419
|
-
- locale/ja/LC_MESSAGES/katello.mo
|
4420
4398
|
- locale/ja/katello.po
|
4421
|
-
- locale/ka/LC_MESSAGES/katello.mo
|
4422
4399
|
- locale/ka/katello.po
|
4423
4400
|
- locale/katello.pot
|
4424
|
-
- locale/kn/LC_MESSAGES/katello.mo
|
4425
4401
|
- locale/kn/katello.po
|
4426
|
-
- locale/ko/LC_MESSAGES/katello.mo
|
4427
4402
|
- locale/ko/katello.po
|
4428
|
-
- locale/ml_IN/LC_MESSAGES/katello.mo
|
4429
4403
|
- locale/ml_IN/katello.po
|
4430
|
-
- locale/mr/LC_MESSAGES/katello.mo
|
4431
4404
|
- locale/mr/katello.po
|
4432
|
-
- locale/nl_NL/LC_MESSAGES/katello.mo
|
4433
4405
|
- locale/nl_NL/katello.po
|
4434
|
-
- locale/or/LC_MESSAGES/katello.mo
|
4435
4406
|
- locale/or/katello.po
|
4436
|
-
- locale/pa/LC_MESSAGES/katello.mo
|
4437
4407
|
- locale/pa/katello.po
|
4438
|
-
- locale/pl/LC_MESSAGES/katello.mo
|
4439
4408
|
- locale/pl/katello.po
|
4440
|
-
- locale/pl_PL/LC_MESSAGES/katello.mo
|
4441
4409
|
- locale/pl_PL/katello.po
|
4442
|
-
- locale/pt/LC_MESSAGES/katello.mo
|
4443
4410
|
- locale/pt/katello.po
|
4444
|
-
- locale/pt_BR/LC_MESSAGES/katello.mo
|
4445
4411
|
- locale/pt_BR/katello.po
|
4446
|
-
- locale/ro/LC_MESSAGES/katello.mo
|
4447
4412
|
- locale/ro/katello.po
|
4448
|
-
- locale/ro_RO/LC_MESSAGES/katello.mo
|
4449
4413
|
- locale/ro_RO/katello.po
|
4450
|
-
- locale/ru/LC_MESSAGES/katello.mo
|
4451
4414
|
- locale/ru/katello.po
|
4452
|
-
- locale/sl/LC_MESSAGES/katello.mo
|
4453
4415
|
- locale/sl/katello.po
|
4454
|
-
- locale/sv_SE/LC_MESSAGES/katello.mo
|
4455
4416
|
- locale/sv_SE/katello.po
|
4456
|
-
- locale/ta/LC_MESSAGES/katello.mo
|
4457
4417
|
- locale/ta/katello.po
|
4458
|
-
- locale/ta_IN/LC_MESSAGES/katello.mo
|
4459
4418
|
- locale/ta_IN/katello.po
|
4460
|
-
- locale/te/LC_MESSAGES/katello.mo
|
4461
4419
|
- locale/te/katello.po
|
4462
|
-
- locale/tr/LC_MESSAGES/katello.mo
|
4463
4420
|
- locale/tr/katello.po
|
4464
4421
|
- locale/update-i18n
|
4465
|
-
- locale/vi/LC_MESSAGES/katello.mo
|
4466
4422
|
- locale/vi/katello.po
|
4467
|
-
- locale/vi_VN/LC_MESSAGES/katello.mo
|
4468
4423
|
- locale/vi_VN/katello.po
|
4469
|
-
- locale/zh/LC_MESSAGES/katello.mo
|
4470
4424
|
- locale/zh/katello.po
|
4471
|
-
- locale/zh_CN/LC_MESSAGES/katello.mo
|
4472
4425
|
- locale/zh_CN/katello.po
|
4473
|
-
- locale/zh_TW/LC_MESSAGES/katello.mo
|
4474
4426
|
- locale/zh_TW/katello.po
|
4475
4427
|
- package.json
|
4476
4428
|
- vendor/assets/images/katello/add2.png
|
@@ -4719,6 +4671,7 @@ files:
|
|
4719
4671
|
- webpack/components/extensions/HostDetails/Tabs/__tests__/packageInstallModal.test.js
|
4720
4672
|
- webpack/components/extensions/HostDetails/Tabs/__tests__/packages.fixtures.json
|
4721
4673
|
- webpack/components/extensions/HostDetails/Tabs/__tests__/packagesTab.test.js
|
4674
|
+
- webpack/components/extensions/HostDetails/Tabs/__tests__/remoteExecutionActions.test.js
|
4722
4675
|
- webpack/components/extensions/HostDetails/Tabs/__tests__/repositorySets.fixtures.json
|
4723
4676
|
- webpack/components/extensions/HostDetails/Tabs/__tests__/repositorySetsTab.test.js
|
4724
4677
|
- webpack/components/extensions/HostDetails/Tabs/__tests__/resolveErrata.fixtures.json
|
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
|