-
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
[$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. |
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: @hungvu193The text was updated successfully, but these errors were encountered: