-
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
fix: convert distance value to meters if necessary #43819
Conversation
Signed-off-by: dominictb <tb-dominic@outlook.com>
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb ChromeiOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.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.
@dominictb please check this. I am getting wrong miles.
To reproduce, make sure to create the first distance request on this branch
@situchan can you send the full video so I could follow to reproduce? Thanks! |
@dominictb I am not able to reproduce original bug anymore on staging. Can you? |
@situchan haven't checked yet. I'll need to check and get back to you. |
@situchan this is still reproducible on main. Have you enabled the betas |
reproduced on main. Not reproducible on staging maybe because |
@situchan that's a bit redundant no? In here App/src/components/MoneyRequestConfirmationListFooter.tsx Lines 341 to 352 in eb8b251
distance value if the canUseP2PDistanceRequest flag is true .
|
We also use distance when canUseP2PDistanceRequest is false: App/src/components/MoneyRequestConfirmationListFooter.tsx Lines 328 to 342 in 98932a2
Why don't you try to test when canUseP2PDistanceRequest is false? It surely causes regression. |
@dominictb here's full reproduction video: (Tip: do the actions very quickly, slower network if possible) (canUseP2PDistanceRequest = true) Screen.Recording.2024-07-10.at.12.38.12.PM.mov |
It couldn't, as when For this #43819 (comment), I'll get back to you later. |
Signed-off-by: dominictb <tb-dominic@outlook.com>
@situchan fixed. The issue is because if the backend API is slow, we still get the |
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.
Nice! Tests well now.
retest.mov
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.
Thanks!
✋ 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/thienlnam in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
Fixed Issues
$ #42959
PROPOSAL: #42959 (comment)
Tests
Pre-requisite: Enable
canUseP2PDistanceRequests
betasVerify that: The distance in the confirmation page will be the same as the distance in the transaction thread because waypoints remain the same.
Offline tests
QA Steps
Pre-requisite: Enable
canUseP2PDistanceRequests
betasVerify that: The distance in the confirmation page will be the same as the distance in the transaction thread because waypoints remain the same.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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