-
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
Fix - Distance-Distance field is stuck on pending... and no error shown when updating of waypoints fails #53329
Fix - Distance-Distance field is stuck on pending... and no error shown when updating of waypoints fails #53329
Conversation
@hoangzinh 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] |
BTW @hoangzinh simulate failing networks is not reliable. It makes the request fail immediately and the values will be reverted and error displayed but after a while it sends the request and the change will be pushed from the BE. Line 3229 in 10a75ac
but I am more concerned for QA because they can't alter the code so if you have a better QA testing steps please forward it 👍 And also what do you think about showing the pending map view when there is waypoints error? Now even on error we are showing the map if the coordinates are fetched and available from the BE. |
Sorry for leaving for a while. @FitseTLT, I recall when there is waypoints error, we revert backs to previous waypoints. It makes sense to keep the previous map, doesn't it? |
We currently have two ways to show the map:
2024-12-03.19-20-11.mp4 |
I see @FitseTLT. At first glance, I think we should avoid it. But let me take a look deeper |
It seems the current behavior in Prod. Hmm, I think we can leave it as it is because it can be an expected behavior. Screen.Recording.2024-12-04.at.18.04.13.mov |
Ok no problem 👍 @hoangzinh |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-09.at.22.36.52.android.movAndroid: mWeb ChromeScreen.Recording.2024-12-09.at.22.48.56.android.chrome.moviOS: NativeScreen.Recording.2024-12-09.at.22.55.45.ios.moviOS: mWeb SafariScreen.Recording.2024-12-09.at.23.04.46.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-12-09.at.22.13.11.web.movMacOS: DesktopScreen.Recording.2024-12-09.at.22.21.20.desktop.mov |
@FitseTLT it seems the distance unit doesn't be reset if API is failed Screen.Recording.2024-12-05.at.17.25.47.mov |
Fixed @hoangzinh |
Looks good @FitseTLT. I will try to complete checklist today |
@FitseTLT, turn on both "Force offline" and "Simulate failing network requests" work to me. Wdyt if the testing steps here is:
|
@hoangzinh The problem is after the data is reverted, error shown and so on, a bit later you will see the changes applied (even after clearing cache to prove that the BE request was really executed) by the way I have seen that our simulate failing network has the same problem in other requests too. So I am only worried that the QA would interpret this as the PR is failing. |
Hi @FitseTLT do you have any recordings/screenshots to illustrate what you mean here? I tried to reproduce it but I couldn't. |
Here it is @hoangzinh the request gets sent after the error occurred and values reverted when I turn off the simulate option |
@FitseTLT do you mean we can use those steps for QA steps? |
Yeah I think we shouldn't worry too much after all it not related with the current PR 👍 |
Can you update it into QA steps? So they can test this PR on staging |
@hoangzinh Updated 👍 |
@hoangzinh I think I have got better steps in #54023 ? Wouldn't it be better for QA steps. WDYT |
Looks good to me. Screen.Recording.2024-12-12.at.22.19.54.mov |
Yep added it to the QA steps @pecanoro You can proceed with the review 👍 |
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.
Small suggestion
✋ 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/pecanoro in version: 9.0.76-0 🚀
|
Details
Fixed Issues
$ #52248
PROPOSAL: #52248 (comment)
Tests
Offline tests
Same as above
QA Steps
[x] Verify that no errors appear in the JS console
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)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label 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
Untitled.Project2.mp4
Android: mWeb Chrome
aw.mp4
iOS: Native
ip.mp4
iOS: mWeb Safari
iw.mp4
MacOS: Chrome / Safari
w.mp4
MacOS: Desktop
d.mp4