-
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
[No QA] Change offline status when Pusher PINGPONG fails #57255
Conversation
I can't seem to get the Jest tests to pass, but I don't think it's related to any of my changes. @Pujan92 can you give this a review and see if you can spot any issues that might lead to the timeouts happening in the Jest tests? |
@tgolen It seems our changes only causing the timeout error for the tests. Without our changes, it gets succeeded immediately for ( |
Hm, OK. I'll need to take a closer look into this then. I don't understand how these changes could be affecting the tests, but maybe something needs to be mocked to keep it from thinking it's offline (I'm guessing that's why it's timing out). |
OK, I got the tests passing. |
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.
@MonilBhavsar 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] |
Bump for review please @MonilBhavsar |
Co-authored-by: Monil Bhavsar <[email protected]>
Reviewer Checklist
Screenshots/Videos![]() Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
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.
👍
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.1.7-1 🚀
|
Explanation of Change
Now that the logs show more predictable behavior detecting when the PINGPONG fails, this PR changes the offline status depending on the PINGPONG failing or not.
Fixed Issues
$ #56180
Tests
PINGPONG
Offline tests
Included in the above tests
QA Steps
There are no QA steps for this because there is no way to simulate the client not receiving a PONG event without taking down the servers.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop