-
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
[HOLD for payment 2023-10-09] [$500] [Distance] - Route is generated without green line connecting the points after going online #26589
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Route is generated without green line connecting the points after going online What is the root cause of that problem?We already have a logic to fetch the route if needed App/src/components/DistanceRequest.js Lines 153 to 159 in e088539
But the issue is App/src/components/DistanceRequest.js Lines 92 to 93 in e088539
It checks What changes do you think we should make in order to solve the problem?We should check the value of What alternative solutions did you explore? (Optional)In the optimistic data when we saveWaypoint/addStop/removeWaypoint, we set App/src/libs/actions/Transaction.js Lines 89 to 95 in e088539
I think we can change it to set |
This is a proposal from @pradeepmdk from this dupe issue (which I closed). This proposal looks good. I'll assign @pradeepmdk @pradeepmdk I don't think we have to call @hoangzinh thank you for letting me know about the dupe. You identified the cause correctly, but I don't believe we need to update the logic for optimistic update. I prefer we set the key but leave the value null (I believe this is the pattern we use across App). |
Also, @pradeepmdk could you comment something on this issue? Otherwise, I cannot assign you 😓 |
from #26596 (comment) ProposalPlease re-state the problem that we are trying to solve in this issue.Display route line when the device comes back online What is the root cause of that problem?App/src/components/DistanceRequest.js Line 92 in d0b2772
here we are checking the coordinates key or not so its will be always truebecause coordinates we are setting as null every every waypoint save App/src/libs/actions/Transaction.js Line 63 in d0b2772
but its have null value so that when come back online App/src/components/DistanceRequest.js Line 158 in d0b2772
What changes do you think we should make in order to solve the problem?we should update the logic const doesRouteExist = lodashHas(transaction, 'routes.route0.geometry.coordinates') && transaction.routes.route0.geometry.coordinates && transaction. routes.route0.geometry.type; or const doesRouteExist = !_.isNull(transaction, 'routes.route0.geometry.coordinates') Or we can check coordinate is an array so if not an array also we use it here from Lodash |
I can take C+ role here as I was assigned on related issue but closed |
@hayata-suenaga Yes we don't need that MapboxToken.init() because when coming back online |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Route is generated without green line connecting the points after going online What is the root cause of that problem?Coordinates are null and we're not fetching route by calling https://github.com/Expensify/App/blob/aeffabf2d39af8ef03440d5d69bcb074d1826dd7/src/components/DistanceRequest.js#L92 this will be true even if we have null. What changes do you think we should make in order to solve the problem?We could simply change it to the following line. const doesRouteExist = lodashGet(transaction, 'routes.route0.geometry.coordinates') !== null; This will set https://github.com/Expensify/App/blob/aeffabf2d39af8ef03440d5d69bcb074d1826dd7/src/components/DistanceRequest.js#L93 What alternative solutions did you explore? (Optional)NA ResultKapture.2023-09-04.at.10.17.37.mp4 |
@hayata-suenaga how about my main proposal. It checks value of coordinate instead of checking keys exits |
@pradeepmdk I apologize for the delay in assigning you to this issue 🙇 This issue doesn't have a particularly high priority in terms of Distance Request. So we don't have to hurry into merging the PR. |
@hayata-suenaga np. I will raise the PR. Can you make this external? so that an upwork contract will be created. |
Job added to Upwork: https://www.upwork.com/jobs/~017f0ebdf18950167a |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
@ntdiary @hayata-suenaga Pr is ready for review |
That is a good and interesting point.
but it didn't fix the flow of:
I think the latter is also worth discussing and fixing. : ) demo.mp4Clear the |
Does this mean that closing the distance request page before the token is fetched after the device comes back online? |
Eh, actually the token is only fetched when the distance request page is opened for the first time. And the most critical steps in this flow are the first two: If the user fails to fetch the token when opening the distance request page for the first time due to being offline, then no matter how many times the page is opened afterwards, even if the device comes back online, the map will never be able to load (unless the page is refreshed). demo.mp4 |
Hi, @hayata-suenaga, so, personally I think it's worth fixing, do you think we can move forward with PR #26998 ? If so, we can resolve the conflicts with PR #26836 later. 🙂 |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
I'm marking this as done. Let's handle payment and get it closed. If we still need more PRs please update the status to LOW again. Thanks. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-09. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
All paid out! Thanks everyone. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing PR #25980
Action Performed:
Expected Result:
The route is generated from the start to the finish point with a green line connecting
Actual Result:
The route is generated without a green line connecting the start and finish point
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.62-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug6186274_20230902_222139.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: