-
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 new API command LogOut
#9602
Conversation
LogOut
LogOut
LogOut
No longer on hold! |
Uhhh I guess the Control + Enter shortcut is now "Closing" the PR / Issue - I didn't mean to close this! Update: Didn't close that time so 🤷 |
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.
Looks good to me. Just wanted to understand the usage of Timing.clearData();
. And does it matter if we place it above in a block of code or at the bottom?
Hmm good question I'll see if I can figure out who knows the most about that :D |
Good point @techievivek I think it's better to keep clearing the timer at the bottom, after the API call. updated |
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.
Should this be on HOLD until the linked PR is on production? No LogOut
command will exist until it is.
src/libs/actions/Session/index.js
Outdated
]; | ||
API.write('LogOut', { | ||
// Send current authToken because we will immediately clear it once triggering this command | ||
authToken: NetworkStore.getAuthToken(), |
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, maybe kind of rare that this would happen - but feels like something that API
should deal with by caching the authToken before setting optimisticData
.
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.
I definitely think it's rare, but it's necessary for this case (took me a while to debug & figure out this was the cause of some annoying issues)
I like the idea of the API caching the authToken
before setting optimisticData
, but maybe only if there's other instances where that's needed? Like in other Authenticate refactors 'n such.
LogOut
LogOut
Dunno how I got so many merge commits 🤫 but should be ready for another review now haha |
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.
LGTM
LogOut
LogOut
Triggered auto assignment to @Julesssss ( |
@Beamanator looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Related Web-E PR is on Production since yesterday 👍
Nevermind, the tests on the last commit passed so idk what the problem was & why Anway, this is not actually an emergency 😅 |
🚀 Deployed to staging by @Beamanator in version: 1.1.82-5 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.82-5 🚀
|
Tracking issue: https://github.com/Expensify/Expensify/issues/212810
Details
Holding on https://github.com/Expensify/Web-Expensify/pull/34150 getting to production :D
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/213650
Tests
main
if that PR has been merged alreadylogins
table withselect COUNT(*) from logins where accountID = <account-ID>;
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
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)QA Steps
I believe you'll need
ring1
to accesslogin
table, unlessring3
has access 😅logins
table withselect COUNT(*) from logins where accountID = <account-ID>;
Screenshots
Web
Mobile Web
Desktop
iOS
Android
Screen.Recording.2022-06-29.at.3.17.10.PM.mov