-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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-01-25] [$500] Deleted IOU offline disappears after going online if it has already been paid for by another user. #33158
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01fed1ad1953a51e12 |
Triggered auto assignment to @abekkala ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleted IOU offline disappears after going online if it has already been paid for by another user What is the root cause of that problem?In here we only clear errors in the reportAction the pendingAction still delete
What changes do you think we should make in order to solve the problem?We should remove the pendingAction when clear the error message too. Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${originalReportID}`, {
[reportAction.reportActionID]: {
errors: null,
pendingAction: null,
},
}); What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.If we close the request/transaction delete error message, the report action also disappears, but it should stay visible. What is the root cause of that problem?When we delete the request, we optimistically set the Lines 2274 to 2276 in 275bd03
This will show the strikethrough text while offline. If we pay the request from the requested user, the delete action will fail when we come back online. If fails, the error message will show with a close button, but the DELETE If the
So, once we press the close error message, the request view is hidden. What changes do you think we should make in order to solve the problem?We should clear the Lines 2443 to 2450 in 275bd03
|
Dupe of 26511 |
@abekkala hi, 26511 is different with this issue. In 26511, we create and delete the money request while offline, but the money request reappears after refresh. In this issue, we create the money request while online, delete it while offline, and come back online but the delete fails because we already paid it on a different device. When the delete fails, the money request is still displayed, but hidden as soon as we clear the error message. In short, I also check the PR there and it didn't include any of the proposed solution here. |
@abekkala hi, can you recheck this please? The issue still happens. |
Right, it looks like 2 different issues. |
@abekkala bump |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@hoangzinh is either proposal above sufficient? Do you have feedback for them or do we need different proposals? |
@namhihi237 @bernhardoj Thanks for your proposal. @bernhardoj's proposal has more details of RCA and his solution looks good to me. We also apply that approach in other action utils. Link to proposal #33158 (comment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
oop @abekkala @arosiclair could you help to re-add the |
PR is ready cc: @hoangzinh |
Current assignee @hoangzinh is eligible for the External assigner, not assigning anyone new. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-2 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-01-25. 🎊 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:
|
PAYMENTS FOR JAN 25
|
Regression Test ProposalI would like to borrow the Test steps of @bernhardoj in his PR here #34469
Do we agree 👍 or 👎 |
BugZero Checklist:
|
@bernhardoj @hoangzinh payments sent and contracts ended - thank you! 🎉 |
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.13-0
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Once the error has been removed, the primary device should display the paid IOU that failed to be removed.
Actual Result:
Deleted IOU offline disappears after going online if it has already been paid for by another user.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6314527_1702644676009.Recording__944.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: