-
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-24] [$250] Expense - Inconsistency in dismissing report details RHP when deleting expense with comments #44336
Comments
Triggered auto assignment to @jasperhuangg ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
@jasperhuangg 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/~0129ce6e9afec28c89 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistency in dismissing report details RHP when deleting expense with comments What is the root cause of that problem?On this line, the shouldDeleteTransactionThread become false because we add some comments on the transaction thread Line 5290 in 9ee8806
Because of shouldDeleteTransactionThread is false none of this condition executed Lines 5571 to 5579 in 9ee8806
Thats why navigateBackToAfterDelete.current is null on this case App/src/pages/ReportDetailsPage.tsx Line 554 in 9ee8806
Thats make after deletion it not navigate back to the transaction thread What changes do you think we should make in order to solve the problem?Add another condition on deleteMoneyRequest function on IOU.ts to return the transaction thread route
So it will make it consistent to dismiss the report details RHP Proof What alternative solutions did you explore? (Optional)N/A |
@nyomanjyotisa Where are you suggesting to make the change? In |
ProposalPlease re-state the problem that we are trying to solve in this issue.Inconsistency of behavior when deleting an expense with comments from report details page. What is the root cause of that problem?When we submit a single expense, open the expense report, and add some comments, deleting the expense will also delete the transaction thread. If the transaction thread is going to be deleted, then it will return the route to the expense report, Lines 5571 to 5574 in 621e8fc
which we use here, thus the details page is closed (or replaced to be specific): App/src/pages/ReportDetailsPage.tsx Lines 632 to 637 in 621e8fc
However, that shouldn't happen. If we see this condition once again, Lines 5571 to 5574 in 621e8fc
we can notice that App/src/pages/ReportDetailsPage.tsx Line 124 in 621e8fc
What changes do you think we should make in order to solve the problem?Pass App/src/pages/ReportDetailsPage.tsx Lines 551 to 555 in 621e8fc
If we want to close the RHP when deleting the expense, then we should call |
@rojiphil in |
Awaiting more clarity on @bernhardoj proposal before concluding on this. |
Current assignee @jasperhuangg is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
@rojiphil what about my proposal |
@bernhardoj Sorry. I missed mentioning feedback about your proposal. |
The current behavior is:
By passing Using the selected solution will cause a double transaction thread in the nav stack. Screen.Recording.2024-06-25.at.18.27.31.mov |
The expected result actually says either close or not close, but they should be the same. It makes sense that we close the details page when the expense report detail is deleted too because the report is deleted so nothing to show, but I don't see the reason yet why we want to close it when the report is not deleted (we only delete the transaction). |
Well I think it's debatable as it may not be required to show the Report details page on deletion of the expense. Let's see what the @Expensify/design team thinks. 44336-for-feedback.mp4 |
Hmm, curious for what the other designers think, but it feels a little weird to me to keep the RHP open. |
Agree, I would think we would close the RHP once the delete action is taken. |
Thanks for the confirmation! PR is ready cc: @rojiphil |
+1 to what Danny and Shawn said |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
^ Issue isn't actually a deploy blocker because the expected behavior of the integration test has changed. I'm leaving that issue open to see if we need to update the integration test. Otherwise everyone involved here can ignore! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-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 2024-07-24. 🎊 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:
|
@rojiphil - please accept the offer in Upwork so that we can finalize payments. @bernhardoj - Are you paid via Upwork still or should this be a manual request in NewDot? |
@lschurr Accepted offer. Thanks. |
@lschurr I'll request in NewDot. Thanks! EDIT: Requested in ND. |
Payment summary:
|
$250 approved for @bernhardoj |
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.1-10
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When deleting expense with comments in the combined report or transaction thread, the behavior of report details RHP (close or not close) should be the same
Actual Result:
In Step 5, when deleting expense with comments in the combined report, report details RHP closes
In Step 10, when deleting expense with comments in the transaction thread, report details RHP does not close
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6523369_1719259702238.20240625_040146.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @lschurrThe text was updated successfully, but these errors were encountered: