Remove Onyx.connect() usage for ONYXKEYS.COLLECTION.POLICY_TAGS from changeTransactionsReport() in src/libs/actions/Transaction.ts#86517
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.
|
…-connect-policy-tags-in-transaction
…ect-policy-tags-in-transaction
Guccio163
left a comment
There was a problem hiding this comment.
Fix the defaulting to {} as in comment and useUndeleteTransaction usage, it lacks policyTags argument
…simplify policyTagList fallback assignment
…unction in TransactionTest.ts
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
Guccio163
left a comment
There was a problem hiding this comment.
Apply the comments left and it will be ready for a C+ review 👍
|
@DylanDylann 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] |
|
No product review needed |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2c877ad5d4
ℹ️ 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".
…-connect-policy-tags-in-transaction
|
hey @DylanDylann , sorry that it's been a week but i was occupied by other tasks 😅 I applied changes from your review, it's ready for re-review :) |
|
failing test unrelated to my PR |
|
@codex review |
|
@jakubstec Please also merge the latest main |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
…-connect-policy-tags-in-transaction
Onyx.connect() usage for ONYXKEYS.COLLECTION.POLICY_TAGS from src/libs/actions/Transaction.tsOnyx.connect() usage for ONYXKEYS.COLLECTION.POLICY_TAGS from changeTransactionsReport() in src/libs/actions/Transaction.ts
|
@DylanDylann done :) |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #72720 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-04-22.at.17.45.30.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @Valforte 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/Valforte in version: 9.3.62-0 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This PR is part of a refactor to remove Onyx.connect for the key
ONYXKEYS.COLLECTION.POLICY_TAGSfrom src/libs/actions/Transaction.ts.It removes the deprecated getPolicyTagsData() function and instead adds policyTagList as an explicit parameter to changeTransactionsReport(). All call sites (SearchTransactionsChangeReport, IOURequestStepReport, IOURequestEditReport, AddUnreportedExpenseFooter, NewReportWorkspaceSelectionPage) now fetch the policy tags via useOnyx and pass the resolved value directly.
Fixed Issues
$ #72720
PROPOSAL:
Tests
ReportsthenExpensesand go to the newly created one.Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Screen.Recording.2026-04-01.at.10.12.59.mov