status_changed_time can go back in time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Triaged
|
Medium
|
Rogan Hamby |
Bug Description
Evergreen 2.2
psql 9.1
I discovered items changing from reshelving to available much too quickly and seemingly randomly. I tracked the problem back to the status_changed_time coinciding with the copy's checkout time instead of its checkin time.
I further realized that this seemed to be isolated to floating items.
I verified in the audit tables that the status_changed_time was getting set backward. It seems that when copies are updated when floated, the update applies the entire copy object, which contains a stale status_
I believe the answer is to change the trigger function to not allow the status_change_time to revert to an earlier date.
Changed in evergreen: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: cataloging |
The attached patch should prevent updates from applying an older status_changed_time than the existing value.