[CP Staging] Revert "Merge pull request #89360 from marufsharifi/fix/bulk-merge-ex…#92935
Conversation
|
@puneetlath 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 |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c95817baf4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const isASAPSubmitBetaEnabled = isBetaEnabled(CONST.BETAS.ASAP_SUBMIT); | ||
|
|
||
| const targetTransactionThreadReportID = mergeTransaction?.targetTransactionThreadReportID ?? getTransactionThreadReportID(targetTransaction); | ||
| const targetTransactionThreadReportID = getTransactionThreadReportID(targetTransaction); |
There was a problem hiding this comment.
Preserve the selected transaction thread for search merges
When a single merge target is selected from Search, the transaction snapshot returned by getTransactionsAndReportsFromSearch() does not always include transactionThreadReportID; the thread ID can exist only on the selected row's reportAction.childReportID or in the thread report that was just created for the flow. This commit stops storing that ID on mergeTransaction, so this recomputation can return undefined; after confirming from Search, handleMergeExpenses then falls back to the parent report instead of reopening/updating the expense thread. Please keep using the stored target thread report ID when it was captured for the merge flow.
Useful? React with 👍 / 👎.
|
🚧 @NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.4.0-4 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: no changes required. This PR reverts #89360, which only changed the post-merge navigation destination for bulk merges (landing on the transaction thread instead of self-DM). That is internal navigation behavior — it does not change the documented merge steps, eligibility rules, or merge outcomes. I reviewed the relevant help article,
None of these describe where the app navigates after a merge, so nothing in the help site is affected by this revert. No draft PR was created. @NicolasBonet, no linked help site PR was needed since this revert doesn't change any documented behavior. Let me know if you'd like me to reconsider. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.0-7 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.4.1-0 🚀
Bundle Size Analysis (Sentry): |
Help site review — no changes requiredI reviewed the changes in this PR against the help site files under Conclusion: No help site updates are needed. WhyThis PR is a revert of #89360, a bug fix that changed the internal navigation logic for which transaction thread opens after a bulk merge (it had caused an infinite-loading RHP — #92846). The changes are entirely in hooks, utils, actions, and tests (
So the documented flows remain correct after this revert, and there is nothing to update. @NicolasBonet, no linked help site PR was created because no documentation changes are required. If you believe a doc update is warranted, let me know what behavior should be documented and I'll draft it. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.1-6 🚀
|
Reverts #89360
Fixed issues
$ #92846
Test:
Screen.Recording.2026-06-08.at.9.44.20.AM.mov