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 2024-04-25] [$500] IOU - Missing green checkmark next to Total amount after paying request offline #39357

Closed
6 tasks done
izarutskaya opened this issue Apr 1, 2024 · 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 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Apr 1, 2024

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.58-4
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4465715
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to any DM where there is unsettled IOU.
  3. Click on the IOU preview.
  4. Go offline.
  5. Click Pay elsewehre.

Expected Result:

A green checkmark will be present next to Total amount after paying the amount (production behavior).

Actual Result:

Green checkmark is not present next to Total amount after paying the amount, but the checkmark is present in IOU preview.

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Bug6434183_1711974777973.bandicam_2024-04-01_20-28-41-567.mp4

Bug6434183_1711974777959!bandicam_2024-04-01_20-28-54-968

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f5527691d839335a
  • Upwork Job ID: 1775053032402595840
  • Last Price Increase: 2024-04-02
  • Automatic offers:
    • alitoshmatov | Reviewer | 0
    • bernhardoj | Contributor | 0
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 1, 2024
Copy link

melvin-bot bot commented Apr 1, 2024

Triggered auto assignment to @lakchote (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Apr 1, 2024

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

Copy link
Contributor

github-actions bot commented Apr 1, 2024

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

@izarutskaya
Copy link
Author

@johncschuster I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@izarutskaya
Copy link
Author

Production

bandicam.2024-04-01.20-33-07-003.mp4

@marcaaron
Copy link
Contributor

@lakchote is offline. This looks to me to be pretty minor so I am removing the blocker.

@marcaaron marcaaron added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Apr 1, 2024
@bernhardoj
Copy link
Contributor

Proposal

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

The green check mark next to total amount doesn't show after paying a money request.

What is the root cause of that problem?

The condition for the check mark to show is that the request is settled and not partially paid.

{isSettled && !isPartiallyPaid && (
<View style={[styles.defaultCheckmarkWrapper, styles.mh2]}>
<Icon
src={Expensicons.Checkmark}
fill={theme.success}
/>
</View>
)}

The partial paid condition checks for the pending fields of partial,

const isPartiallyPaid = Boolean(report?.pendingFields?.partial);

which is added conditionally whether the pay is full or not.

partial: full ? null : CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE,

However, we always pass full as false when paying a request,

if (ReportUtils.hasHeldExpenses(moneyRequestReport.reportID)) {
setIsHoldMenuVisible(true);
} else if (chatReport) {
IOU.payMoneyRequest(type, chatReport, moneyRequestReport, false);
}

even though we are paying the full amount (no hold request).

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

Pass the full param as true, or leave it empty because the default value is true, just like we did for approval.

const confirmApproval = () => {
setRequestType('approve');
if (ReportUtils.hasHeldExpenses(moneyRequestReport.reportID)) {
setIsHoldMenuVisible(true);
} else {
IOU.approveMoneyRequest(moneyRequestReport, true);
}
};

@lakchote lakchote added the External Added to denote the issue can be worked on by a contributor label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01f5527691d839335a

@melvin-bot melvin-bot bot changed the title IOU - Missing green checkmark next to Total amount after paying request offline [$500] IOU - Missing green checkmark next to Total amount after paying request offline Apr 2, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

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

@lakchote
Copy link
Contributor

lakchote commented Apr 2, 2024

@alitoshmatov please review proposals when you can. There's already one from @bernhardoj.

Thank you!

@alitoshmatov
Copy link
Contributor

@bernhardoj Thank you for your proposal, your RCA makes sense and solution works.
We can go with @bernhardoj 's proposal

C+ reviewed 🎀 👀 🎀

Copy link

melvin-bot bot commented Apr 2, 2024

Current assignee @lakchote is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 3, 2024
Copy link

melvin-bot bot commented Apr 3, 2024

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

Offer link
Upwork job

@lakchote
Copy link
Contributor

lakchote commented Apr 3, 2024

@bernhardoj's proposal LGTM to me too 👍

Copy link

melvin-bot bot commented Apr 3, 2024

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

Offer link
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 📖

@bernhardoj
Copy link
Contributor

PR is ready

cc: @alitoshmatov

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 18, 2024
@melvin-bot melvin-bot bot changed the title [$500] IOU - Missing green checkmark next to Total amount after paying request offline [HOLD for payment 2024-04-25] [$500] IOU - Missing green checkmark next to Total amount after paying request offline Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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 2024-04-25. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Apr 18, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@alitoshmatov] The PR that introduced the bug has been identified. Link to the PR:
  • [@alitoshmatov] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@alitoshmatov] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@alitoshmatov] Determine if we should create a regression test for this bug.
  • [@alitoshmatov] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@johncschuster] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Apr 24, 2024
@johncschuster
Copy link
Contributor

@alitoshmatov, can you please complete the BZ Checklist above?

@melvin-bot melvin-bot bot removed the Overdue label Apr 26, 2024
@johncschuster
Copy link
Contributor

Payment has been issued!

@alitoshmatov
Copy link
Contributor

@melvin-bot melvin-bot bot added the Overdue label May 1, 2024
@johncschuster
Copy link
Contributor

Thank you!

@melvin-bot melvin-bot bot removed the Overdue label May 1, 2024
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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants