Skip to content
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

[HOLD for payment 2023-07-21] [$1000] Web - Split bill with a new user displays 'undefined owes' on staging #22104

Closed
1 of 6 tasks
kbecciv opened this issue Jul 3, 2023 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@kbecciv
Copy link

kbecciv commented Jul 3, 2023

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. Go to staging dot on web chrome and login with User A
  2. Click on FAB icon and click on split bill
  3. (IMP step)- Now search for a new user that has NO Expensify account and split the bill with the user
  4. Notice that for a small period of time it displays 'undefined' owes on the report
  5. Follow the same steps on production , no such problem occurs

Expected Result:

Split bill with a new user should not display 'undefined'

Actual Result:

Split bill with a new user displays 'undefined owes'

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

error-2023-07-03_14.22.25.mp4
Recording.3376.mp4

Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688373739740659

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0162160db7d748962b
  • Upwork Job ID: 1676900194451750912
  • Last Price Increase: 2023-07-06
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Jul 3, 2023
@OSBotify
Copy link
Contributor

OSBotify commented Jul 3, 2023

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

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

@allroundexperts
Copy link
Contributor

allroundexperts commented Jul 3, 2023

Proposal

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

Split bill with new user displays undefined for user name when offline.

What is the root cause of that problem?

The root cause of this issue is that after migration from emails to account ids, we are not optimistically creating the user entry in the personalDetailsList object. Because of the missing entry, this condition returns undefined.

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

We should create an entry in the personalDetailsList object optimistically here or here.
Note: We can also add the optimistic object somewhere else in our flow. The above 2 points are just an example of where we can add it.

What alternative solutions did you explore? (Optional)

If we do not want to create an optimistic persona detail object, we can also update the getPersonalDetailsForAccountID function such that it searches for the account id in the IOU object.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Jul 3, 2023
@madmax330
Copy link
Contributor

Discussed here: https://expensify.slack.com/archives/C03TQ48KC/p1688391023413499?thread_ts=1688389934.788359&cid=C03TQ48KC

Since it is also happening in prod it's not a blocker.

@madmax330 madmax330 removed the DeployBlockerCash This issue or pull request should block deployment label Jul 3, 2023
@Julesssss
Copy link
Contributor

Thanks, removed it from the checklist 👍

@melvin-bot melvin-bot bot added the Overdue label Jul 5, 2023
@madmax330 madmax330 assigned Beamanator and unassigned madmax330 Jul 6, 2023
@melvin-bot melvin-bot bot removed the Overdue label Jul 6, 2023
@madmax330 madmax330 self-assigned this Jul 6, 2023
@madmax330
Copy link
Contributor

Passing off to @Beamanator since it's related to the accountID migrationl

@madmax330 madmax330 removed their assignment Jul 6, 2023
@Beamanator Beamanator added the External Added to denote the issue can be worked on by a contributor label Jul 6, 2023
@melvin-bot melvin-bot bot changed the title Web - Split bill with a new user displays 'undefined owes' on staging [$1000] Web - Split bill with a new user displays 'undefined owes' on staging Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0162160db7d748962b

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Triggered auto assignment to @CortneyOfstad (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

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

@Beamanator
Copy link
Contributor

Making external b/c it looks like this has to do with optimistic personal details - @narefyev91 looks like you're auto-assigned to review proposals! We already have 1 above it looks like 👍

@narefyev91
Copy link
Contributor

Making external b/c it looks like this has to do with optimistic personal details - @narefyev91 looks like you're auto-assigned to review proposals! We already have 1 above it looks like 👍

No problem at all

@MonilBhavsar
Copy link
Contributor

May be we can fix this auto assigner issue 👍 😄

@allroundexperts
Copy link
Contributor

@narefyev91 @allroundexperts just to be clear, if we create a new optimistic entry in Onyx we need to clean it up at some point, right? Maybe in successData or failureData of the API command(s)?

My understanding is that it will get overridden automatically by the backend response.

@Beamanator
Copy link
Contributor

AFAIK we don't ever send the optimistic accountID to the backend, because there's nothing we do with it there - if the account doesn't exist yet, we create it (which automatically assigns a new accountID in sequence) and send that updated data back in Onyx

@allroundexperts
Copy link
Contributor

AFAIK we don't ever send the optimistic accountID to the backend, because there's nothing we do with it there - if the account doesn't exist yet, we create it (which automatically assigns a new accountID in sequence) and send that updated data back in Onyx

Yes. We aren't sending that in this case as well. It will get overridden once the response comes from backend. We can fine tune this further in the PR though.

@Beamanator
Copy link
Contributor

Yeah we can fine-tune in the PR 👍 Let's just make sure to watch out for the optimistic data sticking around longer than it should 👍

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

📣 @allroundexperts 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

📣 @Priya! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

The BZ member will need to manually hire priya for the Reporter role. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future!

@allroundexperts
Copy link
Contributor

PR created!

@CortneyOfstad
Copy link
Contributor

@Beamanator and @allroundexperts — where are we at with this? Anything needed from my side? TIA!

@Beamanator
Copy link
Contributor

@CortneyOfstad looks like the PR is on staging! #22401 (comment)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 14, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - Split bill with a new user displays 'undefined owes' on staging [HOLD for payment 2023-07-21] [$1000] Web - Split bill with a new user displays 'undefined owes' on staging Jul 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 14, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.40-5 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-07-21. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 20, 2023
@CortneyOfstad
Copy link
Contributor

@priya-zha and @allroundexperts I've extended contracts your way — please let me know once you accept in Upwork, and I can get those paid ASAP. Thanks!

@allroundexperts
Copy link
Contributor

Hi @CortneyOfstad!

I'll be getting paid through the App.

Also, I THINK this might be eligible for bonus. Can you please do the calculations?

@CortneyOfstad
Copy link
Contributor

@allroundexperts You do get the bonus, and I'll cancel the contract in UpWork — thank you!

@CortneyOfstad
Copy link
Contributor

@priya-zha contract has been paid! Closing this out!

@anmurali
Copy link

Approved 1500 to Sibtain based on #22104 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

10 participants