fix: 0.00 for Pending... @1.00 / mi#52197
Conversation
cea0680 to
b43bf99
Compare
|
@s77rt in #51285, it was decided to switch from setting pending waypoints to setting pending merchant for this case. It makes sense because the map shouldn't become blank when we change the distance unit. Therefore, I'm setting the |
|
We have a BE issue that's not directly related here but would be nice to fix. BUG: The
Expected: the new 2024-11-08.-.14.22.-.Screen.Recording.2024-11-08.at.14.18.45.mp4Tagging @lakchote as the assigned Engineer and @neil-marcellini as the godfather of distance requests. |
Thanks @paultsimura. I've created an issue here. cc @neil-marcellini |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
Bug: if you click on Distance then go offline, you can still reproduce the bug Screen.Recording.2024-11-11.at.1.30.55.PM.mov |
|
Thanks @s77rt, fixed #52197 (comment). |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@paultsimura Just wanted to bring this up since the same fix merged here was suggested in one of the proposals from issue (I already let them know that the fix was already merged with this PR): Edge case: In case the
Note: We did not have anything in place before the fix anyway, but at least before the fix the Distance would show the previous data in case the API call failed. |
|
Thanks for the notice @ikevin127 – I don't think it's related to my PR though.
We just didn't update the data optimistically, that's why it looks like the failing request was safer before the fix. In fact, I've reported what might be the root cause of the bug you mentioned here. I see Tim approved it's a valid bug, so maybe you'd like to transform #52248 into finding a solution to that bug. |
|
🚀 Deployed to staging by https://github.com/francoisl in version: 9.0.61-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.0.61-3 🚀
|

Explanation of Change
This PR refactors multiple unused IOU operations and aims to centralize working with transaction changes of the Distance requests while fixing several issues.
Fixed Issues
$ #49278
PROPOSAL: #49278 (comment)
Tests
Precondition:
Test:
Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.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 so 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
2024-11-08.-.17.12.-.android.mp4
Android: mWeb Chrome
2024-11-08.-.17.12.-.chrome.mp4
iOS: Native
2024-11-08.-.17.12.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-11-08.at.17.06.56.mp4
iOS: mWeb Safari
2024-11-08.-.17.12.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-11-08.at.17.04.23.mp4
MacOS: Chrome / Safari
2024-11-08.-.17.12.-.Screen.Recording.2024-11-08.at.16.56.32.mp4
MacOS: Desktop
2024-11-08.-.17.12.-.Screen.Recording.2024-11-08.at.17.02.06.mp4