Fix migrated unreported expense showing not found page - #77889
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🚧 @mollfpr has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
| // For track expenses without iouReport, get the selfDM report | ||
| if (isTrackExpense && selfDMReportID) { | ||
| // For track expenses or unreported transactions, get the selfDM report | ||
| if (selfDMReportID) { |
There was a problem hiding this comment.
For track expenses or
The comment doesn't match condition
…ated-unreported-expense
|
@situchan You need to have very old expense that doesn't have an IOU action. We already test the adhoc and supportal to the customer account here https://expensify.slack.com/archives/C07NMDKEFMH/p1765986698585519?thread_ts=1765913637.237579&cid=C07NMDKEFMH. |
|
@situchan I have updated the test step, you need to create the unreported legacy transaction first then view the transaction in the NewDot. Screen.Recording.Dec.19.2025.mp4 |
|
Thanks. So |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-23.at.7.29.41.PM.movAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariBefore: Screen.Recording.2025-12-23.at.6.33.40.PM.movAfter: Screen.Recording.2025-12-23.at.6.36.38.PM.movOffline: Screen.Recording.2025-12-23.at.6.46.23.PM.mov |
|
@madmax330 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/robertjchen in version: 9.2.87-0 🚀
|
|
@kavimuru Is the account has the selfDM report in NewDot? |
|
After sending a message in the self DM chat, the PR passes. 1766775113108.77889-Web.mp41766775113108.77889-A16.mp41766775113107.77889-iOS.mp4 |
|
@izarutskaya please also test without sending a message in the self DM chat on latest staging 9.2.87-4 |
|
The PR passes without sending a message 77889-Web_2.1.mp4 |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.87-7 🚀
|


Explanation of Change
When creating the optimistic IOU action and transaction thread for an unreported transaction, we check if it's a track expense to get the selfDM report. This is a failure for legacy/historical unreported expense because to check the track expense, we are using the transaction
reportActionwhich has not been created yet.Fixed Issues
$ #77880
PROPOSAL:
Tests
Precondition:
Creating an unreported legacy transaction:
expensidemoaccountScreen.Recording.Dec.19.2025.mp4
Test the unreported legacy transaction can be view in the NewDot:
Offline tests
QA Steps
Precondition:
Creating an unreported legacy transaction:
expensidemoaccountScreen.Recording.Dec.19.2025.mp4
Test the unreported legacy transaction can be view in the NewDot:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.Dec.17.2025.mp4