Bugzilla – Attachment 153289 Details for
Bug 34223
ILL status filter does not load immediately after selecting a backend filter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34223: PROOF OF CONCEPT
Bug-34223-PROOF-OF-CONCEPT.patch (text/plain), 2.12 KB, created by
Pedro Amorim
on 2023-07-10 17:03:55 UTC
(
hide
)
Description:
Bug 34223: PROOF OF CONCEPT
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-07-10 17:03:55 UTC
Size:
2.12 KB
patch
obsolete
>From 2e34137e11bbb357a5fd85393b6d4a42ad5d6eea Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 10 Jul 2023 17:03:34 +0000 >Subject: [PATCH] Bug 34223: PROOF OF CONCEPT > >The following command will (hopefully) reset your ILL data and create 10k fake ILL requests (run this in DEV KTD only). > >1) On an empty k-t-d, run: >bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev-data.sh) >2) Pet a cat >3) Visit /cgi-bin/koha/ill/ill-requests.pl and select a backend on the left side filters >4) Notice how the status filter takes a while (3-5 secs) to load >5) Apply patch and koha-plack --restart kohadev >6) Repeat 3, notice how the status filter now loads fast >--- > Koha/Database.pm | 2 +- > Koha/Illbackend.pm | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/Koha/Database.pm b/Koha/Database.pm >index 376f910c98..ec0cb28057 100644 >--- a/Koha/Database.pm >+++ b/Koha/Database.pm >@@ -103,7 +103,7 @@ sub dbh { > || $ENV{KOHA_TESTING} > ) { > push @queries, q{ >- SET sql_mode = 'ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION' >+ SET sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION' > }; > } else { > push @queries, q{SET sql_mode = 'IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'} >diff --git a/Koha/Illbackend.pm b/Koha/Illbackend.pm >index 8a6be8a7a6..d84a0f31cd 100644 >--- a/Koha/Illbackend.pm >+++ b/Koha/Illbackend.pm >@@ -53,10 +53,10 @@ sub existing_statuses { > # the ILL request returns the correct status and info respective to its backend. > my $ill_requests = Koha::Illrequests->search( > {backend => $backend_id}, >- # { >+ { > # columns => [ qw/status/ ], >- # group_by => [ qw/status/ ], >- # } >+ group_by => [ qw/status/ ], >+ } > ); > > my @data; >-- >2.30.2
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 34223
:
153289
|
153953
|
153956
|
153957
|
153961
|
153962
|
153963
|
153968
|
153973
|
153978
|
153979
|
153980
|
153981
|
153989
|
153990
|
154026
|
154027
|
154028
|
154029
|
154030
|
154031
|
154032
|
154033
|
154068
|
154069
|
154070
|
154071
|
155280
|
155493