Skip to content

[$1000] Web - Error occurs when user tries to split bill after starting a new chat with a new account #22076

Closed

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open a new account
  2. Click on FAB > New chat
  3. Input a new email and start a chat
  4. Click on FAB > Split bill
  5. Enter an amount
  6. Select the account you started a chat with and then add another one account and split the bill
  7. Wait for a while until the error occurs

Expected Result:

No error should occur

Actual Result:

Error occurs and user is unable to split a bill

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.35-5
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
Notes/Photos/Videos: Any additional supporting documentation

2023-07-01-14-50-24_oWemAWs4.1.mp4
Recording.2732.mp4

Expensify/Expensify Issue URL:
Issue reported by: @Nathan-Mulugeta
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688212454190299

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010a8416f5812bffa0
  • Upwork Job ID: 1676572723760885760
  • Last Price Increase: 2023-07-05

Activity

  1. added
    Daily
    Bug
    on Jul 2, 2023
  2. melvin-bot commented on Jul 2, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jul 2, 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
  4. zanyrenney commented on Jul 5, 2023

    @zanyrenney
    Contributor

    Similar / perhaps related issues: #19235
    #20277

  5. added
    External
    on Jul 5, 2023
  6. changed the title [-]Web - Error occurs when user tries to split bill after starting a new chat with a new account[/-] [+][$1000] Web - Error occurs when user tries to split bill after starting a new chat with a new account[/+] on Jul 5, 2023
  7. melvin-bot commented on Jul 5, 2023

    @melvin-bot
  8. added
    Help Wanted
    on Jul 5, 2023
  9. melvin-bot commented on Jul 5, 2023

    @melvin-bot

    Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new.

  10. melvin-bot commented on Jul 5, 2023

    @melvin-bot

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

  11. multijump commented on Jul 5, 2023

    @multijump
    Contributor

    It seems backend side issue.
    When split bill in this case, backend api returned error value.
    image
    image
    Error message was from api returns.
    So before make proposal, I need the confirmation from backend if this error message is normal case or not.
    Anyone can give this confirmation?

    Thanks.

  12. multijump commented on Jul 5, 2023

    @multijump
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Error occurs when user tries to split bill after starting a new chat with a new account

    What is the root cause of that problem?

    When split bill, calls SplitBillAndOpenReport api with split info(including accountID).

    1. When split bill with new account, didn't find correct accountIDs of participants if there is not any reports from participants which are gonna split bill.
    2. Called SplitBillAndOpenReport api with wrong accountIDs, then api returns error.
    3. This wrong accountID was from Onyx
    4. Where was from this wrong accountID?
      Generates an optimistic account ID for new users not yet saved in Onyx
      const optimisticAccountID = UserUtils.generateAccountID();

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

    When put the data to Onyx for personalDetails, must update to put correct accountID though they didn't establish connection before for accounts in room.
    And if searched account is not in room, it should be handled in backend.

    What alternative solutions did you explore? (Optional)

    Backend can search with login and should send the split bill to that account if there is an account.
    If there is not any account with login in DB, I think error is correct case.

  13. 23 remaining items

  14. melvin-bot commented on Jul 17, 2023

    @melvin-bot

    Triggered auto assignment to @yuwenmemon (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  15. zanyrenney commented on Jul 17, 2023

    @zanyrenney
    Contributor

    Did not mean to add overdue label.

  16. zanyrenney commented on Jul 20, 2023

    @zanyrenney
    Contributor

    hey @yuwenmemon have you had the chance to take a look at this one yet? thanks!

  17. melvin-bot commented on Jul 23, 2023

    @melvin-bot

    @yuwenmemon @eVoloshchak @zanyrenney this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

  18. zanyrenney commented on Jul 24, 2023

    @zanyrenney
    Contributor
  19. removed
    Help Wanted
    on Jul 26, 2023
  20. yuwenmemon commented on Jul 26, 2023

    @yuwenmemon
    Contributor

    I'm unable to reproduce this anymore - closing!

  21. Nathan-Mulugeta commented on Jul 31, 2023

    @Nathan-Mulugeta

    I was able to consistently reproduce this issue. I will attach a screen recording down below. Look at this slack conversation as well.

    Cc: @chiragsalian @yuwenmemon @zanyrenney

    2023-07-27_11_12_35.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineeringInternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions