Remove Onyx.connect() for the key: ONYXKEYS.COLLECTION.POLICY_TAGS from updateSplitTransactionsFromSplitExpensesFlow function#83902
Conversation
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.
|
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
|
@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] |
|
Pulling it back to draft since it's a follow up after this one, this one will wait until previous one is merged |
|
I'll be working on changing passing 'allPolicyTags' to filtering them and then passing |
…ons' of github.com:software-mansion-labs/expensify-app-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
…ons' of github.com:software-mansion-labs/expensify-app-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
…ons' of github.com:software-mansion-labs/expensify-app-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
…ons' of github.com:software-mansion-labs/expensify-app-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4c585cca0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
|
From what I was able to find, getReportOrDraftReport truly returns undefined both for reportID = undefined and String(CONST.DEFAULT_NUMBER_ID), so I removed the duplicated logic. This also means that we should be able to pass transactionReport and parentTransactionReport down to updateSplitTransactionsFromSplitExpensesFlow, to avoid recalculating it from getReportOrDraftReport, WDYT @shubham1206agra ? |
@Guccio163 We can do this |
|
Great, ready for a re-review then @shubham1206agra |
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactionsFromSplitExpensesFlow
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-10.at.8.26.07.PM.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #80401 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@tgolen Please review this PR |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @tgolen has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/tgolen in version: 9.3.35-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.35-1 🚀
|
Explanation of Change
This PR is part of a refactor to remove Onyx.connect for the keys: ONYXKEYS.COLLECTION.POLICY_TAGS from the src/libs/actions/IOU/Split.ts file and replace it with useOnyx.
It isolates the
updateSplitTransactionsFromSplitExpensesFlowfunction from the ONYXKEYS.COLLECTION.POLICY_TAGS Onyx.connect key .Fixed Issues
$ #80401
PROPOSAL:
Tests
Offline tests
QA Steps
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
MacOS: Chrome / Safari
updateSplitTransactions_correct.mov