-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Remove mostRecentReportActionLastModified from ReconnectApp calls #57780
Conversation
@sobitneupane @ One of you needs to 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/VideosAndroid: NativeWhatsApp.Video.2025-03-05.at.02.57.29.mp4Android: mWeb ChromeiOS: NativeScreen.Recording.2025-03-05.at.02.48.15.moviOS: mWeb SafariScreen.Recording.2025-03-05.at.02.42.12.movMacOS: Chrome / Safaric3.mp4Screen.Recording.2025-03-05.at.02.38.35.movMacOS: 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.
LGTM
@cristipaval 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] |
✋ 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/cristipaval in version: 9.1.10-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.10-6 🚀
|
CC: @puneetlath @iwiznia
Explanation of Change
Context: https://expensify.slack.com/archives/C05LX9D6E07/p1739993730112349
In the most recent versions of the app, during a full reconnect when
ReconnectApp
command is called, all Report Action onyx updates are sent with aSetCollection
method. ThemostRecentReportActionLastModified
was used to filter out the output ofReconnectApp
to retrieve only the latest updates. If for any reason the app is performing a full reconnect and themostRecentReportActionLastModified
is sent, the BE will return only a partial list of report actions, replacing the local onyx state with only the latest reports.As we already have the
updateIDFrom
parameter for partial sync, we are removing themostRecentReportActionLastModified
parameter to avoid having the App clear its internal state during fullReconnectApp
calls.Fixed Issues
$ #57784
$ #57354
PROPOSAL:
Tests
Steps for manual testing:
(browser only):
Log into test account
Refresh the tab
On every refresh, make sure the App state is correctly kept (no disappearing reports or actions)
Verify that no errors appear in the JS console
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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