Remove Onyx.connect() for the key: ONYXKEYS.COLLECTION.POLICY_TAGS from updateSplitTransactions function#83449
Conversation
|
Next and last step here will be removal from |
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactions
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactions
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactions
|
@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] |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-03-05.at.2.21.52.PM.mov |
|
@Guccio163 Can you fix the tests section here? The tests should be for updating the split transaction. |
|
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! |
|
Hi @shubham1206agra can you re-review the changes? I realised that passing all the 'allPolicyTags' down seems unnecessary and calculating policyTags before passing them down can decrease rerenders, please take a look 👀 |
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/updateSplitTransactions
tgolen
left a comment
There was a problem hiding this comment.
Looks good, thanks for the bump! Man, some of those methods have sooooo many params 🙈
|
I think the ESLint errors are fixed in main if you update your branch @Guccio163 |
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactions
Yeah, and there's more to come 🙊 |
…-fork into Guccio163/onyx-connect/policy_tags/updateSplitTransactions
|
@tgolen all check passing, ready to merge ✅ |
|
✋ 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.33-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.33-5 🚀
|
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
updateSplitTransactionsfunction 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