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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/katello/katello.scss +0 -72
- data/app/controllers/katello/api/v2/host_errata_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_packages_controller.rb +6 -6
- data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +1 -1
- data/app/controllers/katello/api/v2/upstream_subscriptions_controller.rb +1 -1
- data/app/lib/actions/katello/agent/dispatch_history_presenter.rb +64 -0
- data/app/lib/actions/katello/agent_action.rb +107 -0
- data/app/lib/actions/katello/bulk_agent_action.rb +21 -0
- data/app/lib/actions/katello/host/erratum/applicable_errata_install.rb +1 -1
- data/app/lib/actions/katello/host/erratum/install.rb +8 -26
- data/app/lib/actions/katello/host/package/install.rb +8 -21
- data/app/lib/actions/katello/host/package/remove.rb +8 -20
- data/app/lib/actions/katello/host/package/update.rb +9 -22
- data/app/lib/actions/katello/host/package_group/install.rb +8 -21
- data/app/lib/actions/katello/host/package_group/remove.rb +8 -20
- data/app/lib/actions/pulp/consumer.rb +0 -11
- data/app/lib/katello/agent/base_message.rb +38 -0
- data/app/lib/katello/agent/client_message_handler.rb +60 -0
- data/app/lib/katello/agent/connection.rb +24 -0
- data/app/lib/katello/agent/install_errata_message.rb +25 -0
- data/app/lib/katello/agent/install_package_group_message.rb +25 -0
- data/app/lib/katello/agent/install_package_message.rb +28 -0
- data/app/lib/katello/agent/remove_package_group_message.rb +25 -0
- data/app/lib/katello/agent/remove_package_message.rb +28 -0
- data/app/lib/katello/agent/update_package_message.rb +25 -0
- data/app/lib/katello/event_daemon/services/agent_event_receiver.rb +62 -0
- data/app/lib/katello/messaging/received_message.rb +1 -1
- data/app/lib/katello/qpid/connection.rb +130 -0
- data/app/models/katello/agent/dispatch_history.rb +17 -0
- data/app/models/katello/concerns/host_managed_extensions.rb +3 -0
- data/app/models/katello/events/delete_host_agent_queue.rb +19 -0
- data/app/models/katello/ping.rb +9 -1
- data/app/models/setting/content.rb +0 -2
- data/app/services/katello/agent/dispatcher.rb +66 -0
- data/app/services/katello/candlepin_event_listener.rb +1 -0
- data/app/services/katello/event_monitor/poller_thread.rb +1 -0
- data/app/services/katello/registration_manager.rb +10 -0
- data/app/views/katello/sync_management/_products.html.erb +1 -1
- data/db/migrate/20210122200618_create_katello_agent_dispatch_history.rb +11 -0
- data/db/migrate/20210125161911_delete_erratum_install_batch_size_setting.rb +5 -0
- data/db/migrate/20210208213920_add_available_module_stream_context.rb +8 -0
- data/engines/bastion/app/assets/javascripts/bastion/auth/authorization.service.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-start-date.directive.js +21 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +16 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-start-date.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscription-type.html +18 -0
- data/lib/katello/engine.rb +7 -0
- data/lib/katello/plugin.rb +1 -0
- data/lib/katello/tasks/reset.rake +0 -15
- data/lib/katello/version.rb +1 -1
- data/locale/bn/katello.edit.po +8538 -0
- data/locale/bn/katello.po.time_stamp +0 -0
- data/locale/cs/katello.edit.po +8440 -0
- data/locale/cs/katello.po.time_stamp +0 -0
- data/locale/de/katello.edit.po +8344 -0
- data/locale/de/katello.po.time_stamp +0 -0
- data/locale/en/katello.edit.po +8161 -0
- data/locale/en/katello.po.time_stamp +0 -0
- data/locale/es/katello.edit.po +8306 -0
- data/locale/es/katello.po.time_stamp +0 -0
- data/locale/fr/katello.edit.po +8356 -0
- data/locale/fr/katello.po.time_stamp +0 -0
- data/locale/gu/katello.edit.po +8540 -0
- data/locale/gu/katello.po.time_stamp +0 -0
- data/locale/hi/katello.edit.po +8537 -0
- data/locale/hi/katello.po.time_stamp +0 -0
- data/locale/it/katello.edit.po +8293 -0
- data/locale/it/katello.po.time_stamp +0 -0
- data/locale/ja/katello.edit.po +8322 -0
- data/locale/ja/katello.po.time_stamp +0 -0
- data/locale/kn/katello.edit.po +8538 -0
- data/locale/kn/katello.po.time_stamp +0 -0
- data/locale/ko/katello.edit.po +8289 -0
- data/locale/ko/katello.po.time_stamp +0 -0
- data/locale/mr/katello.edit.po +8502 -0
- data/locale/mr/katello.po.time_stamp +0 -0
- data/locale/or/katello.edit.po +8538 -0
- data/locale/or/katello.po.time_stamp +0 -0
- data/locale/pa/katello.edit.po +8524 -0
- data/locale/pa/katello.po.time_stamp +0 -0
- data/locale/pt/katello.edit.po +8255 -0
- data/locale/pt/katello.po.time_stamp +0 -0
- data/locale/pt_BR/katello.edit.po +8289 -0
- data/locale/pt_BR/katello.po.time_stamp +0 -0
- data/locale/ru/katello.edit.po +8309 -0
- data/locale/ru/katello.po.time_stamp +0 -0
- data/locale/ta/katello.edit.po +8536 -0
- data/locale/ta/katello.po.time_stamp +0 -0
- data/locale/te/katello.edit.po +8536 -0
- data/locale/te/katello.po.time_stamp +0 -0
- data/locale/zh_CN/katello.edit.po +8288 -0
- data/locale/zh_CN/katello.po.time_stamp +0 -0
- data/locale/zh_TW/katello.edit.po +8420 -0
- data/locale/zh_TW/katello.po.time_stamp +0 -0
- metadata +62 -12
- data/app/lib/actions/pulp/consumer/abstract_content_action.rb +0 -71
- data/app/lib/actions/pulp/consumer/content_install.rb +0 -43
- data/app/lib/actions/pulp/consumer/content_uninstall.rb +0 -26
- data/app/lib/actions/pulp/consumer/content_update.rb +0 -32
- data/db/functions/empty_v01.sql +0 -7
- data/db/functions/evr_trigger_v01.sql +0 -9
- data/db/functions/isalpha_v01.sql +0 -11
- data/db/functions/isalphanum_v01.sql +0 -12
- data/db/functions/isdigit_v01.sql +0 -10
- data/db/functions/rpmver_array_v01.sql +0 -60
@@ -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';
|