-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Expense - Expense duplicated when deleting all expenses of a report and submitting new one. #57304
Comments
Triggered auto assignment to @isabelastisser ( |
Job added to Upwork: https://www.upwork.com/jobs/~021894066689236146219 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense duplicated when deleting all expenses of a report and submitting new one. What is the root cause of that problem?Store is not updated after deleting expenses What changes do you think we should make in order to solve the problem?We should check and fix the store update after deleting/creating/updating expenses What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional) |
@Ollyws can you pls review the proposal? thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.After submitting an expense to a workspace after deleting a report containing two expenses, the report appears duplicated in the workspace chat. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?Modify the function
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
What alternative solutions did you explore? (Optional)NA |
I can't reproduce this, when I delete the final expense the expense report is removed too. Also, it seemed in the bug report the real problem is the fact that we are left with an empty expense report reading $0.00. |
@Ollyws Yes I just pulled latest from main and reproduced: Screen.Recording.2025-02-27.at.10.49.45.PM.mov |
@OmarKoueifi I'm a little confused about your proposal, you propose to modify |
@Ollyws Sorry for the confusion! I'll try to explain better. After deleting all expenses, when creating a new expense, It looks like the backend is creating a new report, but in the UI, we end up displaying two reports:
I confirmed this using Redux DevTools, where I can see the deleted report still present with no values, while the new one contains the actual data. By adding a check for deleted reports in Let me know if anything is still unclear, I'm happy to clarify further! Screen.Recording.2025-02-28.at.12.14.44.PM.mov |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@Ollyws, can you please follow up? Thanks! |
@Ollyws Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Will have a deeper look into this one today. |
Ah thanks for the explanation, @OmarKoueifi's proposal LGTM. |
Triggered auto assignment to @grgia, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @OmarKoueifi 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
assigned! |
Thank you! I should have a PR by Monday morning |
Not overdue, waiting for PR. |
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.1.4-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome / Windows 10 - Chrome
App Component: Money Requests
Action Performed:
Prerequisite: Delay submission and approvals disabled.
Expected Result:
Expense submitted to workspace should only be displayed once, after deleting the previously submitted expenses.
Actual Result:
Report is displayed duplicated on workspace chat, when expense is submitted after deleting a report with two expenses.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6750952_1740241191211.Dup.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: