Hold targeter ignoring closed settings when only local copies

Bug #1868837 reported by Steve Callender
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Evergreen
Won't Fix
Undecided
Unassigned
3.6
Won't Fix
Undecided
Unassigned

Bug Description

I found a situation where the hold targeter would ignore the circ.holds.target_when_closed_if_at_pickup_lib setting if the only potential holds for an item were only items at the pickup library.

The code looks like it was creating a list of closed org units based on potential items, and removing out the local org unit in order to have a secondary settings check for the pickup library. If there were no outside org units to check first due to no outside copies, it would just skip the whole subroutine and never apply the second setting.

I believe this patch should address that. Thank you Mike Rylander for the eyes on this.

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=commit;h=d29289d5c44917ca84ae91ebe91bf4fa2f1af0e7

Revision history for this message
Steve Callender (stevecallender) wrote :

Just a follow-up, I've seen this probably come up many times now.

The symptom is, if you are closed or all your branches are closed, and you are set to not process holds during closed times, but yet you are still occasionally seeing a random item pop up on the pull list, this is more than likely the bug you are hitting.

Revision history for this message
Rogan Hamby (rogan-hamby) wrote :

I might need a better testing plan or I don't understand the replication of the bug quite right.

Using concerto I took all the copies for bib 250, assigned circ_lib to BR3, set the libraries hour's to all closed and circ.holds.target_when_closed_if_at_pickup_lib to false for the consortium.

Pre Patch - targeted a copy on creation, set target_copy to null and ran hold targeted, did not select a copy

Post Patch - identical behavior

tags: added: holds
Changed in evergreen:
milestone: none → 3.6.1
Changed in evergreen:
milestone: 3.6.1 → 3.6.2
Changed in evergreen:
milestone: 3.6.2 → 3.6.3
Revision history for this message
Dawn Dale (ddale) wrote :

Using concerto, I set bib 90 copies to missing except the copies at BR1. I entered closed dates for BR1. I placed a hold for patron 99999303411 to be picked up at SL1. Assuming the holds targeter ran overnight, the hold was not on the pull list for BR1. This is the behavior I would expect. Agreeing with Rogan that I might not fully understand the issue, but I would consider this fixed but I don't want to sign off on it until I am sure I understand the issue.

Revision history for this message
Terran McCanna (tmccanna) wrote :

Steve - can you write steps to recreate the problem on a current test server with Concerto data (without the patch)?

I wonder if there is something else that has been changed that has already resolved the issue? (Like Hopeless Holds? I haven't looked at the code, but I would assume that the holds in this scenario should appear there rather.)

Changed in evergreen:
milestone: 3.6.3 → 3.6.4
Changed in evergreen:
milestone: 3.6.4 → 3.7.2
Revision history for this message
Terran McCanna (tmccanna) wrote :

Marking this one Won't Fix since several people haven't been able to recreate the problem without the patch. This can always be revisited if a way is found to trigger the problem.

Changed in evergreen:
status: New → Won't Fix
Andrea Neiman (aneiman)
Changed in evergreen:
milestone: 3.7.2 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.