-
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
[Waiting on Checklist completion] [$500] IOU - When deleting a money request offline, the IOU skeleton changes the currency to $0.00 #29048
Comments
Triggered auto assignment to @twisterdotcom ( |
Job added to Upwork: https://www.upwork.com/jobs/~018493886c3c932b5c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOU skeleton changes the currency to default $ What is the root cause of that problem?When the money request is deleted all of its data is removed, when trying to find it in Onyx we will get an empty object transaction: {
key: ({action}) => `${ONYXKEYS.COLLECTION.TRANSACTION}${(action && action.originalMessage && action.originalMessage.IOUTransactionID) || 0}`,
}, And the to display the currency in the skeleton we use
What changes do you think we should make in order to solve the problem?We luckily still have the currency in the original message of the action that we can use a fall back when the transaction is no longer there. We can update the return CurrencyUtils.convertToDisplayString(TransactionUtils.getAmount(props.transaction), props.transaction.currency || (props.action && props.action.originalMessage && props.action.originalMessage.currency)); Extra findingsAs you can see the same issue would happen to the distance request display, we can refactor that part of the function too to use the fallback App/src/components/ReportActionItem/MoneyRequestPreview.js Lines 213 to 223 in 389d7b0
What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.When deleting a money request offline, the IOU skeleton changes Default value($0.00) What is the root cause of that problem?After deleting the request in offline mode, we delete
What changes do you think we should make in order to solve the problem?I think that we can create a special variable that will allow us to obtain information about the status of the request For this we can use
And when isDeleted will true we will call
And if we need cross-out text What alternative solutions did you explore? (Optional)If we need to zero amount and transmit currency
And delete |
Proposal What is the root cause of that problem? What changes do you think we should make in order to solve the problem? Extra findings What alternative solutions did you explore? (Optional) |
📣 @sadiamehreen! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Similar RCA to #27058 |
@twisterdotcom, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@twisterdotcom, @rushatgabhane Eep! 4 days overdue now. Issues have feelings too... |
@rushatgabhane let's have a review of these proposals when you can. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@twisterdotcom, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump @rushatgabhane |
C+ reviewed 🎀 👀 🎀 I like @ZhenjaHorbach's proposal to treat deleted request as a pending action #29048 (comment) |
📣 @ZhenjaHorbach 🎉 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 tomorrow |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.92-4 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-11-06. 🎊 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.
For reference, here are some details about the assignees on this issue:
|
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:
|
Payment summary: @rushatgabhane should request $500 via Manual Requests Waiting on Checklist from @rushatgabhane |
requested here - https://staging.new.expensify.com/r/7689756685280126 |
|
$500 payment approved for @rushatgabhane based on this comment. |
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:
Open https://staging.new.expensify.com/
Log in with any account
Click on the FAB button
Click on 'Request Money'
Choose 'Manual' and add an amount
Click on the 'Next' button
Select any user
Save money request
Repeat steps 3-8
Switch to offline mode
Delete the first created IOU
Expected Result:
When deleting a money request offline, the IOU skeleton should cross out the requested amount (or specify 0.00 but with the requested currency) and at the moment of going online delete the request
Actual Result:
When deleting a money request offline, the IOU skeleton changes the currency to $0.00
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.79-3
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
Bug6228474_1696661550430.Recording__452.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @rushatgabhaneThe text was updated successfully, but these errors were encountered: