Part 9: Remove Onyx.connect() for the key: ONYXKEYS.SESSION in src/libs/SubscriptionUtils - #91539
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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0be53462c7
ℹ️ 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".
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-05-30.at.1.55.40.PM.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #66442 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
heyjennahay
left a comment
There was a problem hiding this comment.
Product review not required
|
🚧 @tylerkaraszewski 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! 🧪🧪
|
…olicy in test The test relied on shouldRestrictUserBillableActions reading the current user account ID from ONYXKEYS.SESSION via Onyx.connect. PR Expensify#91539 removed that implicit default to make the function pure, but the merge into main kept the test's call without the explicit account ID, so it broke on main. Pass TEST_USER_ACCOUNT_ID explicitly, matching the originating PR's test update. Co-authored-by: Tyler Karaszewski <tylerkaraszewski@users.noreply.github.com>
|
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 9.3.91-0 🚀
Bundle Size Analysis (Sentry): |
No help site changes requiredI reviewed this PR and no updates to the help site ( This is a pure internal refactor with no user-facing behavior change. It removes the module-level The observable product behavior — including the billing grace-period restriction flow that routes users to the Restricted page — is unchanged. Help articles document user-facing features and workflows, none of which are affected by this change, so there is nothing to document. Because no changes are required, I did not create a draft help site PR. @hungvu193, please confirm you agree no help site updates are needed for this change. If you believe a docs update is warranted, let me know what behavior changed and I'll draft the PR. |
|
🚀 Deployed to staging by https://github.com/tylerkaraszewski in version: 9.3.94-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 No help site changes required. This PR is a pure internal refactor (Part 9 of removing Why no docs update is needed
I reviewed the help site authoring guides ( Since there's no docs PR to link, the "Ready for review" step doesn't apply here. If you believe a specific article should change, reply with |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.94-0 🚀
|
Explanation of Change
Part 9: Remove usages of
Onyx.connectforONYXKEYS.SESSIONby making the functions "pure":Fixed Issues
$ #66442
PROPOSAL: N/A
Tests
Same as QA Tests.
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Test 1:
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-12.at.23.15.26.mov
Screen.Recording.2026-04-12.at.23.20.49.mov