Hanging transits can cause checkins to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Medium
|
Unassigned | ||
3.4 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If a Checked out item with a hanging transit is checked in, and needs to go in transit, the checkin will fail with no visual indication to the user. Logs show an error creating the transit:
2019-03-11 13:14:23 brick1 open-ils.circ: [ERR :93454:
Bug 1787274 resolved many issues where duplicate transits were being created at checkin. Part of this fix was adding a unique-per-copy constraint to action.
select copy.id, copy.status, transit.id from action.transit_copy transit
join asset.copy copy on transit.target_copy = copy.id
where copy.deleted is false
and copy.status != 6
and transit.
and transit.cancel_time is null
Since a given item can have only one active transit at a time, perhaps a check for an existing transit could be performed, and if found could be cancelled prior to attempting to create a new transit.
tags: | added: checkin transits |
Changed in evergreen: | |
assignee: | nobody → Jason Etheridge (phasefx) |
Changed in evergreen: | |
milestone: | none → 3.next |
importance: | Undecided → Medium |
milestone: | 3.next → 3.5.0 |
Changed in evergreen: | |
assignee: | Jason Etheridge (phasefx) → nobody |
Changed in evergreen: | |
milestone: | 3.5.0 → 3.5.1 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Related to bug: https:/ /bugs.launchpad .net/evergreen/ +bug/1529969 ?