-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[NO QA] MoveIOUReportToExistingPolicy: Accept optimisticReportID param, return PreexistingReportID #69489
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
Conversation
roryabraham
left a comment
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.
Overall LGTM 👍🏼
| if (isFromSequentialQueue) { | ||
| const ongoingRequest = PersistedRequests.getOngoingRequest(); | ||
| if (ongoingRequest && ongoingRequest.data?.reportID === oldReportID) { | ||
| const ongoingReportIDParam = ongoingRequest?.data?.reportID ?? ongoingRequest?.data?.optimisticReportID; |
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.
| const ongoingReportIDParam = ongoingRequest?.data?.reportID ?? ongoingRequest?.data?.optimisticReportID; | |
| const ongoingRequestReportIDParam = ongoingRequest?.data?.reportID ?? ongoingRequest?.data?.optimisticReportID; |
|
@youssef-lr 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] |
|
PR doesn’t need product input as it stands. Removing the tag and unsubscribing myself. |
|
Failing tests fixed in #69602 |
|
✋ 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/grgia in version: 9.2.1-0 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.1-20 🚀
|
Explanation of Change
This is 1 of 2 App PRs.
This PR adds the params to the type and updates the middleware to supports the changes made in https://github.com/Expensify/Auth/pull/16936
https://github.com/Expensify/Web-Expensify/pull/48397
The second PR will add the optimistic report to fix the linked issue.
Fixed Issues
Part of #68027
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
N/A - this PR makes no logic changes
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop