You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense #63361
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.1.56-1 Reproducible in staging?: Yes Reproducible in production?: Yes 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):applausetester+020630kh@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.4 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Workspace has per diem rates.
Account has self DM.
Go to staging.new.expensify.com
Go to workspace chat.
Click + > Create expense > Per diem.
Create a per diem expense.
Go to self DM.
Click + > Create expense > Manual.
Enter amount.
Click Next.
Expected Result:
The confirmation page will be a manual expense confirmation page.
Actual Result:
The confirmation page is per diem expense confirmation page.
Please re-state the problem that we are trying to solve in this issue.
After submitting per diem expense in WS chat, starting a manual expense flow on self DM shows per diem confirm page.
What is the root cause of that problem?
When we create a per diem request on a WS, the selected tab is now per-diem. When we open the money request from self DM, money request initialization is called twice.
What changes do you think we should make in order to solve the problem?
We need to check if per diem request is available, if not, then don't use the selected tab and instead fall back to default or undefined (using undefined works best after this PR is merged).
changed the title [-]Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/-][+][$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/+]on Jun 3, 2025
changed the title [-][Due for payment 2025-06-13] [$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/-][+][Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/+]on Jun 9, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.62-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@dukenv0307@CortneyOfstad / @flaviadefaria@dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jun 3, 2025
Triggered auto assignment to @CortneyOfstad (
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.bernhardoj commentedon Jun 3, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
After submitting per diem expense in WS chat, starting a manual expense flow on self DM shows per diem confirm page.
What is the root cause of that problem?
When we create a per diem request on a WS, the selected tab is now per-diem. When we open the money request from self DM, money request initialization is called twice.
App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 83 to 106 in 1510866
First is from the tab navigator because per diem is not available, so it's triggered with the new tab, which is manual, so this one is correct.
App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 161 to 164 in 1510866
Second is from the useFocusEffect which initialize the iou type from
transactionRequestType.App/src/pages/iou/request/IOURequestStartPage.tsx
Line 104 in 1510866
Since it's a new flow, it will fallback to the selected tab, and in this case, it's per-diem. So, it's wrongly initialized with the wrong type.
App/src/pages/iou/request/IOURequestStartPage.tsx
Lines 68 to 71 in 1510866
What changes do you think we should make in order to solve the problem?
We need to check if per diem request is available, if not, then don't use the selected tab and instead fall back to default or undefined (using undefined works best after this PR is merged).
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
melvin-bot commentedon Jun 3, 2025
Triggered auto assignment to @flaviadefaria (
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.[-]Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/-][+][$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/+]melvin-bot commentedon Jun 3, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021929972201414841468
24 remaining items
[-][Due for payment 2025-06-13] [$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/-][+][Due for payment 2025-06-16] [Due for payment 2025-06-13] [$250] Track expense - After submitting per diem expense, confirm page in self DM also becomes per diem expense[/+]melvin-bot commentedon Jun 9, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.62-0 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 2025-06-16. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 9, 2025
@dukenv0307 @CortneyOfstad / @flaviadefaria @dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
CortneyOfstad commentedon Jun 9, 2025
Thanks for holding down the fort @flaviadefaria!
CortneyOfstad commentedon Jun 13, 2025
@dukenv0307 — can you complete the checklist before payment date? This will help make sure there is no delay in issuing the payment summary. Thanks!
dukenv0307 commentedon Jun 16, 2025
I completed it here: #63361 (comment)
melvin-bot commentedon Jun 16, 2025
Payment Summary
Upwork Job
BugZero Checklist (@CortneyOfstad)
CortneyOfstad commentedon Jun 16, 2025
Payment Summary
@bernhardoj — to be paid $250 via NewDot
@dukenv0307 — to be paid $250 via NewDot
Regression Test
https://github.com/Expensify/Expensify/issues/513957
bernhardoj commentedon Jun 17, 2025
Requested in ND.
JmillsExpensify commentedon Jun 26, 2025
$250 approved for @dukenv0307
JmillsExpensify commentedon Jul 2, 2025
$250 approved for @bernhardoj