Bugzilla – Attachment 171412 Details for
Bug 35655
Make it possible to switch off RabbitMQ without any warns in logs/about page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35655: Add 'JobsNotificationMethod' system preference
Bug-35655-Add-JobsNotificationMethod-system-prefer.patch (text/plain), 3.72 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-09-12 15:05:15 UTC
(
hide
)
Description:
Bug 35655: Add 'JobsNotificationMethod' system preference
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-09-12 15:05:15 UTC
Size:
3.72 KB
patch
obsolete
>From daeb6a5dfb6ffddcc3a87c4587b610ccab0ed918 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 12 Sep 2024 11:09:11 -0300 >Subject: [PATCH] Bug 35655: Add 'JobsNotificationMethod' system preference > >--- > .../data/mysql/atomicupdate/bug_35655.pl | 22 +++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 1 + > .../en/modules/admin/preferences/admin.pref | 9 ++++++++ > 3 files changed, 32 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_35655.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_35655.pl b/installer/data/mysql/atomicupdate/bug_35655.pl >new file mode 100755 >index 00000000000..2755d70c8bc >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_35655.pl >@@ -0,0 +1,22 @@ >+use Modern::Perl; >+use Koha::Installer::Output qw(say_warning say_failure say_success say_info); >+ >+return { >+ bug_number => "35655", >+ description => "Add a way to disable RabbitMQ", >+ up => sub { >+ my ($args) = @_; >+ my ( $dbh, $out ) = @$args{qw(dbh out)}; >+ >+ $dbh->do( >+ q{ >+ INSERT IGNORE INTO systempreferences >+ (`variable`, `value`, `options`, `explanation`, `type` ) >+ VALUES >+ ('JobsNotificationMethod', 'STOMP', 'polling|STOMP', 'Define the preferred job worker notification method', 'Choice') >+ } >+ ); >+ >+ say $out "Added new system preference 'JobsNotificationMethod'"; >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index a865f86cb2a..54fbc47dacb 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -358,6 +358,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('itemBarcodeInputFilter','','whitespace|T-prefix|cuecat|libsuite8|EAN13','If set, allows specification of a item barcode input filter','Choice'), > ('itemcallnumber','',NULL,'The MARC field/subfield that is used to calculate the itemcallnumber (Dewey would be 082ab or 092ab; LOC would be 050ab or 090ab) could be 852hi from an item record','free'), > ('ItemsDeniedRenewal','','','This syspref allows to define custom rules for denying renewal of specific items.','Textarea'), >+('JobsNotificationMethod','STOMP','polling|STOMP','Define the preferred job worker notification method','Choice'), > ('KohaAdminEmailAddress','root@localhost','','Define the email address where patron modification requests are sent','free'), > ('KohaManualBaseURL','https://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'), > ('KohaManualLanguage','en','en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >index 511341f0444..b44075a9b01 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref >@@ -189,6 +189,15 @@ Administration: > None: "None" > Common Name: Common Name > emailAddress: emailAddress >+ Jobs: >+ - >+ - "Use " >+ - pref: JobsNotificationMethod >+ default: STOMP >+ choices: >+ STOMP: "STOMP" >+ polling: "polling" >+ - as the preferred job worker notification method. STOMP (default) requires RabbitMQ running. Polling will be used as a fallback if RabbitMQ is not accessible. > Google OpenID Connect: > - > - "Use Google OpenID Connect login in the OPAC: " >-- >2.46.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35655
:
171412
|
171413
|
171503
|
171504
|
171505
|
171506
|
171507
|
171509
|
171510
|
171511
|
171512
|
172027
|
172028
|
172029
|
172157
|
172158
|
172159
|
172232