coopcycle-web
coopcycle-web copied to clipboard
Fix race condition on Address
A client has reported an issue where their updated phone number is not reflected in the task assigned to a courier, leading to communication problems. Despite updating their phone number in their profile, the courier still sees the old phone number on their task. This issue potentially involves a race condition in the system.
Steps to Reproduce
- A user updates their phone number in their profile.
- A new order is placed.
- A courier is assigned to the order.
- The courier's task still shows the old phone number of the user.
Additional Information This issue could potentially be a race condition where the courier's task is created before the user's phone number update is fully propagated through the system. Further investigation is needed to identify the root cause of this problem.
I think we need to take a look at the clone()
function of the Address
Could be related to https://github.com/coopcycle/coopcycle-web/issues/2261