Skip to content

[LOW] [Splits] [$500] Web - IOU is greyed out, error message appears in chat and console #32076

Closed

Description

@lanitochka17

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:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with a new account
  3. Start a chat using the FAB
  4. Input an account who isn't registered yet
  5. Send a message
  6. Upload a picture using the composers "+" button
  7. Request money (manual) using the FAB
  8. Input an email (can be the one from step 4 or a new one)
  9. Finish the IOU

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?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • Windows: Chrome
  • MacOS: Desktop

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
  • Upwork Job URL: https://www.upwork.com/jobs/~01ae5fe97cb4eccf95
  • Upwork Job ID: 1729285304604618752
  • Last Price Increase: 2023-11-27
Issue OwnerCurrent Issue Owner: @iwiznia

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Nov 27, 2023
  2. changed the title [-]IOU - IOU is greyed out, errror message appears in chat and console[/-] [+][$500] IOU - IOU is greyed out, errror message appears in chat and console[/+] on Nov 27, 2023
  3. melvin-bot commented on Nov 27, 2023

    @melvin-bot

    Triggered auto assignment to @joekaufmanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  4. melvin-bot commented on Nov 27, 2023

    @melvin-bot
  5. melvin-bot commented on Nov 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  6. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Nov 27, 2023
  7. melvin-bot commented on Nov 27, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 (External)

  8. tienifr commented on Nov 28, 2023

    @tienifr
    Contributor

    Proposal

    Please 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 New chat created that has preexisting chat.

    What changes do you think we should make in order to solve the problem?

    1. In RequestMoney command, the back-end should return preexistingReportID (similar to OpenReport) if the report creation failure is due to existing report between the 2 users. It should also handle so that the money request is created properly on that preexisting report
    2. Front-end will use it to redirect users to the correct chat, and clean up the optimistic report, report actions and related data of the duplicated chat, similar to what's already done for the new chat case here

    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.

  9. narefyev91 commented on Nov 28, 2023

    @narefyev91
    Contributor

    Proposal from @tienifr looks good to me #32076 (comment)

    1. We need to add internal BE engineer to work on changes
    2. We should assign @tienifr to make draft PR for FE side
    3. Combine with BE change and test draft PR to be sure that issue will be resolved
      🎀 👀 🎀 C+ reviewed
  10. melvin-bot commented on Nov 28, 2023

    @melvin-bot

    Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  11. 112 remaining items

  12. iwiznia commented on Apr 24, 2024

    @iwiznia
    Contributor

    No update

  13. iwiznia commented on May 27, 2024

    @iwiznia
    Contributor

    No update

  14. iwiznia commented on Jul 2, 2024

    @iwiznia
    Contributor

    No update

  15. parasharrajat commented on Aug 4, 2024

    @parasharrajat
    Member

    @joekaufmanexpensify Let's push this forward to the finish line. Is there a reason to hold this issue? Please change the label to weekly.

  16. joekaufmanexpensify commented on Aug 5, 2024

    @joekaufmanexpensify
    Contributor

    Hm, I don't think it is explicitly on hold. It's a question of internal priorities, given the next step here is for @iwiznia to put up the backend fix discussed here. Defer to him on when he thinks he'll be able to prioritize it. Happy to move it to weekly if that will be soon.

  17. parasharrajat commented on Aug 5, 2024

    @parasharrajat
    Member

    It's been almost 8 months. Let's get this prioritized now. What do you think @iwiznia?

  18. iwiznia commented on Aug 12, 2024

    @iwiznia
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.InternalRequires API changes or must be handled by Expensify staffMonthlyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions