Bugzilla – Attachment 169245 Details for
Bug 37389
REST API queries joining on extended_attributes may cause severe performance issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37389: Apply ExtendedAttributes Mixin to Patrons
Bug-37389-Apply-ExtendedAttributes-Mixin-to-Patron.patch (text/plain), 1.11 KB, created by
Pedro Amorim
on 2024-07-19 16:02:54 UTC
(
hide
)
Description:
Bug 37389: Apply ExtendedAttributes Mixin to Patrons
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-07-19 16:02:54 UTC
Size:
1.11 KB
patch
obsolete
>From 4bd294d04d8b1d5fe23bfd901be06ef640c6fabc Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 19 Jul 2024 15:58:24 +0000 >Subject: [PATCH] Bug 37389: Apply ExtendedAttributes Mixin to Patrons > >This restores the extended_attributes search query functionality as >before, but with the new performance improvements >--- > Koha/Patrons.pm | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm >index eb89573312..3f11d3d326 100644 >--- a/Koha/Patrons.pm >+++ b/Koha/Patrons.pm >@@ -29,7 +29,7 @@ use Koha::Patron; > use Koha::Exceptions::Patron; > use Koha::Patron::Categories; > >-use base qw(Koha::Objects); >+use base qw(Koha::Objects::Mixin::ExtendedAttributes Koha::Objects); > > =head1 NAME > >@@ -566,6 +566,18 @@ sub filter_by_have_permission { > ); > } > >+=head3 extended_attributes_config >+ >+=cut >+ >+sub extended_attributes_config { >+ return { >+ 'id_field' => 'borrowernumber', >+ 'key_field' => 'code', >+ 'schema_class' => 'Koha::Schema::Result::BorrowerAttribute', >+ }; >+} >+ > =head3 _type > > =cut >-- >2.34.1
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 37389
:
169130
|
169133
|
169140
|
169149
|
169159
|
169178
|
169185
|
169189
|
169191
|
169192
|
169234
|
169243
|
169244
|
169245
|
169246
|
169317
|
169318
|
169569
|
169570
|
169583
|
169584
|
169585
|
169586
|
169850
|
169851
|
169944
|
169945
|
169946
|
169954
|
169955
|
169956