-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[LOW] [Splits] [$500] Web - IOU is greyed out, error message appears in chat and console #32076
Comments
Triggered auto assignment to @joekaufmanexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01ae5fe97cb4eccf95 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When creating IOU with users we already have chat with, get error "Unexpected error creating this chat, please try again later. There is a previously existing chat between these users" What is the root cause of that problem?We're not handling the preexisting chat case properly for the IOU case. The proper way to handle it is to redirect to the preexisting chat and clear the unnecessary data here, which already works fine in case of What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)Other related flow like split bill might have the same issue, we'll need to double check and fix for them as well. |
Proposal from @tienifr looks good to me #32076 (comment)
|
Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I'm thinking we should hold off on proceeding with this for right now. We are having some larger internal discussions about this |
ok, putting this on HOLD then. @joekaufmanexpensify you can let us know when we should unhold |
@joekaufmanexpensify @iwiznia just FYI this doesn't just happen in the Hidden case. It will also happen if user A initiates chat with user B on 1 device and also creates a money request to user B on another device in offline mode, then go online. It will face the same issue. |
Hm, interesting. I'm not sure if creating a chat with one user while online on one device, and then simultaneously attempting a money request with the same user on another device while offline is something a legitimate user would do. If the end result of the above discussion is that the hidden case will be fixed by other changes we are making, I'd probably rather wait and see if any actual customers ever experience this other case before doing anything. |
Making this a weekly for now, since the discussion is not yet resolved. |
Discussion is still ongoing |
Same. Looks like we were timing some queries to inform the direction we go in. |
Bumped discussion to determine whether anything is needed here. |
@iwiznia I discussed this with Puneet more today, and the result of that discussion was that we should proceed with fixing the bug in this issue. We are already handling part of this bug here so it works if the actions are all in one session. Meaning, if someone starts a chat with someone they don't know, and then separately creates an IOU with the same person in the same session, we will correctly consolidate the message and IOU into one chat. However, we still won't handle the piece related to multiple sessions correctly. Meaning if someone did this, and then signed out and back in, we'd try and put the IOU onto a new chat and it'd error out (as shown above in OP). Puneet mentioned we already handle this case for chats, and we can just re-use that same backend logic for IOUs here. |
LMK if you agree! Taking this off of hold for now |
No update |
No update |
No update |
No update |
No update |
No update |
No update |
@joekaufmanexpensify Let's push this forward to the finish line. Is there a reason to hold this issue? Please change the label to weekly. |
It's been almost 8 months. Let's get this prioritized now. What do you think @iwiznia? |
The changes needed are quite large and involve lots of api commands... given the low severity of the issues and the fact that reproduction steps are quite complex, I think we might be better off closing it. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.4.0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Issue found when executing PR #31102
Action Performed:
Expected Result:
I should be able to make the IOU without error messages or console errors
Actual Result:
I get an error message and the IOU is greyed out. Two errors appear in the console as soon as the error message appears in the chat
Unexpected error creating this chat, please try again later. There is a previously existing chat between these users
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6292386_1701121325770.bandicam_2023-11-27_21-33-01-176.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @iwizniaThe text was updated successfully, but these errors were encountered: