refactor: remove managerID from SearchTransaction and use managerID of report instead of that#74422
Conversation
…f report instead of that
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 11 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-07.at.01.46.48.movScreen.Recording.2025-11-07.at.02.02.01.mp4Android: mWeb ChromeScreen.Recording.2025-11-07.at.01.46.48.mp4iOS: HybridAppScreen.Recording.2025-11-07.at.02.07.19.mp4iOS: mWeb SafariScreen.Recording.2025-11-07.at.01.47.52.mp4MacOS: Chrome / SafariScreen.Recording.2025-11-07.at.01.44.13.mp4MacOS: DesktopScreen.Recording.2025-11-07.at.01.45.23.mp4 |
|
I’ve verified the Components and Routes affected by this change set Primary Components:
Routes:
|
|
Currently, the saved-search feature crashes, but this also happens on the latest main, so it’s not caused by this PR. The change set LGTM, so I think we can go ahead with this PR. v9.2.45-4 DevelopScreen.Recording.2025-11-07.at.02.04.33.mp4 |
|
I think this broke the IOU to field. User A requested $14 and that shows correctly but I requested $1 and it showing the incorrect
I think this #73957 (comment) may fix this |
|
Or maybe not, the IOU report action could fix the From column but not the To |
|
hmm we can revert this PR then and figure out a better solution |
|
Revert here #74516 |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.2.46-0 🚀
|
I think for this one, we can check if the transaction amount is negative and the reportType is IOU, then use the ownerAccountID of the report instead of managerID of the report. cc: @s77rt @luacmartins App/src/libs/TransactionPreviewUtils.ts Lines 57 to 74 in 47dc636 |
For this one, i tried to search if we can use any other field to distinguish between this type of transaction/report and any normal transaction/report, but couldn't find any field. The only difference i could find is that the reportName in this case is IOU and for other reports, the reportName is generally someText followed by ID e.g. Expense Report #4194933920965627 |
|
@Burhan-Rashid for this, we usually use the IOU action |
|
@luacmartins could you please check this approach too #74422 (comment). If this approach is correct for this case. |
|
Yea, I think that approach should work. And yes, please open a PR to fix those. |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.2.46-3 🚀
|
PR is ready for review : #74690 @luacmartins @suneox |




Explanation of Change
Fixed Issues
$#73958
PROPOSAL:
Tests
Offline tests
Same as tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
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
MacOS: Desktop