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 |
Santhosh-Sellavel
left a comment
There was a problem hiding this comment.
LGTM, tests well!
| 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.
| 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 <hayata.suenaga111@gmail.com>
Co-authored-by: Hayata Suenaga <hayata.suenaga111@gmail.com>
hayata-suenaga
left a comment
There was a problem hiding this comment.
thanks for addressing the review 🙇
|
@hayata-suenaga Please help to review again when you have a chance. Thanks. |
Co-authored-by: Hayata Suenaga <hayata.suenaga111@gmail.com>
|
@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. |
|
✋ 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
offlineStatusNetInfo.addEventListenerOffline tests
None
QA Steps
offlineStatusNetInfo.addEventListenerPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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-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