-
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-07-26] [$250] Android - Task - Deleted task is shown briefly and then disappears from conversation page #44997
Comments
Triggered auto assignment to @VictoriaExpensify ( |
@VictoriaExpensify 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 |
We think that this bug might be related to #vip-vsp |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?When a task is deleted, we mark the parentReportAction's pendingAction as "UPDATE" Line 932 in 9dccffe
Here, if pendingAction is not "DELETE," we continue to show the deleted task until we receive the data from the backend App/src/pages/home/report/ReportActionsList.tsx Lines 200 to 208 in 4a3ecb3
What changes do you think we should make in order to solve the problem?Line 932 in 9dccffe
Setting pendingAction to "DELETE" to indicate that a deletion action is pending What alternative solutions did you explore? (Optional) |
Issue recreated. Agree this is a bug that belongs in VSP. |
Job added to Upwork: https://www.upwork.com/jobs/~01d0d653c8ad7776ae |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Deleted task is shown briefly and then disappears from conversation page What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
like we did when deleting track expense: Line 1593 in bd19803
or deleting expense: Line 5327 in bd19803
What alternative solutions did you explore? (Optional) |
Please re-state the problem that we are trying to solve in this issue.Deleted task is shown briefly and then disappears from conversation page What is the root cause of that problem?The root cause of this issue is that the pendingAction for a deleted task is always set to CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE, regardless of whether the task should be deleted. This results in the task being displayed until the backend confirms the deletion. Specifically, in App/src/libs/actions/Task.ts, the pendingAction is set to UPDATE, which leads to the following filtering conditions in App/src/pages/home/report/ReportActionsList.tsx not excluding the deleted task immediately: App/src/pages/home/report/ReportActionsList.tsx Lines 200 to 208 in 4a3ecb3
What changes do you think we should make in order to solve the problem?
reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE: Ensures that tasks with pending DELETE or UPDATE actions are excluded from the visible actions. video:- screen-capture.1.online-video-cutter.com.mp4 |
@cretadn22 Thank you for your proposal, your RCA is correct. However you missed a case where task report is still shown where it has some report actions in it. Your solution makes it disappear in optimistic data and appear again when backend data is received. |
@dominictb Thank you for your proposal, your RCA is correct and your are providing a correct solution |
@kaushiktd Thank you for your proposal, your RCA seems to focus on wrong area and provided a wrong solution |
We can go with @dominictb 's proposal C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@alitoshmatov can you please explain where it go wrong |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR #45279 is ready. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.9-5 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-07-26. 🎊 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:
|
|
@madmax330, @VictoriaExpensify, @alitoshmatov, @dominictb Whoops! This issue is 2 days overdue. Let's get this updated quick! |
|
Contributor: @dominictb paid $250 via Upwork Upwork job here! |
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: 9.0.5
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4704499
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Deleted task must not be shown briefly in conversation page
Actual Result:
Deleted task is shown briefly and then disappears from conversation page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6536169_1720462778895.screenrecorder-2024-07-08-20-58-12-710_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatovThe text was updated successfully, but these errors were encountered: