-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Remove Onyx.connect() for the key: ONYXKEYS.SESSION in src/libs/OptionsListUtils.ts
#78754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remove Onyx.connect() for the key: ONYXKEYS.SESSION in src/libs/OptionsListUtils.ts
#78754
Conversation
Onyx.connect() for the key: ONYXKEYS.SESSION in src/libs/OptionsListUtils.ts
a7b7754 to
22678f9
Compare
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.
|
|
@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] |
|
PR is ready but i am confused about the manual test we should make in this case @DylanDylann what do u think replaced the the session with useOnyx in all usages and removed the connect |
…rom-optionslistutils.ts-for-session-key
|
@abzokhattab This PR is quite large. Could you please split it into smaller PRs? It’s difficult to move forward with such a big PR. |
|
@abzokhattab For testing, you can pick a sample flow. There’s no need to test all flows related to these changes |
|
i agree the changes are abit big but i dont think we need a second PR ... i mean we are not changing anything in the logic just passing the values from onyx .... so it shouldnt be hard to review... that said here are the functions that were modified we just need to ensure that all of their usages are passing the new params In
|
|
Yeah, you probably don't need to do 1 PR for each method, but I think a smaller PR would still be ideal. What about splitting it up so that each PR only modifies 5 methods? I'd also be sure to add unit tests to each method being modified. |
|
From my experience, I think a PR should have at most 200–300 changed lines. Each PR can refactor a few methods, and in some cases we may need multiple PRs to handle a single method, it really depends on the situation. |
Explanation of Change
Fixed Issues
$ #66374
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari