-
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
26558-App crashes while using distance feature #26622
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 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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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
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