katello 4.14.0.rc1 → 4.14.0.rc1.1

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.

Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/katello/concerns/api/v2/registration_controller_extensions.rb +4 -0
  3. data/app/controllers/katello/remote_execution_controller.rb +1 -1
  4. data/app/models/katello/authorization/product.rb +1 -1
  5. data/lib/katello/version.rb +1 -1
  6. data/webpack/components/extensions/HostDetails/Tabs/RemoteExecutionActions.js +11 -3
  7. data/webpack/components/extensions/HostDetails/Tabs/__tests__/remoteExecutionActions.test.js +44 -0
  8. metadata +3 -50
  9. data/locale/bn/LC_MESSAGES/katello.mo +0 -0
  10. data/locale/bn_IN/LC_MESSAGES/katello.mo +0 -0
  11. data/locale/ca/LC_MESSAGES/katello.mo +0 -0
  12. data/locale/cs/LC_MESSAGES/katello.mo +0 -0
  13. data/locale/cs_CZ/LC_MESSAGES/katello.mo +0 -0
  14. data/locale/de/LC_MESSAGES/katello.mo +0 -0
  15. data/locale/de_AT/LC_MESSAGES/katello.mo +0 -0
  16. data/locale/de_DE/LC_MESSAGES/katello.mo +0 -0
  17. data/locale/el/LC_MESSAGES/katello.mo +0 -0
  18. data/locale/en/LC_MESSAGES/katello.mo +0 -0
  19. data/locale/en_GB/LC_MESSAGES/katello.mo +0 -0
  20. data/locale/en_US/LC_MESSAGES/katello.mo +0 -0
  21. data/locale/es/LC_MESSAGES/katello.mo +0 -0
  22. data/locale/et_EE/LC_MESSAGES/katello.mo +0 -0
  23. data/locale/fr/LC_MESSAGES/katello.mo +0 -0
  24. data/locale/gl/LC_MESSAGES/katello.mo +0 -0
  25. data/locale/gu/LC_MESSAGES/katello.mo +0 -0
  26. data/locale/he_IL/LC_MESSAGES/katello.mo +0 -0
  27. data/locale/hi/LC_MESSAGES/katello.mo +0 -0
  28. data/locale/id/LC_MESSAGES/katello.mo +0 -0
  29. data/locale/it/LC_MESSAGES/katello.mo +0 -0
  30. data/locale/ja/LC_MESSAGES/katello.mo +0 -0
  31. data/locale/ka/LC_MESSAGES/katello.mo +0 -0
  32. data/locale/kn/LC_MESSAGES/katello.mo +0 -0
  33. data/locale/ko/LC_MESSAGES/katello.mo +0 -0
  34. data/locale/ml_IN/LC_MESSAGES/katello.mo +0 -0
  35. data/locale/mr/LC_MESSAGES/katello.mo +0 -0
  36. data/locale/nl_NL/LC_MESSAGES/katello.mo +0 -0
  37. data/locale/or/LC_MESSAGES/katello.mo +0 -0
  38. data/locale/pa/LC_MESSAGES/katello.mo +0 -0
  39. data/locale/pl/LC_MESSAGES/katello.mo +0 -0
  40. data/locale/pl_PL/LC_MESSAGES/katello.mo +0 -0
  41. data/locale/pt/LC_MESSAGES/katello.mo +0 -0
  42. data/locale/pt_BR/LC_MESSAGES/katello.mo +0 -0
  43. data/locale/ro/LC_MESSAGES/katello.mo +0 -0
  44. data/locale/ro_RO/LC_MESSAGES/katello.mo +0 -0
  45. data/locale/ru/LC_MESSAGES/katello.mo +0 -0
  46. data/locale/sl/LC_MESSAGES/katello.mo +0 -0
  47. data/locale/sv_SE/LC_MESSAGES/katello.mo +0 -0
  48. data/locale/ta/LC_MESSAGES/katello.mo +0 -0
  49. data/locale/ta_IN/LC_MESSAGES/katello.mo +0 -0
  50. data/locale/te/LC_MESSAGES/katello.mo +0 -0
  51. data/locale/tr/LC_MESSAGES/katello.mo +0 -0
  52. data/locale/vi/LC_MESSAGES/katello.mo +0 -0
  53. data/locale/vi_VN/LC_MESSAGES/katello.mo +0 -0
  54. data/locale/zh/LC_MESSAGES/katello.mo +0 -0
  55. data/locale/zh_CN/LC_MESSAGES/katello.mo +0 -0
  56. 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: af0228c45323080e65bd7be5081e1b70738425526f62ef424141eca4027c90ff
4
- data.tar.gz: ac312941e7169fa6f00aa2ef958c2a1ef485892bcdecac943070548766f13187
3
+ metadata.gz: e36ee265bced92108aec50be31ccc25ad131c7a114e3af6f10f33d9dacb2c815
4
+ data.tar.gz: 84ce98f9eb8a2f0ca23d5d6733b782d885f26c4d5b269a864244796289d29e71
5
5
  SHA512:
6
- metadata.gz: d2bf6535eb9fa75c9784749438f5e7171ea7a5a27d94a818b132f93273e4a461c619c0c04d73d1138ff375e325a174cfa1861f0819295428c741f1a83429a5cd
7
- data.tar.gz: e6e7786416cf8e51016b171116124002c762f73158389ab771d0e42d5cbd5ffd0d138a180c73e9afcbad7a2fa6e4551c007707a793e80fb0219982cb1e97ccff
6
+ metadata.gz: 87cdf4ff20559526fc054b7107d720152257d6593c83e30ad952523ceae943edf4b50ab82235e0ce9ed060b5339621f54301025d46f62a562804411f1cae0063
7
+ data.tar.gz: 74db670edc0382cb25b0c5cd21977c83dc205cc356eb80b7fcd10476ff379529a331c29cd38474c64f2b6612ef7caf0a7c1935dc3d343bfd69f0b718bdccfaa5
@@ -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
@@ -13,7 +13,7 @@ module Katello
13
13
  @composer.trigger
14
14
  redirect_to job_invocation_path(@composer.job_invocation)
15
15
  else
16
- render :action => 'new'
16
+ redirect_to new_job_invocation_path({ feature: feature_name, host_ids: hosts.ids, inputs: inputs })
17
17
  end
18
18
  end
19
19
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Katello
2
- VERSION = "4.14.0.rc1".freeze
2
+ VERSION = "4.14.0.rc1.1".freeze
3
3
  end
@@ -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 baseParams = (options) => {
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 = hostSearch ?? `name ^ (${hostname})`;
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 = hostSearch ?? `name ^ (${hostname})`;
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
+
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.rc1
4
+ version: 4.14.0.rc1.1
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-08-20 00:00:00.000000000 Z
11
+ date: 2024-08-28 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