Part 4: Remove Onyx.connect() for the key: ONYXKEYS.SESSION in src/libs/SubscriptionUtils#87992
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot assign yourself to this PR. Revert the change from MobileExpensify |
|
@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] |
|
Assigned myself and reverted the Mobile-Expensify submodule change back to main ( |
|
@MelvinBot Revert the change from MobileExpensify |
|
Reverted the Mobile-Expensify submodule change back to main ( |
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
|
Pushed the Mobile-Expensify submodule revert to the PR branch. |
…into fix-664420-part41
|
@MelvinBot merge main and resolve the conflicts |
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
|
Merged main and resolved the conflict in The conflict was between the PR's change (passing |
|
No new product considerations - removing my assignment and unsubscribing. |
| // We should restrict the workspace's owner actions if it's past its grace period end date and it's owing some amount. | ||
| if ( | ||
| isPolicyOwner(policy, deprecatedCurrentUserAccountID) && | ||
| isPolicyOwner(policy, currentUserAccountID ?? deprecatedCurrentUserAccountID) && |
There was a problem hiding this comment.
| isPolicyOwner(policy, currentUserAccountID ?? deprecatedCurrentUserAccountID) && | |
| isPolicyOwner(policy, currentUserAccountID) && |
| userBillingGracePeriodEnds, | ||
| amountOwed, | ||
| undefined, | ||
| session?.accountID, |
There was a problem hiding this comment.
@hungvu193 Try to use useCurrentUserPersonalDetails so you don't need to fill fallback value everywhere.
|
@hungvu193 Please fix tests |
Reviewer Checklist
Screenshots/VideosScreen.Recording.2026-04-16.at.9.09.40.PM.mov |
|
Done 😀 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 @dangrous 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/dangrous in version: 9.3.61-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This is an internal refactor that changes how |
Explanation of Change
Part 4: 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