coopcycle-web icon indicating copy to clipboard operation
coopcycle-web copied to clipboard

Fix race condition on Address

Open r0xsh opened this issue 1 year ago • 2 comments

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

  1. A user updates their phone number in their profile.
  2. A new order is placed.
  3. A courier is assigned to the order.
  4. 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.

r0xsh avatar Sep 14 '23 12:09 r0xsh

I think we need to take a look at the clone() function of the Address

r0xsh avatar Sep 28 '23 15:09 r0xsh

Could be related to https://github.com/coopcycle/coopcycle-web/issues/2261

vladimir-8 avatar Apr 23 '24 15:04 vladimir-8