Closed IuliiaHerets closed 2 months ago
Triggered auto assignment to @nkuoch (DeployBlockerCash
), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.
Triggered auto assignment to @alexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
:wave: 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:
This comes from https://github.com/Expensify/App/pull/48055
The expense is not deleted.
For now, we only get the navigate-back URL in deleteTransaction
function
Then here if navigateBackToAfterDelete .current
is empty here, we only dismiss the modal without calling the delete expense API.
https://github.com/Expensify/App/blob/ef6a64c2f5a193babdb2f14a172aea4748502033/src/pages/ReportDetailsPage.tsx#L813-L815
We should move the logic to delete the expense outside the if-else statement above
if (!navigateBackToAfterDelete.current) {
Navigation.dismissModal();
} else {
ReportUtils.navigateBackAfterDeleteTransaction(navigateBackToAfterDelete.current, true);
}
setTimeout(() => {
if (ReportActionsUtils.isTrackExpenseAction(requestParentReportAction)) {
return;
};
IOU.deleteMoneyRequest(iouTransactionID, requestParentReportAction, isSingleTransactionView);
}, CONST.ANIMATED_TRANSITION);
Or we can also call the delete API here without setTimeout
if (!navigateBackToAfterDelete.current) {
if (!ReportActionsUtils.isTrackExpenseAction(requestParentReportAction)) {
IOU.deleteMoneyRequest(iouTransactionID, requestParentReportAction, isSingleTransactionView);
}
Navigation.dismissModal();
}
@nkdengineer are you available to work on a fix now?
@luacmartins sure.
cc @daledah @alitoshmatov since this is a regression from https://github.com/Expensify/App/pull/48055
@nkdengineer all yours
⚠️ Looks like this issue was linked to a Deploy Blocker here
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.
@luacmartins we have another regression from https://github.com/Expensify/App/pull/48055
Ok, we have potentially 3 regressions from that PR. I'm just gonna revert it instead of patching multiple things. @nkdengineer please pause working on your PR.
This is fixed on staging. Closing.
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.33-1 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4952443 Email or phone of affected tester (no customers): testpayment935@gmail.com Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The expense should be deleted.
Actual Result:
The expense is not deleted.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/3bad72e6-3e75-4b74-bbcb-8e86bbceaafb
View all open jobs on GitHub