[Part 3]: Remove Onyx.connect() for the key: ONYXKEYS.COLLECTION.REPORT in src/libs/TransactionUtils#78570
Conversation
|
@shubham1206agra 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] |
| const isSplitPolicyExpenseChat = !!transaction?.comment?.splits?.some( | ||
| (participant) => deprecatedAllReports?.[`${ONYXKEYS.COLLECTION.REPORT}${participant.chatReportID}`]?.isOwnPolicyExpenseChat, | ||
| ); |
There was a problem hiding this comment.
This was added in this PR, but it looks outdated and safe to remove now
There was a problem hiding this comment.
There was a problem hiding this comment.
While implementing the PR, I rechecked why isSplitPolicyExpenseChat was added and found the context in #37740. Since the split flow has changed, and on staging we now allow splitting even when the request is missing a merchant, so I removed that logic.
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.
|
|
@shubham1206agra The PR is ready for review |
|
PR doesn’t need product input as a refactor PR. Unassigning and unsubscribing myself. |
|
@shubham1206agra Kindly bump |
|
@shubham1206agra Are you available to review this PR? It’s been waiting for quite some time, if not, could we please hand it off to someone else so it can move forward |
|
@DylanDylann I thought I reviewed this. My bad. Lemme review this. |
|
@DylanDylann Can you merge main here? |
|
@shubham1206agra Kindly bump |
Reviewer Checklist
Screenshots/Videos
|
mountiny
left a comment
There was a problem hiding this comment.
@shubham1206agra can you please update name of that param?
|
@mountiny Ready to merge |
|
@shubham1206agra conflicts sorry |
|
@mountiny All yours |
|
✋ 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/mountiny in version: 9.3.5-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.5-7 🚀
|

Explanation of Change
Fixed Issues
$ #66465
PROPOSAL:
Tests
Offline tests
QA Steps
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
Screen.Recording.2025-12-31.at.14.48.03.mov