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-08-10] [HOLD for payment 2023-08-08] IOU - When a new IOU is opened, the sum of the previous IOU is displayed in the modal window #23973

Closed
6 tasks done
lanitochka17 opened this issue Aug 1, 2023 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 1, 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:

Preconditions:
Start creating an IOU, but close the modal window at the moment you select a contact

  1. Open https://staging.new.expensify.com/

  2. Click on the "Global action" button (Big green plus button in LHN)

  3. Click on "Request money"

Expected Result:

The amount of the previous IOU should not be saved when opening a new IOU

Actual Result:

When opening a new IOU in the modal window, the amount of the previous uncompleted IOU has already been entered

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.48.0

Reproducible in staging?: Yes

Reproducible in production?: No

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

Bug6148717_Recording_Regression_23945_All.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Tam / @Natnael-Guchima

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690830970030189?thread_ts=1690829632.233769&cid=C049HHMV9SM

View all open jobs on GitHub

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

@OSBotify
Copy link
Contributor

OSBotify commented Aug 1, 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.

@marcaaron
Copy link
Contributor

No idea which PR might have introduced this. Nothing obvious stands out. I'd maybe check to see if the recent Onyx changes have something to do with it first.

@ahmdshrif
Copy link
Contributor

I can't repo this on main .. but it's repo in staging. looks like there is a PR fixed it.

Screen.Recording.2023-08-01.at.3.34.57.PM.mov

@shubham1206agra
Copy link
Contributor

No idea which PR might have introduced this. Nothing obvious stands out. I'd maybe check to see if the recent Onyx changes have something to do with it first.

This PR #23749 introduces the issue.

@shubham1206agra
Copy link
Contributor

Proposal

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

IOU - When a new IOU is opened, the sum of the previous IOU is displayed in the modal window

What is the root cause of that problem?

As I have discussed with @hannojg on slack. This issue #23749 creates read faster than writes, due to this,

function startMoneyRequest(iouType, reportID = '') {

depends on
function resetMoneyRequestInfo(id = '') {
Onyx.merge(ONYXKEYS.IOU, {
id,
amount: 0,
currency: lodashGet(currentUserPersonalDetails, 'localCurrencyCode', CONST.CURRENCY.USD),
comment: '',
participants: [],
});
}
.

As Onyx.update is slow, at MoneyRequestAmountPage older values populate the page due to read cached behaviour.

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

Since Onyx.update returns a promise, we can chain

Navigation.navigate(ROUTES.getMoneyRequestRoute(iouType, reportID));

under a .then so we make sure that MoneyRequestAmountPage opens with latest values.

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot melvin-bot bot added Daily KSv2 and removed Hourly KSv2 labels Aug 1, 2023
@hannojg
Copy link
Contributor

hannojg commented Aug 1, 2023

The proposal looks valid to me, and fixes the issue, yes!

@hannojg
Copy link
Contributor

hannojg commented Aug 1, 2023

We will revert the PR causing the regression and make a separate PR that will include all the fixes. Your proposal will be incorporated in that PR.
Not sure how we handle compensation in that case (cc @Beamanator as we were talking about this) ?

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@Beamanator
Copy link
Contributor

@hannojg yeah good question, I feel like we should collapse all of these issues into 1 😅 I think it's fair to compensate if we use their solution 👍

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@Beamanator
Copy link
Contributor

Should be fixed now, as of #24003

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production labels Aug 1, 2023
@melvin-bot melvin-bot bot changed the title IOU - When a new IOU is opened, the sum of the previous IOU is displayed in the modal window [HOLD for payment 2023-08-08] IOU - When a new IOU is opened, the sum of the previous IOU is displayed in the modal window Aug 1, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.48-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-08-08. 🎊

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

hannojg added a commit to margelo/expensify-app-fork that referenced this issue Aug 2, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Aug 3, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-08-08] IOU - When a new IOU is opened, the sum of the previous IOU is displayed in the modal window [HOLD for payment 2023-08-10] [HOLD for payment 2023-08-08] IOU - When a new IOU is opened, the sum of the previous IOU is displayed in the modal window Aug 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.49-3 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-08-10. 🎊

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 Reviewing Has a PR in review Weekly KSv2 Daily KSv2 and removed Weekly KSv2 labels Aug 7, 2023
@Natnael-Guchima
Copy link

A gentle bump for reporting payment @Beamanator 🙂

@Beamanator
Copy link
Contributor

@marcaaron can you help get a BZ assigned to sort out payment? 🙏

@marcaaron marcaaron added the Bug Something is broken. Auto assigns a BugZero manager. label Aug 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 14, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 14, 2023

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

@marcaaron
Copy link
Contributor

@slafortune can you help with #23973 (comment) 🙏

@slafortune
Copy link
Contributor

External issue reporter - @Natnael-Guchima $250 - OFFER sent
Contributor that fixed the issue - NA
Contributor+ that helped on the issue and/or PR - NA

@Natnael-Guchima
Copy link

Accepted the offer. Thanks @slafortune

@situchan situchan mentioned this issue Aug 18, 2023
59 tasks
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 Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants