-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add offline status log #41719
Add offline status log #41719
Conversation
@Santhosh-Sellavel 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] |
Reviewer Checklist
Screenshots/VideosNoting UI so just added logs recording for Web & Desktop MacOS: Chrome / SafariScreen.Recording.2024-05-07.at.10.39.44.PM.movMacOS: DesktopScreen.Recording.2024-05-07.at.10.44.54.PM.mov |
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, tests well!
src/libs/NetworkConnection.ts
Outdated
Log.info( | ||
`[NetworkStatus] The user is not under force offline, calling NetInfo.fetch, setting "offlineStatus" to ${ | ||
(state.isInternetReachable ?? false) === false | ||
} with network state: ${JSON.stringify(state)}`, | ||
); |
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.
Log.info( | |
`[NetworkStatus] The user is not under force offline, calling NetInfo.fetch, setting "offlineStatus" to ${ | |
(state.isInternetReachable ?? false) === false | |
} with network state: ${JSON.stringify(state)}`, | |
); |
Co-authored-by: Hayata Suenaga <[email protected]>
Co-authored-by: Hayata Suenaga <[email protected]>
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.
thanks for addressing the review 🙇
@hayata-suenaga Please help to review again when you have a chance. Thanks. |
Co-authored-by: Hayata Suenaga <[email protected]>
@hayata-suenaga Can we merge the PR now? |
@nkdengineer thank you for asking. we're imposing a merge freeze right now. I'll let you know when we can merge the PR 😄 |
@hayata-suenaga Can we merge this PR now? |
The merge freeze is being gradually being lifted now I know this is a PR that just adds a logging but it touches the offline status part of the code so I prefer waiting for the complete end to the merge freeze 😄 |
Thanks. |
@nkdengineer can you please sync with main? @hayata-suenaga the freeze is over now, lets get the merge party started 🎉 |
@mountiny I merged main. |
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.
thank you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@nkdengineer This PR caused a deploy blocker here when changing the unreachable condition 😅 #43116 |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.79-11 🚀
|
Details
Add offline status log
Fixed Issues
$ #40250
PROPOSAL: #40250 (comment)
Tests
offlineStatus
NetInfo.addEventListener
Offline tests
None
QA Steps
offlineStatus
NetInfo.addEventListener
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android-2.mov
Android: mWeb Chrome
Screen.Recording.2024-05-07.at.10.04.46.mov
iOS: Native
Uploading ios-1.mov…
iOS: mWeb Safari
Screen.Recording.2024-05-07.at.10.07.06.mov
MacOS: Chrome / Safari
Screen.Recording.2024-05-07.at.10.03.42.mov
MacOS: Desktop
Screen.Recording.2024-05-07.at.10.20.17.mov