[Bug 24488] New: Holds to Pull sometimes shows the wrong 'first patron' details
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Bug ID: 24488 Summary: Holds to Pull sometimes shows the wrong 'first patron' details Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: aleisha@catalyst.net.nz QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle.m.hall@gmail.com The query that pulls the information for the Circ -> Holds to pull table is incredibly complex and doesn't always pull the correct information. It has a bunch of commands in it that repeatedly reorders the results (group_concats and counts). This means the order of the results cannot be guaranteed to be the same with every execution, and sometimes we see the wrong 'first patron' for the given date selection. It's hard to test because it only happens sometimes, but I have been able to reproduce it this way: - Place two holds for two different patrons on the same biblio - Check the Holds to pull, it'll show the details of the first patron - Change the reservedate for the second hold in the database to be yesterday - Check the Holds to pull, it shows the details of the wrong hold under 'first patron' but shows the correct details 'under earliest hold date' - Change the date selection, it doesn't fix itself -- 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=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Sponsored Assignee|koha-bugs@lists.koha-commun |aleisha@catalyst.net.nz |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=24488 Aleisha Amohia <aleisha@catalyst.net.nz> 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=24488 --- Comment #1 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 97773 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97773&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results Sponsored by: IHC New Zealand -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Kelly McElligott <kelly@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kelly@bywatersolutions.com --- Comment #2 from Kelly McElligott <kelly@bywatersolutions.com> --- Aleisha- something odd- nothing is showing in the Holds To Pull report. I have tried this multiple times and unable to get the holds to populate. Both biblio and Item level holds. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #3 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Kelly McElligott from comment #2)
Aleisha- something odd- nothing is showing in the Holds To Pull report. I have tried this multiple times and unable to get the holds to populate. Both biblio and Item level holds.
Hi Kelly, is this before or after you apply the patch? If after, did you try upgrading the schema files and restarting memcached? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #4 from Kelly McElligott <kelly@bywatersolutions.com> --- Hi Aleisha, I have done what you have recommended. I am now getting an error when I try to go to the Holds to Pull report DBIx::Class::Storage::DBI::_dbh_execute(): 'koha_hold.reserve.reserve_id' isn't in GROUP BY at /kohadevbox/koha/Koha/Objects.pm line 130 at /usr/share/perl5/DBIx/Class/Exception.pm line 77 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #5 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Kelly McElligott from comment #4)
Hi Aleisha, I have done what you have recommended. I am now getting an error when I try to go to the Holds to Pull report
DBIx::Class::Storage::DBI::_dbh_execute(): 'koha_hold.reserve.reserve_id' isn't in GROUP BY at /kohadevbox/koha/Koha/Objects.pm line 130 at /usr/share/perl5/DBIx/Class/Exception.pm line 77
Hi Kelly, I can't reproduce this error. There might be a problem in your database? Sorry! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de Status|Needs Signoff |Failed QA --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Aleisha, I think this is related to bug 21941/bug 17258 - a DBMS version problem. Can you please check? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Lucy Vaux-Harvey <lucy.vaux-harvey@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucy.vaux-harvey@ptfs-europ | |e.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #7 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Katrin Fischer from comment #6)
Hi Aleisha, I think this is related to bug 21941/bug 17258 - a DBMS version problem. Can you please check?
Hi Katrin, sorry I'm not really sure how I'm meant to check? It could be related, but also that query is pretty horrible and I think this fix is nicer code to work with in the long term. Setting back to Needs signoff because I'm not getting the aforementioned error, and wonder if it happened when the reservedate was manually changed in the database? Regardless, patch still works for me. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> ---
DBIx::Class::Storage::DBI::_dbh_execute(): 'koha_hold.reserve.reserve_id' isn't in GROUP BY at /kohadevbox/koha/Koha/Objects.pm line 130 at /usr/share/perl5/DBIx/Class/Exception.pm line 77
Issues with GROUP BY usually point to problems with stricter DB settings - that's what I meant. It's possible the tester had a different DBMS version / different settings which made it explode - trying to help because you said you cannot reproduce. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.renvoize@ptfs-europe | |.com --- Comment #9 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- To summarise.. try setting `<strict_sql_modes>1</strict_sql_modes>` in your koha-conf.xml Aleisha.. it's on by default in sandboxes and dev environments to weed out queries that would fail we strict features enabled at the SQL level. Looking at the error Kelly is reporting it sounds like strict SQL is enabled and she's catching an error in your reworked SQL query that you're not seeing with sql in 'forgiving' mode ;). I've not looked at the code yet, but this usually arrises from a group by on a query with a join where you're trying to group by an id field in on table.. the fix, as horrible as it is, is to add all fields in that table to the group by. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |ASSIGNED --- Comment #10 from Aleisha Amohia <aleisha@catalyst.net.nz> --- I've misunderstood here - I thought that Katrin's comment was talking about the potential cause of the original bug reported, not in relation to reproducing Kelly's error. Also I'm more than happy to write tests. I had simply forgotten in the first instance. Will take another look when I get a chance. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nick@bywatersolutions.com See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=22431 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #11 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Kelly's error exists with and without the patch (if strict_sql_modes is set). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #12 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Jonathan Druart from comment #11)
Kelly's error exists with and without the patch (if strict_sql_modes is set).
Well, at least without the patch, I did not try with the patch applied. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |black23@gmail.com --- Comment #13 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- *** Bug 24301 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_20_11_target -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |josef.moravec@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=23360 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #14 from Michal Denar <black23@gmail.com> --- Hello Aleisha, is this patch ready to test? I applied patch, but name of first patron was same after change of holds order as before. Tested on Kohadevbox after restart_all. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #15 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Hi Michal, not ready to test yet - needs some work on master and some tests. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #16 from Michal Denar <black23@gmail.com> --- OK, I'll wait on "Needs signoff" status :-) But I think that similar bug has Holds queue page. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #97773|0 |1 is obsolete| | --- Comment #17 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 106379 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106379&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #18 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Just rebasing - still need to try with strict_sql_mode. Will come back to this tomorrow. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |RM_priority --- Comment #19 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Yes it's failing with strict mode: 'koha_kohadev.reserve.reserve_id' isn't in GROUP BY Aleisa, if you could compare the performance on a production DB that would be really useful. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #106379|0 |1 is obsolete| | --- Comment #20 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 106882 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106882&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #21 from Aleisha Amohia <aleisha@catalyst.net.nz> --- I enabled strict_sql_modes but unfortunately I still can't reproduce the errors. Can someone give me some instructions for this? I'm happy to keep working on it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #22 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Actually I think we have a bigger problem here: I was confusing holds to pull and holds queue earlier. Now testing another patch... Holds to pull fails for me with and without this patch in strict mode (error on bug 26020) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #23 from Michal Denar <black23@gmail.com> --- Hi Aleisha, I'm so sorry but this patch didn't solve problem with first patron on my kohadevbox. If I change order of borrower with hold, list without change. I've problems with 'dbic' on kohadevbox, so I tried make schema change manually by !sudo koha-upgrade-schema kohadev'. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Failed QA --- Comment #24 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- The patch applies for me - did you mean to set Failed QA? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #25 from Michal Denar <black23@gmail.com> --- Hi Katrin, yes,QA faild for me. Thank you. I saw on IRC, that you fight with 'dbic' too. Did you solve it? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #26 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Michal Denar from comment #25)
Hi Katrin, yes,QA faild for me. Thank you. I saw on IRC, that you fight with 'dbic' too. Did you solve it?
No, I ended up running the normal command in koha-shell - so doing it manually instead of taking the shortcut. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |26020 --- Comment #27 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Katrin Fischer from comment #22)
Actually I think we have a bigger problem here: I was confusing holds to pull and holds queue earlier. Now testing another patch...
Holds to pull fails for me with and without this patch in strict mode (error on bug 26020)
Thanks for pointing this out and reporting it, Katrin. I still can't seem to enable strict mode, can you please tell me how to do this? I suppose we want to fix the bug on Bug 26020 before getting this patch through (in fact fixing Bug 26020 might fix this problem) so I'll set 26020 as blocking this bug. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26020 [Bug 26020] Holds to pull report is broken in sql strict mode -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #28 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Hi Aleiha, all I do is changing the setting in the koha-conf.xml file and restarted all the things including the mysql server. Not sure if that's needed. I later turend it off again so I coudl continue testing the other patch and get around the bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #29 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Katrin Fischer from comment #28)
Hi Aleiha, all I do is changing the setting in the koha-conf.xml file and restarted all the things including the mysql server. Not sure if that's needed. I later turend it off again so I coudl continue testing the other patch and get around the bug.
Oh, and your patch didn't fix it for me - still showing the same problem with the group by. (it's not changed, I think) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #30 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- + itemnumber => { -not_in => \'SELECT itemnumber FROM branchtransfers WHERE datearrived IS NULL', -not_in => \'SELECT itemnumber FROM issues' }, There are twice the same key in the hash "-not_in", only the second one will be used. As you are reusing this set in different ->search I think you should retrieve them once to have the itemnumber list in a perl array. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #106882|0 |1 is obsolete| | --- Comment #31 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Created attachment 107206 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107206&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #32 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Sorry team I really cannot seem to enable strict_sql_modes and reproduce that error, I tried a bunch of different things including MariaDB specific things but I couldn't reproduce. I've reworked the patch a bit, and really curious if it stops that error from showing. Please test and let me know how it goes. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Bug 24488 depends on bug 26020, which changed state. Bug 26020 Summary: Holds to pull report is broken in sql strict mode https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26020 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on|26020 | --- Comment #33 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Aleisha Amohia from comment #27)
(In reply to Katrin Fischer from comment #22)
Actually I think we have a bigger problem here: I was confusing holds to pull and holds queue earlier. Now testing another patch...
Holds to pull fails for me with and without this patch in strict mode (error on bug 26020)
Thanks for pointing this out and reporting it, Katrin. I still can't seem to enable strict mode, can you please tell me how to do this?
I suppose we want to fix the bug on Bug 26020 before getting this patch through (in fact fixing Bug 26020 might fix this problem) so I'll set 26020 as blocking this bug.
I have the hope to fix the problematic group by with your patches, Aleisha. We already tried to fix it on bug 22431 but failed, so I don't think we should depend on another bug report. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26020 [Bug 26020] Holds to pull report is broken in sql strict mode -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #34 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 107213 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107213&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #35 from Michal Denar <black23@gmail.com> --- Hi, sorry Aleisha and Jonathan. But patch don't work for me. If you change priority of holds, name on List to Pull is still same as befere change. It's not on test plan, I know. But I should work too. Maybe someone test it too. Katrin? https://recordit.co/RA8bCjXekD -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #36 from Aleisha Amohia <aleisha@catalyst.net.nz> --- (In reply to Michal Denar from comment #35)
Hi, sorry Aleisha and Jonathan. But patch don't work for me. If you change priority of holds, name on List to Pull is still same as befere change. It's not on test plan, I know. But I should work too. Maybe someone test it too. Katrin? https://recordit.co/RA8bCjXekD
Hi Michal, I don't think it's about priority, it's about the earliest place hold. As far as I know the Holds to Pull shows the 'first patron' as based on date, I don't think it ever considered priority. But I may have that wrong, perhaps Jonathan or Katrin can confirm? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #37 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I am expecting the first patron in the queue to be displayed. The query did not deal with the priority indeed, but this query is plain wrong :D -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #38 from Michal Denar <black23@gmail.com> --- Hi, we'll change status on Failed QA? For me is best solution make 'first patron' based on wating queue (smallest non suspended priority number)? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |ASSIGNED --- Comment #39 from Aleisha Amohia <aleisha@catalyst.net.nz> --- So to confirm, this patch will not only fix the group_by error but we also want to fix the Holds to Pull to show the highest priority hold instead of the earliest placed hold? Because currently it shows the earliest placed hold. Happy to make this change. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #40 from Michal Denar <black23@gmail.com> --- Hi Aleisha, from my point of view focus on priority solve both scenarios. If borrower make hold, Koha set priority to "1". Next hold "2", etc. If case that priority will be changed, Hold too pull list show correct borrower too. Win-win for me. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #41 from Michal Denar <black23@gmail.com> --- Hi Aleisha, any updates? Thank you. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #42 from Aleisha Amohia <aleisha@catalyst.net.nz> --- Unfortunately, not yet sorry. It's on my list to get to when I have time. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #43 from Michal Denar <black23@gmail.com> --- OK -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #107206|0 |1 is obsolete| | Attachment #107213|0 |1 is obsolete| | --- Comment #44 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111341 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111341&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #45 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111342 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111342&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #46 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111343 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111343&action=edit Bug 24488: Display patron with the highest priority hold -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #47 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Patches have been rebased (and I've added some modifications to the first patch, especially related to bug 23485 and bug 25534). I have also added a patch to display the patron with the highest priority hold. Reading for testing again. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #48 from Nick Clemens <nick@bywatersolutions.com> --- Created attachment 111347 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111347&action=edit Bug 24488: (follow-up) Reduce repeated code -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #49 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111348 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111348&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111347|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #50 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Aleisha, what were you trying to achieve with the following code? 196 foreach my $bibnum ( @biblionumbers ){ 197 198 my @items = Koha::Items->search({ biblionumber => $bibnum }); 199 foreach my $i ( @items ){ 200 if ( $i->checkout ){ 201 next; 202 } 203 } -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #51 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111349 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111349&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111349|0 |1 is obsolete| | --- Comment #52 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 111350 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111350&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111341|0 |1 is obsolete| | Attachment #111342|0 |1 is obsolete| | Attachment #111343|0 |1 is obsolete| | Attachment #111348|0 |1 is obsolete| | Attachment #111350|0 |1 is obsolete| | --- Comment #53 from Michal Denar <black23@gmail.com> --- Created attachment 111358 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111358&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #54 from Michal Denar <black23@gmail.com> --- Created attachment 111359 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111359&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #55 from Michal Denar <black23@gmail.com> --- Created attachment 111360 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111360&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #56 from Michal Denar <black23@gmail.com> --- Created attachment 111361 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111361&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #57 from Michal Denar <black23@gmail.com> --- Created attachment 111362 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=111362&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Patch doesn't apply --- Comment #58 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Neither the original patches nor Joubu's alternative(?) apply at the moment. I feel like we got a bit stuck here. Aleisha, could you take a look at comment#50 too when rebasing and maybe Joubu's patch? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #111358|0 |1 is obsolete| | Attachment #111359|0 |1 is obsolete| | Attachment #111360|0 |1 is obsolete| | Attachment #111361|0 |1 is obsolete| | Attachment #111362|0 |1 is obsolete| | --- Comment #59 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 112815 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112815&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #60 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 112816 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112816&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #61 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 112817 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112817&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #62 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 112818 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112818&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #63 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 112819 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112819&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #64 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Katrin Fischer from comment #58)
Neither the original patches nor Joubu's alternative(?) apply at the moment. I feel like we got a bit stuck here.
Easy conflict solved. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |josef.moravec@gmail.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112815|0 |1 is obsolete| | --- Comment #65 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113695 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113695&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112816|0 |1 is obsolete| | --- Comment #66 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113696 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113696&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112817|0 |1 is obsolete| | --- Comment #67 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113697 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113697&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112818|0 |1 is obsolete| | --- Comment #68 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113698 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113698&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #112819|0 |1 is obsolete| | --- Comment #69 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113699 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113699&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #70 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113700 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113700&action=edit Bug 24488: (QA follow-up): Fix small bugs, add checkk for waiting holds Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #71 from Josef Moravec <josef.moravec@gmail.com> --- I have done a little benchmark Testing DB - copy from production 85k biblios 125k items 15k reserves I ran twice a batch of 10 runs of pendingreserves.pl and measure clean time of this script running (from begin to end of whole script) Original version from Aleisha: Run 1: 7.57 s avg Run 1: 8.1 s avg Joubu's alternative: Run 1: 5,96 s Run 2: 6,04 s That is between 20 and 25 percent gain for Joubu's alternative patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #72 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #63)
I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best
I placed 1000 holds in my system: INSERT INTO reserves (borrowernumber,reservedate,biblionumber,branchcode,priority,itemnumber) SELECT CEIL(rand()*50),CURDATE(),biblionumber,'CPL',1,NULL FROM biblio; On master (strict mode disabled): < 10s Without discusson patch and followup:
1 min 20s
With discussion and followup: < 50 s While the follow-up offers great improvement, I am not impressed with the slowdown overall -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #73 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Josef Moravec from comment #71)
I have done a little benchmark
Testing DB - copy from production 85k biblios 125k items 15k reserves
I ran twice a batch of 10 runs of pendingreserves.pl and measure clean time of this script running (from begin to end of whole script)
Original version from Aleisha: Run 1: 7.57 s avg Run 1: 8.1 s avg
Joubu's alternative: Run 1: 5,96 s Run 2: 6,04 s
That is between 20 and 25 percent gain for Joubu's alternative patch
How many holds were reported on the report for you? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Nick Clemens <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #74 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113756 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113756&action=edit Bug 24488: (QA follow-up) Make pending reserves faster Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #75 from Josef Moravec <josef.moravec@gmail.com> --- (In reply to Nick Clemens from comment #72)
(In reply to Jonathan Druart from comment #63)
I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best
I placed 1000 holds in my system: INSERT INTO reserves (borrowernumber,reservedate,biblionumber,branchcode,priority,itemnumber) SELECT CEIL(rand()*50),CURDATE(),biblionumber,'CPL',1,NULL FROM biblio;
On master (strict mode disabled): < 10s
Without discusson patch and followup:
1 min 20s
With discussion and followup: < 50 s
While the follow-up offers great improvement, I am not impressed with the slowdown overall
There is in fact no need to select all itemnumbers from checkouts... I added a follow-up, for me it is now significantly faster, even something like 10 times faster then before, could you test on your data? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #76 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113757 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113757&action=edit Bug 24488: (QA follow-up) Remove two queries out of foreach cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113757|0 |1 is obsolete| | --- Comment #77 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113763 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113763&action=edit Bug 24488: (QA follow-up) Remove two queries out of foreach cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #78 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113764 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113764&action=edit Bug 24488: (QA follow-up) Move getting items out of cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #79 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Josef, I am expecting this last patch to improve perf only in the case where all items are coming from the same biblio. Which don't happen on a real-life situation :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #80 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- And the memory usage will be worst (maybe negligible however). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |ASSIGNED --- Comment #81 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- 17-18s (josef) 18-19 (mine) 5s (master) Working on this. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #82 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- Comment on attachment 113696 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113696 Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Review of attachment 113696: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=24488&attachment=113696) ----------------------------------------------------------------- ::: circ/pendingreserves.pl @@ +190,2 @@
); +my @biblionumbers = uniq $distinct_holds->get_column('biblionumber');
We could do this at the DB level: `my @biblionumbers = $distinct_holds->_resultset->get_column('biblionumber')->func('DISTINCT');` -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #83 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113774 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113774&action=edit Bug 24488: Fix count distinct patron on a given hold -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #84 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113775 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113775&action=edit Bug 24488: perf - Group by at DBMS level -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #85 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113776 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113776&action=edit Bug 24488: perf - move patrons_count out of the loop -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #86 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113777 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113777&action=edit Bug 24488: Simplify structure passed to the template -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #87 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113778 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113778&action=edit Bug 24488: perf - Move holds search out of the loop This will need attention from QA. Are we sure it's doing the same thing (especially the order by!) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_20_11_target |rel_21_05_candidate Status|ASSIGNED |Needs Signoff --- Comment #88 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- With the last patches I am at ~9sec (the last patch is doing the best part) I am afraid this one won't hit 20.11. Setting back to NSO as I'd like a full retest of the whole patch stack. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Patch doesn't apply --- Comment #89 from Michal Denar <black23@gmail.com> --- Hi, I get this errors on Hold to pull page https://lh3.googleusercontent.com/-Ka99Dm0l93w/X7VZsqPoAoI/AAAAAAAAHvM/btn2w... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Patch doesn't apply |Failed QA --- Comment #90 from Josef Moravec <josef.moravec@gmail.com> --- This does not work correctly - in fact the behaviour is same as before patch (only slower) When we get all holds at once, it will be the same as before... we need to do one of this things: - get hold by biblionumber in each loop - revert last patch - bad performance - add 'priority' => 1, to where clause - best performance, but can we - add subquery and get only the holds with priority = min(priority) for given biblionumber - probably the optimal solution? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #91 from Josef Moravec <josef.moravec@gmail.com> --- (In reply to Josef Moravec from comment #90)
This does not work correctly - in fact the behaviour is same as before patch (only slower)
When we get all holds at once, it will be the same as before... we need to do one of this things:
- get hold by biblionumber in each loop - revert last patch - bad performance - add 'priority' => 1, to where clause - best performance, but can we - add subquery and get only the holds with priority = min(priority) for given biblionumber - probably the optimal solution?
Sorry, commited comment too early ;) ad second point: - add 'priority' => 1, to where clause - best performance, but can we assume the lowest priority is always 1? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |ASSIGNED Assignee|aleisha@catalyst.net.nz |jonathan.druart@bugs.koha-c | |ommunity.org -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113778|0 |1 is obsolete| | --- Comment #92 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 113798 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113798&action=edit Bug 24488: perf - Move holds search out of the loop This will need attention from QA. We are assuming that the hold with the highest priority has priority=1 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #93 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Sorry, the last patch was silly indeed. I hadn't turned on the strict mode. Your suggestion, Josef, of assuming that the highest priority hold has priority=1 is great actually. I think we never wanted to assume that (in case the data is corrupted?) in this script, but we should go for it IMO, that simplifies the code, the queries, and it makes sense to me! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #94 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- (In reply to Jonathan Druart from comment #93)
Sorry, the last patch was silly indeed. I hadn't turned on the strict mode.
Your suggestion, Josef, of assuming that the highest priority hold has priority=1 is great actually. I think we never wanted to assume that (in case the data is corrupted?) in this script, but we should go for it IMO, that simplifies the code, the queries, and it makes sense to me!
I believe in the past we had issues with the priorities not being correct, but believe it was fixed (hopefully). Nick or Kyle might be able to tell. Wondering what happens with the local holds priority settings - do they change the priority in the db or do they check highest priority for local? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #95 from Nick Clemens <nick@bywatersolutions.com> --- (In reply to Katrin Fischer from comment #94)
(In reply to Jonathan Druart from comment #93)
Sorry, the last patch was silly indeed. I hadn't turned on the strict mode.
Your suggestion, Josef, of assuming that the highest priority hold has priority=1 is great actually. I think we never wanted to assume that (in case the data is corrupted?) in this script, but we should go for it IMO, that simplifies the code, the queries, and it makes sense to me!
I believe in the past we had issues with the priorities not being correct, but believe it was fixed (hopefully). Nick or Kyle might be able to tell.
Wondering what happens with the local holds priority settings - do they change the priority in the db or do they check highest priority for local?
I checked in our production sites, there are few cases where the highest priority is not 1, and they mostly seem to be related to other issues (suspended holds, holds in the future, missing items) so nothing that should show on holds to pull. Local holds don't alter the priority, they get checked first when filling holds or building the queue, so this report won't catch them, but I think that is fine as this report isn't branch specific Other options (for another bug) would be: 1 - List all the holds - just show the first and maybe add a modal to see all the others 2 - Create a cron like the holds queue, build this page on the backend and simply display - it adds a delay to new holds showing, but allows us to calculate the exact holds to be pulled 3 - Add a branch limiter to the report and default to local branches items -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Michal Denar <black23@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113695|0 |1 is obsolete| | Attachment #113696|0 |1 is obsolete| | Attachment #113697|0 |1 is obsolete| | Attachment #113698|0 |1 is obsolete| | Attachment #113699|0 |1 is obsolete| | Attachment #113700|0 |1 is obsolete| | Attachment #113756|0 |1 is obsolete| | Attachment #113763|0 |1 is obsolete| | Attachment #113764|0 |1 is obsolete| | Attachment #113774|0 |1 is obsolete| | Attachment #113775|0 |1 is obsolete| | Attachment #113776|0 |1 is obsolete| | Attachment #113777|0 |1 is obsolete| | Attachment #113798|0 |1 is obsolete| | --- Comment #96 from Michal Denar <black23@gmail.com> --- Created attachment 113829 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113829&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #97 from Michal Denar <black23@gmail.com> --- Created attachment 113830 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113830&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #98 from Michal Denar <black23@gmail.com> --- Created attachment 113831 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113831&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #99 from Michal Denar <black23@gmail.com> --- Created attachment 113832 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113832&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #100 from Michal Denar <black23@gmail.com> --- Created attachment 113833 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113833&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #101 from Michal Denar <black23@gmail.com> --- Created attachment 113834 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113834&action=edit Bug 24488: (QA follow-up): Fix small bugs, add checkk for waiting holds Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #102 from Michal Denar <black23@gmail.com> --- Created attachment 113835 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113835&action=edit Bug 24488: (QA follow-up) Make pending reserves faster Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #103 from Michal Denar <black23@gmail.com> --- Created attachment 113836 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113836&action=edit Bug 24488: (QA follow-up) Remove two queries out of foreach cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #104 from Michal Denar <black23@gmail.com> --- Created attachment 113837 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113837&action=edit Bug 24488: (QA follow-up) Move getting items out of cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #105 from Michal Denar <black23@gmail.com> --- Created attachment 113838 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113838&action=edit Bug 24488: Fix count distinct patron on a given hold Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #106 from Michal Denar <black23@gmail.com> --- Created attachment 113839 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113839&action=edit Bug 24488: perf - Group by at DBMS level Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #107 from Michal Denar <black23@gmail.com> --- Created attachment 113840 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113840&action=edit Bug 24488: perf - move patrons_count out of the loop Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #108 from Michal Denar <black23@gmail.com> --- Created attachment 113841 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113841&action=edit Bug 24488: Simplify structure passed to the template Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #109 from Michal Denar <black23@gmail.com> --- Created attachment 113842 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113842&action=edit Bug 24488: perf - Move holds search out of the loop This will need attention from QA. We are assuming that the hold with the highest priority has priority=1 Signed-off-by: Michal Denra <black23@gmail.comm> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #110 from Josef Moravec <josef.moravec@gmail.com> --- (In reply to Michal Denar from comment #108)
Created attachment 113841 [details] [review] Bug 24488: Simplify structure passed to the template
Signed-off-by: Michal Denra <black23@gmail.comm>
Thanks Michal for testing, just a note, you have misspelled your name and email in your git configuration -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113829|0 |1 is obsolete| | --- Comment #111 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113850 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113850&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113830|0 |1 is obsolete| | --- Comment #112 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113851 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113851&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113831|0 |1 is obsolete| | --- Comment #113 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113852 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113852&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113832|0 |1 is obsolete| | --- Comment #114 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113853 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113853&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113833|0 |1 is obsolete| | --- Comment #115 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113854 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113854&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113834|0 |1 is obsolete| | --- Comment #116 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113855 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113855&action=edit Bug 24488: (QA follow-up): Fix small bugs, add checkk for waiting holds Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113835|0 |1 is obsolete| | --- Comment #117 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113856 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113856&action=edit Bug 24488: (QA follow-up) Make pending reserves faster Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113836|0 |1 is obsolete| | --- Comment #118 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113857 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113857&action=edit Bug 24488: (QA follow-up) Remove two queries out of foreach cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113837|0 |1 is obsolete| | --- Comment #119 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113858 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113858&action=edit Bug 24488: (QA follow-up) Move getting items out of cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113838|0 |1 is obsolete| | --- Comment #120 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113859 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113859&action=edit Bug 24488: Fix count distinct patron on a given hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113839|0 |1 is obsolete| | --- Comment #121 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113860 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113860&action=edit Bug 24488: perf - Group by at DBMS level Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113840|0 |1 is obsolete| | --- Comment #122 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113861 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113861&action=edit Bug 24488: perf - move patrons_count out of the loop Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113841|0 |1 is obsolete| | --- Comment #123 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113862 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113862&action=edit Bug 24488: Simplify structure passed to the template Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113842|0 |1 is obsolete| | --- Comment #124 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113863 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113863&action=edit Bug 24488: perf - Move holds search out of the loop This will need attention from QA. We are assuming that the hold with the highest priority has priority=1 Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #125 from Josef Moravec <josef.moravec@gmail.com> --- Created attachment 113864 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113864&action=edit Bug 24488: (QA follow-up) Go to next loop as early as possible Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Signed Off --- Comment #126 from Josef Moravec <josef.moravec@gmail.com> --- Looks good now I think Nick or Jonathan, can you please review my last follow-up? It does not give much speed gain, but still measurable on my testing machine. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #127 from Martin Renvoize <martin.renvoize@ptfs-europe.com> --- This looks like a great improvement, movin us to searching via objects etc... but... dare I say it, can we move this to a module and thus add tests? There's a lot of functionality here in filtering down to the right level, improving performance etc.. be great to have that solidly unit/regression tested ;) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #128 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I thought a bit more about the priority=1 thing this morning. And actually I have the feeling that the original issue described on this bug report could be fixed with the following (...one line!) change: diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 01cf877b55..962ebe5609 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -230,7 +230,7 @@ my $strsth = AND items.itemnumber NOT IN (SELECT itemnumber FROM branchtransfers where datearrived IS NULL) AND items.itemnumber NOT IN (SELECT itemnumber FROM reserves WHERE found IS NOT NULL AND itemnumber IS NOT NULL) AND issues.itemnumber IS NULL - AND reserves.priority <> 0 + AND reserves.priority = 1 AND reserves.suspend = 0 AND notforloan = 0 AND itemlost = 0 AND withdrawn = 0 AND ( circulation_rules.rule_value IS NULL OR circulation_rules.rule_value != 0 ) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joonas.kylmala@helsinki.fi --- Comment #129 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Jonathan Druart from comment #128)
I thought a bit more about the priority=1 thing this morning.
And actually I have the feeling that the original issue described on this bug report could be fixed with the following (...one line!) change:
diff --git a/circ/pendingreserves.pl b/circ/pendingreserves.pl index 01cf877b55..962ebe5609 100755 --- a/circ/pendingreserves.pl +++ b/circ/pendingreserves.pl @@ -230,7 +230,7 @@ my $strsth = AND items.itemnumber NOT IN (SELECT itemnumber FROM branchtransfers where datearrived IS NULL) AND items.itemnumber NOT IN (SELECT itemnumber FROM reserves WHERE found IS NOT NULL AND itemnumber IS NOT NULL) AND issues.itemnumber IS NULL - AND reserves.priority <> 0 + AND reserves.priority = 1 AND reserves.suspend = 0
This doesn't work because then rcount i.e. "Pull this many items" would only show 1 when in reality you need to pull many more items also to fill those other reserves. PS. unrelated, but rcount is also incorrect, it should be the number of holds, not amount of borrowers. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Failed QA --- Comment #130 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Martin Renvoize from comment #127)
This looks like a great improvement, movin us to searching via objects etc... but... dare I say it, can we move this to a module and thus add tests?
I think this definitely needs to use a module, the code population of @all_items should be replaced with an object's method call that returns items that can fill holds. Then it will make super easy to read code where you just iterate over all the items and add the callnumber, shelving location, etc. info to the $reserves variable that goes. Btw, to resolve the original issue, can't we just order by reserve priority? This refactoring could be in a separate bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #131 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Joonas Kylmälä from comment #130)
(In reply to Martin Renvoize from comment #127)
This looks like a great improvement, movin us to searching via objects etc... but... dare I say it, can we move this to a module and thus add tests?
I think this definitely needs to use a module, the code population of @all_items should be replaced with an object's method call that returns items that can fill holds. Then it will make super easy to read code where you just iterate over all the items and add the callnumber, shelving location, etc. info to the $reserves variable that goes.
Yes, it would be nice to have tests and make the code even more clean. But given from when we started, I think it's already a great improvement. I really would like to have this into master at the beginning of the release cycle, and I am not sure we are going to find volunteers to write tests soon...
Btw, to resolve the original issue, can't we just order by reserve priority? This refactoring could be in a separate bug.
No, I don't think it will work, because of the group by. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #132 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I had a (quick) look at how we could move the @all_items construction into a Koha::Items->filter_by_ method. I didn't find a simply way to do it, keeping code readable and without duplication. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #133 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Jonathan Druart from comment #132)
I had a (quick) look at how we could move the @all_items construction into a Koha::Items->filter_by_ method. I didn't find a simply way to do it, keeping code readable and without duplication.
Having it under Koha::Items was not my intention and would not lead to any clearer result. It should be something like Koha::Holds->find($biblionumber)->items_that_can_fill and Koha::Hold->items_that_can_fill. But for this we need the CanItemFillHold from https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26659#c6 I think. And of course some other naming scheme might be better, take items_that_can_fill as just an example. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27131 --- Comment #134 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- I've opened a new bug report. I don't think we should add more patch to this one. See bug 27131. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27131 [Bug 27131] Move code from circ/pendingreserves.pl to modules -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #113850|0 |1 is obsolete| | Attachment #113851|0 |1 is obsolete| | Attachment #113852|0 |1 is obsolete| | Attachment #113853|0 |1 is obsolete| | Attachment #113854|0 |1 is obsolete| | Attachment #113855|0 |1 is obsolete| | Attachment #113856|0 |1 is obsolete| | Attachment #113857|0 |1 is obsolete| | Attachment #113858|0 |1 is obsolete| | Attachment #113859|0 |1 is obsolete| | Attachment #113860|0 |1 is obsolete| | Attachment #113861|0 |1 is obsolete| | Attachment #113862|0 |1 is obsolete| | Attachment #113863|0 |1 is obsolete| | Attachment #113864|0 |1 is obsolete| | --- Comment #135 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114835 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114835&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #136 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114836 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114836&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #137 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114837 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114837&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #138 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114838 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114838&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #139 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114839 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114839&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #140 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114840 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114840&action=edit Bug 24488: (QA follow-up): Fix small bugs, add checkk for waiting holds Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #141 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114841 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114841&action=edit Bug 24488: (QA follow-up) Make pending reserves faster Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #142 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114842 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114842&action=edit Bug 24488: (QA follow-up) Remove two queries out of foreach cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #143 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114843 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114843&action=edit Bug 24488: (QA follow-up) Move getting items out of cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #144 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114844 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114844&action=edit Bug 24488: Fix count distinct patron on a given hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #145 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114845 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114845&action=edit Bug 24488: perf - Group by at DBMS level Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #146 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114846 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114846&action=edit Bug 24488: perf - move patrons_count out of the loop Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #147 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114847 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114847&action=edit Bug 24488: Simplify structure passed to the template Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #148 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114848 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114848&action=edit Bug 24488: perf - Move holds search out of the loop This will need attention from QA. We are assuming that the hold with the highest priority has priority=1 Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #149 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114849 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114849&action=edit Bug 24488: (QA follow-up) Go to next loop as early as possible Signed-off-by: Josef Moravec <josef.moravec@gmail.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #150 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 114850 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114850&action=edit Bug 24488: create a loop to avoid copy paste -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #151 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Patches rebased. I have provided a small enhancement on bug 27131 to move some code to a method. I don't think we could do more here, if you look at the code it read good and is pretty trivial (it's just a matter a few ->search calls). I have done all what I could do get this ready, hopefully it will be approved and pushed soon :) Sending back to the NQA queue. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #152 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to Jonathan Druart from comment #151)
Patches rebased.
I have provided a small enhancement on bug 27131 to move some code to a method. I don't think we could do more here, if you look at the code it read good and is pretty trivial (it's just a matter a few ->search calls).
I have done all what I could do get this ready, hopefully it will be approved and pushed soon :)
Sending back to the NQA queue.
My first impression here is: I knew that the query was ugly but replacing it by a huge number of DBIx calls will probably degrade the performance significantly. And if we make so many changes in a script, we should really go to a module. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #153 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- my ( $k, $f ) = each %$fff ) Clear variables names btw :) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |BLOCKED --- Comment #154 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- QA: Still looking here -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|BLOCKED |Passed QA Patch complexity|--- |Medium patch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114835|0 |1 is obsolete| | --- Comment #155 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116362 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116362&action=edit Bug 24488: Show correct first patron details on Holds to pull This patch rewrites the complex search query to reduce the risk of reordering the results multiple times. This patch includes a change to schema files so may need to upgrade schema and/or restart memcached To test: 1) Reproduce problem following test plan in Description 2) Apply patch and refresh page 3) Notice the correct patron is now shown 4) Play with date selection, confirm correct results are still shown 5) Test cancelling holds 6) Test filtering table results 7) Test with biblios with multiple items 8) Test with making items unavailable (i.e. not for loan, checked out) Sponsored by: IHC New Zealand Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114836|0 |1 is obsolete| | --- Comment #156 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116363 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116363&action=edit Bug 24488: Fix reserve.reserve_id' isn't in GROUP BY Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114837|0 |1 is obsolete| | --- Comment #157 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116364 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116364&action=edit Bug 24488: Display patron with the highest priority hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114838|0 |1 is obsolete| | --- Comment #158 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116365 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116365&action=edit Bug 24488: Simplify searches It also: Use dtf for date handling add missing td Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114839|0 |1 is obsolete| | --- Comment #159 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116366 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116366&action=edit Bug 24488: [DISCUSSION] For comparaison I'd like someone to run a benchmark with and without this patch on a quite big database and see which approach is the best Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114840|0 |1 is obsolete| | --- Comment #160 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116367 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116367&action=edit Bug 24488: (QA follow-up): Fix small bugs, add checkk for waiting holds Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114841|0 |1 is obsolete| | --- Comment #161 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116368 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116368&action=edit Bug 24488: (QA follow-up) Make pending reserves faster Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114842|0 |1 is obsolete| | --- Comment #162 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116369 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116369&action=edit Bug 24488: (QA follow-up) Remove two queries out of foreach cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114843|0 |1 is obsolete| | --- Comment #163 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116370 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116370&action=edit Bug 24488: (QA follow-up) Move getting items out of cycle Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114844|0 |1 is obsolete| | --- Comment #164 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116371 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116371&action=edit Bug 24488: Fix count distinct patron on a given hold Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114845|0 |1 is obsolete| | --- Comment #165 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116372 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116372&action=edit Bug 24488: perf - Group by at DBMS level Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114846|0 |1 is obsolete| | --- Comment #166 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116373 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116373&action=edit Bug 24488: perf - move patrons_count out of the loop Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114847|0 |1 is obsolete| | --- Comment #167 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116374 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116374&action=edit Bug 24488: Simplify structure passed to the template Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114848|0 |1 is obsolete| | --- Comment #168 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116375 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116375&action=edit Bug 24488: perf - Move holds search out of the loop This will need attention from QA. We are assuming that the hold with the highest priority has priority=1 Signed-off-by: Michal Denar <black23@gmail.com> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114849|0 |1 is obsolete| | --- Comment #169 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116376 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116376&action=edit Bug 24488: (QA follow-up) Go to next loop as early as possible Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Marcel de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #114850|0 |1 is obsolete| | --- Comment #170 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Created attachment 116377 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116377&action=edit Bug 24488: create a loop to avoid copy paste Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #171 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- Some timings from the browser: 500 holds -> only 6 selected 150 ms OLD 300 ms NEW 2500 holds -> 40 selected 500 ms OLD 800 ms NEW 20000 holds -> 1000 selected Gateway timeouts or unclear results. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #172 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- In view of the attention given already, passing QA. This should get further follow-up. Move essential code into a module, test it. The original query was terrible, but the new code is far from ideal too. The performance has been degraded. Hard to say when it is no longer acceptable. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #173 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Marcel de Rooy from comment #152)
(In reply to Jonathan Druart from comment #151)
Patches rebased.
I have provided a small enhancement on bug 27131 to move some code to a method. I don't think we could do more here, if you look at the code it read good and is pretty trivial (it's just a matter a few ->search calls).
I have done all what I could do get this ready, hopefully it will be approved and pushed soon :)
Sending back to the NQA queue.
My first impression here is: I knew that the query was ugly but replacing it by a huge number of DBIx calls will probably degrade the performance significantly. And if we make so many changes in a script, we should really go to a module.
Have you seen bug 27131? Thanks for the review, Marcel! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #116377|0 |1 is obsolete| | --- Comment #174 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Created attachment 116384 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116384&action=edit Bug 24488: create a loop to avoid copy paste Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> JD amended patch: Rename variables -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to master Version(s)| |21.05.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #175 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Pushed to master for 21.05, thanks to everybody involved! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #176 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- *** Bug 22431 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |caroline.cyr-la-rose@inlibr | |o.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m --- Comment #177 from Fridolin Somers <fridolin.somers@biblibre.com> --- Do you think this is safe for backport on 20.11.x ? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #178 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- (In reply to Fridolin Somers from comment #177)
Do you think this is safe for backport on 20.11.x ?
No, it's too big. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_21_05_candidate, | |RM_priority | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 --- Comment #179 from Fridolin Somers <fridolin.somers@biblibre.com> --- Not backported to 20.11.x -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27706 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27706 [Bug 27706] Holds to Pull libraries column filter doesn't work -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27718 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27718 [Bug 27718] Holds to Pull list doesn't respect holdallowed circulation rule anymore -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Joonas Kylmälä <joonas.kylmala@helsinki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27803 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27803 [Bug 27803] publicationyear / copyrightdate not included in Holds to Pull -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |24301 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24301 [Bug 24301] Holds to pull: Name of borrower on list -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24488 Lucas Gass <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |29148 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29148 [Bug 29148] Holds to Pull doesn't reflect item-level holds -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org