From 7a417aa33f100633eba9465f6c990bead46f46bc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jun 2023 17:19:55 +0200 Subject: [PATCH] Bug 33962: Remove background job from process koc The last occurrence of C4::BackgroundJob is in process_koc.pl that is used to upload a file. Added by bug 2608 (15 years ago), I think it does not longer make sense as networks are faster, and we should not expect big koc files to be uploaded. If there are complains we will move it to Koha::BackgroundJob. Test plan: Upload a koc file, enqueue the operations and confirm that everything is working correctly Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../apache-shared-intranet-plack.conf | 1 - .../en/modules/offline_circ/process_koc.tt | 15 +---- offline_circ/process_koc.pl | 64 ++----------------- 3 files changed, 7 insertions(+), 73 deletions(-) diff --git a/debian/templates/apache-shared-intranet-plack.conf b/debian/templates/apache-shared-intranet-plack.conf index b09b62cb6e..856a86f71f 100644 --- a/debian/templates/apache-shared-intranet-plack.conf +++ b/debian/templates/apache-shared-intranet-plack.conf @@ -11,7 +11,6 @@ # FIXME: These scripts should be fixed so they # don't break under plack/starman - ProxyPass "/cgi-bin/koha/offline_circ/process_koc.pl" "!" ProxyPass "/cgi-bin/koha/tools/background-job-progress.pl" "!" ProxyPass "/cgi-bin/koha/tools/export.pl" "!" ProxyPass "/cgi-bin/koha/tools/upload-cover-image.pl" "!" diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt index 94586b14e7..fcd05bb280 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/offline_circ/process_koc.tt @@ -81,17 +81,13 @@
+
- - - - -
[% END %] @@ -100,7 +96,6 @@ [% MACRO jsinclude BLOCK %] - [% Asset.js("js/background-job-progressbar.js") | $raw %] [% Asset.js("js/file-upload.js") | $raw %]