-
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
Implement the API changes for getting incremental reconnect updates #23516
Conversation
I've removed the HOLD on this. My next steps is to figure out how to test it out and give it a run |
This is ready for review now. I have tested it on web/desktop. I need to test it out on native platforms, but ran out of time today, so I'll do that tomorrow. |
I think this can't be tested by contributors, we need internal testing |
@situchan let me know if you will be able to test this until Monday. If you can't, we'll reassign |
I will review during weekend |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-07.at.8.49.27.PM.movMobile Web - ChromeMobile Web - SafariDesktopiOSIncluded in Web Android |
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.
App works fine as normal.
I was only able to check:
[OnyxUpdates] No lastUpdateID and previousUpdateID provided
[OnyxUpdates] App reconnecting with updateIDFrom: 0 and updateIDTo: 0
These should be tested internally until backend update is available on staging
[OnyxUpdates] Received lastUpdateID from pusher
[OnyxUpdates] Received previousUpdateID from pusher
@marcochavezf 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] |
@johnmlee101 or @marcochavezf all yours! |
@marcochavezf I'll merge this so we can unblock #23669 |
✋ 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/danieldoglas in version: 1.3.51-0 🚀
|
@tgolen @danieldoglas This is ready to QA |
@mvtglobally as long the app is working normally (receiving responses from the servers, and loading content), this is tested! |
These changes are nothing new for now, we just need to guarantee the app is still working. |
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.3.52-0 🚀
|
🚀 Deployed to staging by https://github.com/danieldoglas in version: 1.3.52-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.52-5 🚀
|
Details
When the application reconnects to the network, an API call is made to the server to fetch all data,
reconnectApp()
. This API will now be called with optionalupdateIDFrom
andupdateIDTo
parameters. This will tell the server to try and get incremental updates instead of the full amount of data. On the server, if it can't return any incremental data, then it will return a full data set. This saves time and network resources when the app reconnects.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/299548
Tests
Note: you must have
define('RELIABLE_UPDATES', true);
defined in web-e in order to test this.[OnyxUpdates]
lastUpdateID
andpreviousUpdateID
valuesOffline tests
None
QA Steps
Please ping @tgolen and @danieldoglas to QA this. We will have to live-edit staging in order to test it out.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting 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)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
Web
Mobile Web - Chrome
Note: I have not tested on this platform because the console logs are not available
Mobile Web - Safari
Note: I have not tested on this platform because the console logs are not available
Desktop
iOS
Android