-
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 #26498][$1000] Chat - It's not here" displayed when click on back bin after all request money was deleted #24490
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @grgia ( |
Proposal Please 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? diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js
index 5660bc31a8..65357e22a8 100644
--- a/src/libs/actions/IOU.js
+++ b/src/libs/actions/IOU.js
@@ -965,14 +965,21 @@ function deleteMoneyRequest(transactionID, reportAction, isSingleTransactionView
if (isSingleTransactionView && shouldDeleteTransactionThread && !shouldDeleteIOUReport) {
// Pop the deleted report screen before navigating. This prevents navigating to the Concierge chat due to the missing report.
Navigation.goBack();
- Navigation.navigate(ROUTES.getReportRoute(iouReport.reportID));
+ if (!Navigation.isActiveRoute(ROUTES.getReportRoute(iouReport.reportID))) {
+ Navigation.navigate(ROUTES.getReportRoute(iouReport.reportID));
+ }
return;
}
if (shouldDeleteIOUReport) {
// Pop the deleted report screen before navigating. This prevents navigating to the Concierge chat due to the missing report.
Navigation.goBack();
- Navigation.navigate(ROUTES.getReportRoute(iouReport.chatReportID));
+ if (Navigation.isActiveRoute(ROUTES.getReportRoute(iouReport.reportID))) {
+ Navigation.goBack();
+ }
+ if (!Navigation.isActiveRoute(ROUTES.getReportRoute(iouReport.chatReportID))) {
+ Navigation.navigate(ROUTES.getReportRoute(iouReport.chatReportID));
+ }
}
} What alternative solutions did you explore? (Optional) 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. |
This is not a blocker. It's been the case since we introduced the feature. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The navigation is wrong when we delete iou transaction What is the root cause of that problem?When we delete a transaction in single transaction view we navigate to the iou report and return but we should not return if the iou is also deleted because we need to navigate to the chat report What changes do you think we should make in order to solve the problem?When we delete a transaction from the transaction view we should remove the test on shouldDeleteIOUReport because we have to goBack in every cases, and we need to remove the return so that it goes back to the chat report if we delete the iou report.
Note: we add the fallback route so that it also works when we deeplink but the goback with fallback route doesn't work at the moment for reports and this will only work when this PR got merged: #26498 |
@grgia 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
@luacmartins is this a bug or something that is going to be cleaned up internally? Or can I make this external |
You can make this external |
Triggered auto assignment to @adelekennedy ( |
Job added to Upwork: https://www.upwork.com/jobs/~01c14c4b05f0985c77 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @sophiepintoraetz ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
on hold still |
still holding |
@mollfpr is this still on hold? |
@adelekennedy Yes! |
deprioritizing for the hold |
I believe this is still on hold! |
@mollfpr it looks like the connected PR was deployed a bit ago - are we still on hold here? |
I can't reproduce the issue on |
hmm - I also can't reproduce @lanitochka17 will you see if you're still running into this? |
I still can't reproduce on IOS, closing |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Precondition: user should be logged in
Expected Result:
User should be navigated back to the DM
Actual Result:
Step 8: has navigated to the same page
Step 10: user has navigated to the "It's not here" page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.53.1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6162479_screen-20230812-175610.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: