[NoQA] Refactor: isolate validateSecondaryLogin from Onyx.connect ONYXKEYS.COLLECTION.POLICY#81990
Conversation
|
@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] |
There was a problem hiding this comment.
💡 Codex Review
Lines 566 to 570 in 11bd464
When this branch runs (!loginList?.[currentEmail].validatedDate), we now switch the account/session login to contactMethod but no longer update policy records that are keyed by login (policy.employeeList and policy.owner). For users who are workspace members/owners, membership checks that use the new session email (for example isPolicyMember(policy, currentUserEmail) in src/libs/PolicyUtils.ts) can fail against stale policy keys until a later full policy refresh, causing incorrect access behavior in workspace/restricted-room flows.
ℹ️ 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".
|
No product review required |
|
@shubham1206agra Any update? |
|
@DylanDylann Turns out, you can't even add a secondary email before you validate the primary contact. Screen.Recording.2026-03-02.at.1.36.18.PM.mov |
|
@DylanDylann Done |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #77905 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
The failed ESLint is not related to our change (it also happens on main) |
|
cc @tgolen |
|
They should be fixed on |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🚧 @MonilBhavsar 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! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.3.34-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.34-2 🚀
|
Explanation of Change
Fixed Issues
$ #77905
Tests
Offline tests
Same as 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.