Curbside - Appointments not in order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
New
|
Undecided
|
Unassigned |
Bug Description
EG 3.3
Hello, we are seeing the appointment slots being listed out of order in the "to be staged" and "staged and ready" interfaces.
What I've observed so far is that one appointment will show up out of order as the top spot, even when their are slots earlier than it. The rest of the appointments show up in order.
I've confirmed that "open-ils.
fetch_staged seems to include a sort on the slot column, which looks like it should return results in the correct order.
select * from action.curbside where delivered is null order by slot;
id|patron|
208|127625|
180|179297|
210|128454|
170|184860|
But the client is displaying the results in this order. (first two results swapped).
id|patron|
180|179297|
208|127625|
210|128454|
170|184860|
I'm wondering if the _flesh_
Or maybe the web client is doing it's own sorting later?
This causes a problem because when staff see the first staged and ready appoint is for X time, they are not expecting earlier appointments to be after that appointment in the list. It causes a general distrust of the results and the feeling like they have to look through all the staged appointments just in case there are more out of order.
We have locally adjusted the curbside module to show 72 Hours of appointments instead of 2 x slot length ahead slots. We don't have the staff to have people dedicated to curbside, so staff prefer to stage appointments ASAP vs only an hour ahead of time.
Josh
tags: | added: curbside |
Hello, Just had another instance of this pop up, this time in the fetch_to_be_staged results.
I've noticed that this seems to happen to entries with 19+ holds, so it may be related to the number of holds somehow.
The cstore call does seem to return the info in the correct order.
request open-ils.cstore open-ils. cstore. direct. action. curbside. search. atomic {"org": "102"," slot":{ "<=":"2020- 11-08T20: 09:41+0000" },"staged" :null}, {"flesh_ fields" :{"acsp" :["patron" ,"stage_ staff"] ,"ausp" :["standing_ penalty" ],"au": ["card" ,"standing_ penalties" ]},"limit" :25,"order_ by":{"acsp" :"slot" },"flesh" :3}
but then calling curbside. fetch_to_ be_staged "AuthID",102, 25, 0
request open-ils.curbside open-ils.
results in the incorrect order.