katello 4.0.0.rc1 → 4.0.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.

Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/katello/katello.scss +0 -72
  3. data/app/controllers/katello/api/v2/host_errata_controller.rb +1 -1
  4. data/app/controllers/katello/api/v2/host_packages_controller.rb +6 -6
  5. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +1 -1
  6. data/app/controllers/katello/api/v2/upstream_subscriptions_controller.rb +1 -1
  7. data/app/lib/actions/katello/agent/dispatch_history_presenter.rb +64 -0
  8. data/app/lib/actions/katello/agent_action.rb +107 -0
  9. data/app/lib/actions/katello/bulk_agent_action.rb +21 -0
  10. data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +1 -1
  11. data/app/lib/actions/katello/host/erratum/install.rb +8 -26
  12. data/app/lib/actions/katello/host/package/install.rb +8 -21
  13. data/app/lib/actions/katello/host/package/remove.rb +8 -20
  14. data/app/lib/actions/katello/host/package/update.rb +9 -22
  15. data/app/lib/actions/katello/host/package_group/install.rb +8 -21
  16. data/app/lib/actions/katello/host/package_group/remove.rb +8 -20
  17. data/app/lib/actions/pulp/consumer.rb +0 -11
  18. data/app/lib/katello/agent/base_message.rb +38 -0
  19. data/app/lib/katello/agent/client_message_handler.rb +60 -0
  20. data/app/lib/katello/agent/connection.rb +24 -0
  21. data/app/lib/katello/agent/install_errata_message.rb +25 -0
  22. data/app/lib/katello/agent/install_package_group_message.rb +25 -0
  23. data/app/lib/katello/agent/install_package_message.rb +28 -0
  24. data/app/lib/katello/agent/remove_package_group_message.rb +25 -0
  25. data/app/lib/katello/agent/remove_package_message.rb +28 -0
  26. data/app/lib/katello/agent/update_package_message.rb +25 -0
  27. data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +62 -0
  28. data/app/lib/katello/messaging/received_message.rb +1 -1
  29. data/app/lib/katello/qpid/connection.rb +130 -0
  30. data/app/models/katello/agent/dispatch_history.rb +17 -0
  31. data/app/models/katello/concerns/host_managed_extensions.rb +3 -0
  32. data/app/models/katello/events/delete_host_agent_queue.rb +19 -0
  33. data/app/models/katello/ping.rb +9 -1
  34. data/app/models/setting/content.rb +0 -2
  35. data/app/services/katello/agent/dispatcher.rb +66 -0
  36. data/app/services/katello/candlepin_event_listener.rb +1 -0
  37. data/app/services/katello/event_monitor/poller_thread.rb +1 -0
  38. data/app/services/katello/registration_manager.rb +10 -0
  39. data/app/views/katello/sync_management/_products.html.erb +1 -1
  40. data/db/migrate/20210122200618_create_katello_agent_dispatch_history.rb +11 -0
  41. data/db/migrate/20210125161911_delete_erratum_install_batch_size_setting.rb +5 -0
  42. data/db/migrate/20210208213920_add_available_module_stream_context.rb +8 -0
  43. data/engines/bastion/app/assets/javascripts/bastion/auth/authorization.service.js +1 -1
  44. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js +21 -0
  45. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +16 -0
  46. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html +2 -0
  47. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-type.html +18 -0
  48. data/lib/katello/engine.rb +7 -0
  49. data/lib/katello/plugin.rb +1 -0
  50. data/lib/katello/tasks/reset.rake +0 -15
  51. data/lib/katello/version.rb +1 -1
  52. data/locale/bn/katello.edit.po +8538 -0
  53. data/locale/bn/katello.po.time_stamp +0 -0
  54. data/locale/cs/katello.edit.po +8440 -0
  55. data/locale/cs/katello.po.time_stamp +0 -0
  56. data/locale/de/katello.edit.po +8344 -0
  57. data/locale/de/katello.po.time_stamp +0 -0
  58. data/locale/en/katello.edit.po +8161 -0
  59. data/locale/en/katello.po.time_stamp +0 -0
  60. data/locale/es/katello.edit.po +8306 -0
  61. data/locale/es/katello.po.time_stamp +0 -0
  62. data/locale/fr/katello.edit.po +8356 -0
  63. data/locale/fr/katello.po.time_stamp +0 -0
  64. data/locale/gu/katello.edit.po +8540 -0
  65. data/locale/gu/katello.po.time_stamp +0 -0
  66. data/locale/hi/katello.edit.po +8537 -0
  67. data/locale/hi/katello.po.time_stamp +0 -0
  68. data/locale/it/katello.edit.po +8293 -0
  69. data/locale/it/katello.po.time_stamp +0 -0
  70. data/locale/ja/katello.edit.po +8322 -0
  71. data/locale/ja/katello.po.time_stamp +0 -0
  72. data/locale/kn/katello.edit.po +8538 -0
  73. data/locale/kn/katello.po.time_stamp +0 -0
  74. data/locale/ko/katello.edit.po +8289 -0
  75. data/locale/ko/katello.po.time_stamp +0 -0
  76. data/locale/mr/katello.edit.po +8502 -0
  77. data/locale/mr/katello.po.time_stamp +0 -0
  78. data/locale/or/katello.edit.po +8538 -0
  79. data/locale/or/katello.po.time_stamp +0 -0
  80. data/locale/pa/katello.edit.po +8524 -0
  81. data/locale/pa/katello.po.time_stamp +0 -0
  82. data/locale/pt/katello.edit.po +8255 -0
  83. data/locale/pt/katello.po.time_stamp +0 -0
  84. data/locale/pt_BR/katello.edit.po +8289 -0
  85. data/locale/pt_BR/katello.po.time_stamp +0 -0
  86. data/locale/ru/katello.edit.po +8309 -0
  87. data/locale/ru/katello.po.time_stamp +0 -0
  88. data/locale/ta/katello.edit.po +8536 -0
  89. data/locale/ta/katello.po.time_stamp +0 -0
  90. data/locale/te/katello.edit.po +8536 -0
  91. data/locale/te/katello.po.time_stamp +0 -0
  92. data/locale/zh_CN/katello.edit.po +8288 -0
  93. data/locale/zh_CN/katello.po.time_stamp +0 -0
  94. data/locale/zh_TW/katello.edit.po +8420 -0
  95. data/locale/zh_TW/katello.po.time_stamp +0 -0
  96. metadata +62 -12
  97. data/app/lib/actions/pulp/consumer/abstract_content_action.rb +0 -71
  98. data/app/lib/actions/pulp/consumer/content_install.rb +0 -43
  99. data/app/lib/actions/pulp/consumer/content_uninstall.rb +0 -26
  100. data/app/lib/actions/pulp/consumer/content_update.rb +0 -32
  101. data/db/functions/empty_v01.sql +0 -7
  102. data/db/functions/evr_trigger_v01.sql +0 -9
  103. data/db/functions/isalpha_v01.sql +0 -11
  104. data/db/functions/isalphanum_v01.sql +0 -12
  105. data/db/functions/isdigit_v01.sql +0 -10
  106. data/db/functions/rpmver_array_v01.sql +0 -60
@@ -1,10 +0,0 @@
1
- create or replace function isdigit(ch CHAR)
2
- RETURNS BOOLEAN as $$
3
- BEGIN
4
- if ascii(ch) between ascii('0') and ascii('9')
5
- then
6
- return TRUE;
7
- end if;
8
- return FALSE;
9
- END ;
10
- $$ language 'plpgsql';
@@ -1,60 +0,0 @@
1
- create or replace FUNCTION rpmver_array (string1 IN VARCHAR)
2
- RETURNS evr_array_item[] as $$
3
- declare
4
- str1 VARCHAR := string1;
5
- digits VARCHAR(10) := '0123456789';
6
- lc_alpha VARCHAR(27) := 'abcdefghijklmnopqrstuvwxyz';
7
- uc_alpha VARCHAR(27) := 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
8
- alpha VARCHAR(54) := lc_alpha || uc_alpha;
9
- one VARCHAR;
10
- isnum BOOLEAN;
11
- ver_array evr_array_item[] := ARRAY[]::evr_array_item[];
12
- BEGIN
13
- if str1 is NULL
14
- then
15
- RAISE EXCEPTION 'VALUE_ERROR.';
16
- end if;
17
-
18
- one := str1;
19
- <<segment_loop>>
20
- while one <> ''
21
- loop
22
- declare
23
- segm1 VARCHAR;
24
- segm1_n NUMERIC := 0;
25
- begin
26
- -- Throw out all non-alphanum characters
27
- while one <> '' and not isalphanum(one)
28
- loop
29
- one := substr(one, 2);
30
- end loop;
31
- str1 := one;
32
- if str1 <> '' and isdigit(str1)
33
- then
34
- str1 := ltrim(str1, digits);
35
- isnum := true;
36
- else
37
- str1 := ltrim(str1, alpha);
38
- isnum := false;
39
- end if;
40
- if str1 <> ''
41
- then segm1 := substr(one, 1, length(one) - length(str1));
42
- else segm1 := one;
43
- end if;
44
-
45
- if segm1 = '' then return ver_array; end if; /* arbitrary */
46
- if isnum
47
- then
48
- segm1 := ltrim(segm1, '0');
49
- if segm1 <> '' then segm1_n := segm1::numeric; end if;
50
- segm1 := NULL;
51
- else
52
- end if;
53
- ver_array := array_append(ver_array, (segm1_n, segm1)::evr_array_item);
54
- one := str1;
55
- end;
56
- end loop segment_loop;
57
-
58
- return ver_array;
59
- END ;
60
- $$ language 'plpgsql';