-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Use Onyx.clear to preserve state when logging out #13384
Conversation
Having trouble completing testing because of the error being reported here: https://expensify.slack.com/archives/C01GTK53T8Q/p1670528976295469 But looks like it's getting resolved soon so will be able to take this out of Draft soon enough! |
@parasharrajat @MariaHCD One of you needs to 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] |
480d199
to
ab14ca4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, this works really well now. I do have a few comments but once those are resolved it will be good to go. @parasharrajat please go ahead and complete the checklist.
web.mov
const preferredLocale = currentPreferredLocale; | ||
const isOffline = currentIsOffline; | ||
const shouldForceOffline = currentShouldForceOffline; | ||
const keysToPreserve = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB: Add a comment above keysToPreserve
explaining why we preserve some keys and how that works.
Hmmmm... I don't think so no 😞. Looks like it's being tracked here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good but there's a lint error right now. Since @parasharrajat can't test right now should I go ahead and test, or should we wait? I think we would still pay him as we usually do of course.
RE: the linter that change is being fixed here: https://expensify.slack.com/archives/C01GTK53T8Q/p1670954885116019 |
@parasharrajat We can have your IP whitelisted once you fill out this form: https://expensify.slack.com/archives/C01GTK53T8Q/p1670957921425999 |
@neil-marcellini @MariaHCD bump! If @parasharrajat is still having issues or otherwise busy would one of you be able to fill out the reviewer checklist in their absence? |
I just got access so let me try to test it out. |
@parasharrajat Let us know if you're still having problems with testing and I can fill out the reviewer checklist for this. |
@MariaHCD Please do that. I am not sure what to do I am blocked because my IP changed and I am back to waiting. |
Thanks for letting us know, @parasharrajat! I'll fill out the checklist. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2022-12-19.at.7.42.29.PM.movMobile Web - ChromeXRecorder_19122022_194641.mp4Mobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.-.2022-12-19.at.20.06.19.mp4DesktopScreen.Recording.2022-12-19.at.7.47.54.PM.moviOSSimulator.Screen.Recording.-.iPhone.14.-.2022-12-19.at.20.10.50.mp4AndroidScreen.Recording.2022-12-19.at.8.35.04.PM.mov |
We should be good to go here. Not sure if @parasharrajat should give this a final review? Otherwise, feel free to merged @neil-marcellini @yuwenmemon |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
🚀 Deployed to staging by @neil-marcellini in version: 1.2.42-0 🚀
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.42-2 🚀
|
@neil-marcellini please review
HOLD ON Expensify/react-native-onyx#214
Details
Instead of setting default values after clearing Onyx, preserve the keys we want to keep using the new
keysToPreserve
param ofOnyx.clear()
Fixed Issues
$ #13062
Tests/QA Steps/Offline Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots/Videos
Web
Kapture.2022-12-09.at.13.37.48.mp4
Mobile Web - Chrome
Kapture.2022-12-09.at.15.11.14.mp4
Mobile Web - Safari
Kapture.2022-12-09.at.15.00.18.mp4
Desktop
Kapture.2022-12-09.at.13.45.00.mp4
iOS
Kapture.2022-12-09.at.14.49.45.mp4
Android
Kapture.2022-12-09.at.15.08.36.mp4