Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hector-jewell opened this issue Dec 31, 2024 · 0 comments
Labels

Comments

@hector-jewell
Copy link
Collaborator

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

  1. A rider is in "Unavailable" status.
  2. An order is placed in the system but has not yet been assigned to any rider.
  3. The rider switches their status to "Available."
  4. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant