-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2025-02-04] [$250] Expense - Edited amount for a paid request does not revert to paid amount when dismiss the error #54471
Comments
Triggered auto assignment to @bfitzexpensify ( |
Edited by proposal-police: This proposal was edited at 2024-12-23 19:30:42 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The amount in IOU details page does not revert to the original amount after closing the error message. It only reverts after refreshing the app. What is the root cause of that problem?We only update the pending field and error field of transactions in Lines 2992 to 3000 in 2458635
What changes do you think we should make in order to solve the problem?We should revert to original transaction data and only override the pending field and error field. Or we can simply revert to
Or
Lines 2992 to 3000 in 2458635
We can check if What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We must create a unit test for one of the update money request APIs, making the request fail. After that we need to verify the transaction data is reverted to the original value before the API is called. What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - Edited amount for a paid request does not revert to paid amount when dismissing the error What is the root cause of that problem?We are not returning the transaction amount figure back to the original amount and will take the figure from
So, we any clear the errors but we don't revert the transaction changes. App/src/libs/actions/Transaction.ts Lines 460 to 462 in 2458635
What changes do you think we should make in order to solve the problem?Create a new function for the We will revert the transaction values from the report's modified Expense action
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?Create a unit test for the new function to check if it can restore the previous values of the transaction even with different changes. What alternative solutions did you explore? (Optional)Let's update the |
Job added to Upwork: https://www.upwork.com/jobs/~021871573512679466358 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Triggered auto assignment to @tylerkaraszewski, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@hungvu193 Based on the PR mentioned in OP, the expected amount is reverted immediately after we get an error message. You also can see other patterns of the App like editing comments, and edit task title/description it also reverts immediately after the API fails. |
@tylerkaraszewski, please wait for the assignment until we clarify what is expected. |
I'm fine with both solutions: ![]() cc @tylerkaraszewski and @bfitzexpensify for the expected behavior here. |
@bfitzexpensify I think we need to update the expected to avoid confusion. As in #32898, the expected should be |
@bfitzexpensify Please help to take a look at this comment when you have time |
No update. |
How do I make this not overdue? Does @bfitzexpensify need to comment? |
Oh I need to comment, I'm still the owner of this issue. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @Tony-MK 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Hey @hungvu193, the PR is ready for review. |
@tylerkaraszewski I believe this isn't the correct expectation for this issue. Additionally, If we do this, we can have a case that is wrong like and this bug also happens if we edit other fields and the API fails.
@hungvu193 I don't have access to Slack so please help raise a thread to discuss with @bfitzexpensify and @tylerkaraszewski or other internal teams about the expected again. Also please help to post the video below. about the previous expected in #32898. Let's me know if you need more information, thanks. Screen.Recording.2025-01-03.at.14.33.08.mov |
@mkzie2 Appreciate your input, I will review it and keep you posted. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-8 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 2025-02-04. 🎊 For reference, here are some details about the assignees on this issue:
|
@hungvu193 @bfitzexpensify @hungvu193 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] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Test:
Do we agree 👍 or 👎 |
Payment summary: |
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.77-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The amount in IOU details page should revert to the original amount after closing the error message (as in PR #32898)
Actual Result:
The amount in IOU details page does not revert to the original amount after closing the error message. It only reverts after refreshing the app.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @bfitzexpensifyThe text was updated successfully, but these errors were encountered: