platelet-app / platelet

Dispatch system for emergency volunteer couriers.
https://platelet.app
Apache License 2.0
38 stars 10 forks source link

Task has incorrect status sometimes after being updated #165

Closed duckbytes closed 11 months ago

duckbytes commented 1 year ago

Sometimes when a job is updated the status is incorrectly set to NEW instead of the correct status. It's unclear if this only happens when a rider updates the job with a time, or if it also happens when a coordinator assigns a rider.

It's likely the function determineTaskStatus is missing context data from the TaskAssignees model, making it return NEW as if there is no rider assigned to it.

duckbytes commented 1 year ago

Updated determineTaskStatus function to first look at time data instead of assignee data. This should make it more reliable, but I'm still not sure why the assignee data wasn't properly being found in the first place.

Will wait and see if it works better for people when live.

duckbytes commented 11 months ago

Have not had any more reports on this issue.