[CP Staging] Fix DB issues of Merge Expenses#70334
[CP Staging] Fix DB issues of Merge Expenses#70334francoisl merged 15 commits intoExpensify:mainfrom
Conversation
|
@thienlnam 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] |
|
Hi @thienlnam. I think @youssef-lr will handle this PR |
|
cc @dominictb |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-09-11.at.23.19.33-compressed.movAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariUntitled.movUntitled.2.movMacOS: Desktop |
| setIsMergingExpenses(true); | ||
| mergeTransactionRequest(transactionID, mergeTransaction, targetTransaction, sourceTransaction); | ||
| Navigation.dismissModal(); | ||
| Navigation.dismissModalWithReport({reportID}); |
There was a problem hiding this comment.
Does this fix the navigation after merge that I mentioned here?
There was a problem hiding this comment.
I think yes, it does
dominictb
left a comment
There was a problem hiding this comment.
We can merge once the above updates are resolved 👍
|
On it. |
|
Testing that this fixed #70412 |
|
All right, let's do it! |
…ffline (cherry picked from commit 3c79df2) (cherry-picked to staging by francoisl)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.2.12-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.2.12-4 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/francoisl in version: 9.2.13-0 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.13-1 🚀
|
| [iouActionOfSourceTransaction.reportActionID]: { | ||
| pendingAction: null, | ||
| }, |
There was a problem hiding this comment.
We also need to clear the pendingAction in success data to fix this #71045
| Navigation.dismissModal(); | ||
| } | ||
| }, [targetTransaction, mergeTransaction, sourceTransaction, transactionID, targetTransactionThreadReportID]); | ||
|
|
There was a problem hiding this comment.
Here we didn't handle the navigation properly for reports pages. It caused #73057
Explanation of Change
Fixed Issues
$ #70329
$ #70331
$ #70336
$ #70338
$ #70356
$ #70352
$ #70345
$ #70412
$ #70351
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]."
Case 1: Disable merge IOU expenses
Case 2: Fix After merging expenses offline, the original amount is still retained
Case 3: Fix "It´s not here" page displayed when merging expenses from different WS on "Reports"
Prerequisite: Account has at least two workspaces available.
Case 4: Fix "Moved this expense to" without report number seen after merging track expense.
Prerequisite: Account has at least two workspaces.
Prerequisite 2: Account has a Self DM.
Case 5: Fix Select details page is blank when merging with card transaction
Precondition:
Case 6: Fix Merge expense - Second line of sentence is cut off when device font size is minimum
Precondition:
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))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-09-11.at.19.28.06.android.mp4
Android: mWeb Chrome
Screen.Recording.2025-09-11.at.19.38.34.android.chrome.mp4
iOS: Native
Screen.Recording.2025-09-11.at.20.00.24.mov
iOS: mWeb Safari
Screen.Recording.2025-09-11.at.19.47.20.ios.safari.mp4
MacOS: Chrome / Safari
Screen.Recording.2025-09-11.at.08.54.33.web.mov
MacOS: Desktop
Screen.Recording.2025-09-11.at.18.06.08.desktop.mov