-
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-10-10] [$250] Expenses - Deleted Expense that was edited appears when user goes offline #49329
Comments
Triggered auto assignment to @mallenexpensify ( |
@mallenexpensify 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 |
Job added to Upwork: https://www.upwork.com/jobs/~021836153049228663209 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
👀 plz @aimane-chnaif . Can you confirm that you're able to reproduce? It appears I was but I ran into a couple issues an my flow was funky. 2024-09-17_14-14-22.mp4 |
reproduced on latest staging v9.0.37-3 bug.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleted Expense that was edited appears when user goes offline What is the root cause of that problem?The reason for this issue is that App/src/pages/home/report/ReportActionsList.tsx Lines 194 to 199 in 9160fa5
The reason
The warning I mentioned for that. What changes do you think we should make in order to solve the problem?We need the backend to update send and reponse or // ./src/libs/Middleware/SaveResponseInOnyx.ts#L8
const requestsToIgnoreLastUpdateID: string[] = [
WRITE_COMMANDS.OPEN_APP,
+ WRITE_COMMANDS.DELETE_MONEY_REQUEST,
...
]; POC
Screen.Recording.2024-09-22.at.15.37.25.mp4 |
@aimane-chnaif 👀 on @huult 's proposal above plz |
@huult thanks for the proposal.
This doesn't make sense to me. We're setting Lines 5944 to 5953 in a99cf94
|
I noticed that this bug only happens when edit date field. Not happening on other fields like description. |
Can you check this command? The API responds, but the data is not stored locally due to the reason I mentioned. You can add a log above this condition, and you will see. |
@huult please also check #49329 (comment). |
The root cause is quite similar to #44114 (comment) |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@jasperhuangg , can you confirm if you think this issue is BE? |
This comment was marked as outdated.
This comment was marked as outdated.
@jasperhuangg , When does the expense delete successfully on the server? I waited for 1 minute and disconnected the network, but the issue still occurred. |
@huult, I see; sorry for the misunderstanding. In that case, your alternative approach of adding the command to the ignore list should work! If the user intends to delete the money request, it doesn't seem like we need to wait for any requests to update fields in the money request. |
📣 @huult 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@mallenexpensify, @jasperhuangg, @aimane-chnaif Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
The PR for this issue is already open |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.43-6 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-10-10. 🎊 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:
|
Contributor: @huult paid $250 via Upwork @aimane-chnaif can you please accept the job and reply here once you have? Please fill out the BZ checklist above too, thx |
|
test case created @aimane-chnaif can you please accept the job and reply here once you have? |
@huult, @mallenexpensify, @jasperhuangg, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@aimane-chnaif paid, payment comment above updated. Thx |
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: 9.0.36-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Deleted expense doesn't appear
Actual Result:
Deleted expense re-appears greyed out and says "user owes" after going offline
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6606016_1726527694571.Screen_Recording_2024-09-16_at_5.54.04_PM.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @aimane-chnaifThe text was updated successfully, but these errors were encountered: