26558-App crashes while using distance feature #26622
Conversation
|
cc @hayata-suenaga The code in this PR will give the possibility to select an invalid waypoint, Is that fine? The create request will fails :
|
in this code i am just ignoring the |
the given address don't have the route so that its throwing the error. because when you are offline lat and lang will be fetch from backend. if no route found means it will throw the error when you come back online. |
Aha that means we allow invalid points to be chosen online.
@pradeepmdk The issue is that when we create a request offline we can select any invalid point, when we go back online, we don't validate the route before creating the request (there is no call to If you select an invalid route online it will throw an error before the creation, check the above images :
|
in native when |
|
@fedirjh i am not understanding correctly
here I am not doing any validation just preventing crashes in native devices. on the web, we don't have any crashes.in native devices because of null its crashed. so my changes doesn't any modification on the validation part |
|
@fedirjh if we want fix this here let me know i already have the proposal for that as well.#26596 (comment) |
Ok that sounds good
In online, when you try to select a non-existing searched result it will display this error :
However, In offline mode, it just selects any invalid search result and this is not consistent with the online behavior For example:
|
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-09-03.at.22.21.03.mp4Mobile Web - ChromeCleanShot.2023-09-04.at.00.32.23.mp4Mobile Web - SafariCleanShot.2023-09-03.at.22.15.45.mp4DesktopCleanShot.2023-09-03.at.22.36.41.mp4iOSCleanShot.2023-09-03.at.22.11.20.mp4AndroidCleanShot.2023-09-03.at.23.13.27.mp4 |
|
@pradeepmdk can you update the typo in testing step , it's
|
|
Since this PR fixes a crash and a deploy blocker I won't block it for this inconsistent behaviour . Let's make sure to handle it in this issue #26596 . |
|
✋ 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/hayata-suenaga in version: 1.3.63-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.63-2 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.64-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.64-2 🚀
|






Details
Fixed Issues
$ #26558
PROPOSAL: #26558 (comment)
Tests
Launch app
Offline tests
QA Steps
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)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Screen.Recording.2023-09-04.at.1.31.54.AM.mov
Mobile Web - Chrome
WhatsApp.Video.2023-09-04.at.1.35.01.AM.mp4
Mobile Web - Safari
WhatsApp.Video.2023-09-04.at.1.35.01.AM.mp4
Desktop
Screen.Recording.2023-09-04.at.1.31.54.AM.mov
iOS
Screen.Recording.2023-09-04.at.1.38.02.AM.mov
Android
Record_2023-09-04-01-28-21.mp4