The SIP server does not calculate and pass a priority to AddReserve, which causes the hold to be given priority 1.
Created attachment 99386 [details] [review] Bug 24705: Holds placed via SIP will be given first priority The SIP server does not calculate and pass a priority to AddReserve, which causes the hold to be given priority 1. Test Plan: 1) Place a hold via SIP for a record with existing holds 2) Note the new hold is top priority 3) Apply this patch 4) Restart SIP 5) Repeat step 1 6) New hold should be last priority
Thank you Kyle!
Created attachment 99427 [details] [review] Bug 24705: Holds placed via SIP will be given first priority The SIP server does not calculate and pass a priority to AddReserve, which causes the hold to be given priority 1. Test Plan: 1) Place a hold via SIP for a record with existing holds 2) Note the new hold is top priority 3) Apply this patch 4) Restart SIP 5) Repeat step 1 6) New hold should be last priority Signed-off-by: Christofer Zorn <Christofer.Zorn@ajaxlibrary.ca>
Created attachment 99483 [details] [review] Bug 24705: Add tests Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 99484 [details] [review] Bug 24705: Holds placed via SIP will be given first priority The SIP server does not calculate and pass a priority to AddReserve, which causes the hold to be given priority 1. Test Plan: 1) Place a hold via SIP for a record with existing holds 2) Note the new hold is top priority 3) Apply this patch 4) Restart SIP 5) Repeat step 1 6) New hold should be last priority Signed-off-by: Christofer Zorn <Christofer.Zorn@ajaxlibrary.ca> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Nice work everyone! Pushed to master for 20.05
Thanks for the tests Jonathan!
Does not apply to 19.11.x branch. Please rebase!
Rebased and pushed to 19.11.x branch for 19.11.05
Created attachment 102520 [details] [review] Bug 24705: Fix tests for 19.11.x
test do not clean apply in 19.05.x, tried the rebased test for 19.11, also don't work. No backport
test for 19.11 tests pushed to 19.11.x