gray-mueller / gray-mueller/full-stack-document-solution

Rider not receiving orders when switching status from "Unavailable" to "Available" during the unassigned order period.

未关闭
#63 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Describe the bug
When a rider switches their status from "Unavailable" to "Available" during the time window in which an order has not yet been assigned to any other rider, the system fails to assign the order to the rider. This behavior creates a situation where the rider misses out on receiving available orders even though they are now available to take them.

To Reproduce

A rider is in "Unavailable" status.
An order is placed in the system but has not yet been assigned to any rider.
The rider switches their status to "Available."
The rider does not receive the order, despite the order still being unassigned.
Expected behavior
When a rider changes their status from "Unavailable" to "Available," they should immediately be eligible to receive any unassigned orders. If there is an unassigned order available during this transition, the system should assign it to the rider.

Actual Result
The rider remains unassigned to the order, and no notification or assignment occurs for that order, even though it was unassigned and the rider is available.

Smartphone (please complete the following information):

Device: iPhone15pro
OS: iOS17.6.1

贡献指南

打开贡献指南

调研方向

No files, tests, or entry points are identified in the issue. Trace the rider status transition and the flow that assigns unassigned orders, then reproduce the unavailable-to-available scenario; done means an available rider receives an eligible unassigned order during the transition.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。