-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
fix(#7250): race condition in loading contacts #8234
Conversation
…Race-condition-in-loading-contacts
@ngaruko and @dianabarsan There's a job before on this topic. The only part where we still need to check for the ID that it's loading is after the first retrieve of data. Please have a look and let me know your thoughts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops I accidentally hit enter without filling the textarea!
Thanks a lot for this change, @latin-panda ! It's great! I added a small request to keep code cleaner and a renaming suggestion.
…Race-condition-in-loading-contacts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! Since it was affecting e2e and hard to reproduce, I guess we don't need to write any more e2e test, just monitor that we are getting stable builds from now on 🤞
@ngaruko I found the steps to reproduce the issue reliably; it's in the ticket. |
…Race-condition-in-loading-contacts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, these things are such a pain. i think we should definitely normalize this kind of flow in all other areas where you could get subsequent select events, before initial ones finish executing.
Description
Stores the contact ID we want to fetch. Then as promises resolve, it checks that the contact we want to load is the same as from the data we had retrieved.
#7250
Code review checklist
Compose URLs
If Build CI hasn't passed, these may 404:
License
The software is provided under AGPL-3.0. Contributions to this project are accepted under the same license.