[2] Remove openReport calls from the merge transaction flows - Part 1#74307
Conversation
|
Tested again: Screen.Recording.2025-11-05.at.17.47.44.mov |
|
@dominictb @youssef-lr, there was a DB from our previous PR #74141. After investigation, I found that when merging transactions in the same report, we will auto-select |
|
@dominictb 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] |
|
PR is ready for review again |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
44e3b33 to
2a8e30a
Compare
|
PR doesn’t have any product considerations. Removing the tag and unsubscribing myself |
|
What's the ETA on review here? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-11-18.at.02.07.46-compressed.movAndroid: mWeb ChromeScreen.Recording.2025-11-18.at.02.10.26-compressed.moviOS: HybridAppScreen.Recording.2025-11-10.at.22.30.11.moviOS: mWeb SafariScreen.Recording.2025-11-10.at.22.33.32.mov |
|
@dominictb I'm unable to reproduce that bug. Can you share a recording and reproduce steps? Screen.Recording.2025-11-11.at.17.13.14.mov |
|
Bump @dominictb on recording and the steps to reproduce the bug. |
|
I can no longer reproduce the bug even after clearing cache. Checking the code I think 1 feasible scenario is that |
|
Hey team. Can we put this PR on hold on this Merge distance expenses PR? They touched the same code lines. That's why it caused conflicts in this PR. Merge distance expenses has already been deployed to staging and is awaiting QA, but it may still be reverted if it causes any DB issues. Hopefully, it will be deployed to production soon—once that happens, I’ll resolve the conflicts in this PR. Probably today or tomorrow. |
|
@dominictb I resolved conflicts |
|
Is this ready for re-review now? |
|
Yes, @trjExpensify |
|
Oh hm, why did the pr reviewer checklist fail here? |
It looks like PR checklist has just been updated. @dominictb can you try to submit PR checklist again? |
|
✋ 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/youssef-lr in version: 9.2.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.2.64-5 🚀
|


Explanation of Change
During Merge Transaction PRs, we need to workaround by triggering openReport API calls to get report data for displaying purposes. We need to remove those workarounds to avoid increasing traffic to BE. This PR is the first part to remove
openReportcall inMergeTransactionsListContentby usingreportNameinGetTransactionsForMergingAPI.Fixed Issues
$ #69564
PROPOSAL:
Tests
Same as QA
Offline tests
Same as QA
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Prerequisite:
Case 1: Merge an expense with an unreported expense in selfDM
Case 2: Merge two expenses
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
Screen.Recording.2025-10-27.at.16.04.13.android.mov
Android: mWeb Chrome
Screen.Recording.2025-10-27.at.16.00.44.android.chrome.mov
iOS: Native
Screen.Recording.2025-10-27.at.16.13.10.mov
iOS: mWeb Safari
Screen.Recording.2025-10-27.at.16.07.04.ios.safari.mov
MacOS: Chrome / Safari
Screen.Recording.2025-10-27.at.15.53.57.web.mov
MacOS: Desktop
Screen.Recording.2025-10-27.at.15.58.34.desktop.mov