-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-11-18] [$250] Hybrid iOS app –IOU –Approval button is missing after payment of the report with hold expense #50932
Comments
Triggered auto assignment to @sonialiap ( |
@sonialiap FYI 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Hybrid iOS app –IOU –Approval button is missing after payment of the report with hold expense What is the root cause of that problem?Right here we check if the unheld total amount is not equal to 0 then we will show the approve button Lines 6990 to 6992 in 66cf824
Since we hold the expense the unheld total amount become 0 which will not show the approve button What changes do you think we should make in order to solve the problem?We should remove the Lines 6990 to 6992 in 66cf824
|
@sonialiap Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~021848434780732463293 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issueApproval button is missing after payment of a report with two expenses, one on hold and the other not, once Approving the expense that's not on hold -> the Approve button is missing for the held expense once Submitted. What is the root cause of that problem?
This is what is causing our issue because the logic added by the above mentioned PR is deliberately hiding What changes do you think we should make in order to solve the problem?Given the RCA, we cannot simply remove the logic that the above mentioned PR added because it would revert the fix for which the logic was added as fix for this issue:
Here's what only removing the mentioned logic would look like for the other issue vs how what I'm proposing would look:
Therefore here's my proposal:
Lines 6991 to 6993 in 179d0f0
let isTransactionBeingScanned = false;
const reportTransactions = TransactionUtils.getAllReportTransactions(iouReport?.reportID);
for (const transaction of reportTransactions) {
const hasReceipt = TransactionUtils.hasReceipt(transaction);
const isReceiptBeingScanned = TransactionUtils.isReceiptBeingScanned(transaction);
// If a transaction has receipt (scan) and its receipt is being scanned, flag it
if (hasReceipt && isReceiptBeingScanned) {
isTransactionBeingScanned = true;
}
}
return isCurrentUserManager && !isOpenExpenseReport && !isApproved && !iouSettled && !isArchivedReport && !isTransactionBeingScanned; This ensures we don't show |
@ikevin127's proposal LGTM! I agree that we can't just remove the 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hi guys, I just want to note that this PR was just pushed to production few hours ago and the issue was opened a few days ago, so maybe it has to do with something else I think..., also are not we supposed to unhold the expense before approving or paying? thanks |
📣 @M00rish! 📣
|
@marcochavezf Edit: They are also right that their PR got merged on staging 4 days ago whereas this issue was opened 6 days ago so it could not be a regression of their PR - but the solution I proposed and was selected by C+ keeps the other PRs functionality while fixing this issue so I guess we're good to go here ? More context in #48590 (comment) (the other issue) which introduced the logic which I propose to change. |
@ikevin127 I think the RCA in your proposal goes back to #49910 since there they optimistically added Lines 6527 to 6533 in d82a253
Is it possible to reproduce without the changes in #50817? I'm wondering if the RCA might go a bit deeper. |
@marcochavezf I think we're good to proceed with @ikevin127's proposal still. |
Ok sounds good, thanks for the resolution. Assigning @ikevin127 🚀 |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR will be ready for review in ~ 1 hour. |
♻️ Status update: Currently awaiting @marcochavezf's input on the PR to determine whether we're going to merge or not. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.59-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 2024-11-18. 🎊 For reference, here are some details about the assignees on this issue:
|
@jjcoffee / @ikevin127 @sonialiap The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
cc @sonialiap for visibility as this was due on 18th |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalPrecondition:
Test:
Do we agree 👍 or 👎 |
Payment summary:
I was OOO on the 18th |
@sonialiap Checklist complete! 🙏 |
Thanks Joel! Payment completed |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.49-0
Reproducible in staging?: N
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
Issue was repro when executing this PR: #49910
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The approval button should load after payment of the report with hold expense
Actual Result:
The approval button is missing after payment of the report with hold expense
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6636810_1729099904332.Ap.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @sonialiapThe text was updated successfully, but these errors were encountered: