[Bug 37885] New: Add ability to disable message queue processing
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Bug ID: 37885 Summary: Add ability to disable message queue processing Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: kyle@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org There exist services that libraries utilize as an alternative to processing the message queue. These services may utilize the queued messages and send them from outside of Koha. Sometimes these services utilize the API or reports while other times they utilize a plugin. It would be beneficial to be able to disable running the message queue processor altogether, or to only execute the plugin hook related to message queue processing ( before_send_messages ) to limit the processing of messages to those handled by plugins. I think a new system preference along the lines of "Process/Don't process/Process only via plugins" would be good, but haven't quite come up with a sentence that makes sense. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |kyle@bywatersolutions.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 hebah@bywatersolutions.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hebah@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |37869 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37869 [Bug 37869] Plugin hook before_send_messages not triggered for any messages sent without use of process_message_queue.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 --- Comment #1 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 171756 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171756&action=edit Bug 37885: Add ability to disable message queue processing There exist services that libraries utilize as an alternative to processing the message queue. These services may utilize the queued messages and send them from outside of Koha. Sometimes these services utilize the API or reports while other times they utilize a plugin. It would be beneficial to be able to disable running the message queue processor altogether, or to only execute the plugin hook related to message queue processing ( before_send_messages ) to limit the processing of messages to those handled by plugins. Test Plan: 1) Apply this patch 2) Run updatedatabase.pl 3) Install the kitchen sink plugin, enable it 4) Enqueue a notice 5) Set MessageQueueMode to "process nothing" 6) Run process_message_queue.pl 7) Note nothing happens, 0 message reported 8) Set MessageQueueMode to "process plugin hooks only" 9) Run process_message_queue.pl 10) Note nothing happens, 0 message reported 11) Set MessageQueueMode to "on" 12) Run process_message_queue.pl 13) Note the message fails to send, assuming you have not set up anything to actually send messages on your test instance -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisette@bywatersolutions.co | |m, | |nick@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171756|0 |1 is obsolete| | --- Comment #2 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 171757 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171757&action=edit Bug 37885: Add ability to disable message queue processing There exist services that libraries utilize as an alternative to processing the message queue. These services may utilize the queued messages and send them from outside of Koha. Sometimes these services utilize the API or reports while other times they utilize a plugin. It would be beneficial to be able to disable running the message queue processor altogether, or to only execute the plugin hook related to message queue processing ( before_send_messages ) to limit the processing of messages to those handled by plugins. Test Plan: 1) Apply this patch 2) Run updatedatabase.pl 3) Install the kitchen sink plugin, enable it 4) Enqueue a notice 5) Set MessageQueueMode to "process nothing" 6) Run process_message_queue.pl 7) Note nothing happens, 0 message reported 8) Set MessageQueueMode to "process plugin hooks only" 9) Run process_message_queue.pl 10) Note nothing happens, 0 message reported 11) Set MessageQueueMode to "on" 12) Run process_message_queue.pl 13) Note the message fails to send, assuming you have not set up anything to actually send messages on your test instance -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171757|0 |1 is obsolete| | --- Comment #3 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 171789 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=171789&action=edit Bug 37885: Add ability to disable message queue processing There exist services that libraries utilize as an alternative to processing the message queue. These services may utilize the queued messages and send them from outside of Koha. Sometimes these services utilize the API or reports while other times they utilize a plugin. It would be beneficial to be able to disable running the message queue processor altogether, or to only execute the plugin hook related to message queue processing ( before_send_messages ) to limit the processing of messages to those handled by plugins. Test Plan: 1) Apply this patch 2) Run updatedatabase.pl 3) Install the kitchen sink plugin, enable it 4) Enqueue a notice 5) Set MessageQueueMode to "process nothing" 6) Run process_message_queue.pl 7) Note nothing happens, 0 message reported 8) Set MessageQueueMode to "process plugin hooks only" 9) Run process_message_queue.pl 10) Note nothing happens, 0 message reported 11) Set MessageQueueMode to "on" 12) Run process_message_queue.pl 13) Note the message fails to send, assuming you have not set up anything to actually send messages on your test instance -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Bug 37885 depends on bug 37869, which changed state. Bug 37869 Summary: Plugin hook before_send_messages not triggered for any messages sent without use of process_message_queue.pl https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37869 What |Removed |Added ---------------------------------------------------------------------------- Status|Pushed to main |RESOLVED Resolution|--- |FIXED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |no-sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #171789|0 |1 is obsolete| | --- Comment #4 from Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> --- Created attachment 179019 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=179019&action=edit Bug 37885: Add ability to disable message queue processing There exist services that libraries utilize as an alternative to processing the message queue. These services may utilize the queued messages and send them from outside of Koha. Sometimes these services utilize the API or reports while other times they utilize a plugin. It would be beneficial to be able to disable running the message queue processor altogether, or to only execute the plugin hook related to message queue processing ( before_send_messages ) to limit the processing of messages to those handled by plugins. Test Plan: 1) Apply this patch 2) Run updatedatabase.pl 3) Install the kitchen sink plugin, enable it 4) Enqueue a notice 5) Set MessageQueueMode to "process nothing" 6) Run process_message_queue.pl 7) Note nothing happens, 0 message reported 8) Set MessageQueueMode to "process plugin hooks only" 9) Run process_message_queue.pl 10) Note nothing happens, 0 message reported 11) Set MessageQueueMode to "on" 12) Run process_message_queue.pl 13) Note the message fails to send, assuming you have not set up anything to actually send messages on your test instance -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |baptiste.wojtkowski@biblibr | |e.com --- Comment #5 from Baptiste Wojtkowski (bwoj) <baptiste.wojtkowski@biblibre.com> --- Rebased on main and could reproduce the test plan but not for "process plugin hooks only". The notice I used is a message added from /cgi-bin/koha/circ/circulation.pl -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37885 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply CC| |Laura.escamilla@bywatersolu | |tions.com --- Comment #6 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- please rebase -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org