-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 2024-07-26] [$250] Distance - The map is centered on the user if it is not possible to create a route #44890
Comments
Triggered auto assignment to @miljakljajic ( |
We think this issue might be related to the #collect project. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The map is centered on the user position instead of the waypoints if the route is impossible to create. What is the root cause of that problem?Currently, we only center on the waypoints if there is a App/src/components/MapView/MapView.website.tsx Lines 193 to 211 in 1f0a462
It's coming from the transaction routes coordinates data which is retrieved from the GetRoute/Draft, but if it's impossible to create the route, then the data will be empty.
If it's empty, then we center on the current user position. What changes do you think we should make in order to solve the problem?It's possible to center the waypoints with the coordinate from the selected waypoints itself, so, I propose to update the condition so it centers on the waypoints if the selected waypoints contain the coordinate.
|
@miljakljajic Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~01caae7463e233bb94 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
@bernhardoj 's proposal here looks good to me! 🎀 👀 🎀 C+ Reviewed |
Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@miljakljajic, @MonilBhavsar, @c3024 Eep! 4 days overdue now. Issues have feelings too... |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
Looks good! |
PR is ready cc: @c3024 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.9-5 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 2024-07-26. 🎊 For reference, here are some details about the assignees on this 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:
|
Payment summary for @bernhardoj : Owed 250 for their work reviewing this PR |
@c3024 I have paid you in upwork. Do we need a regression test for this PR? Please complete the checklist above when you can |
Requested in ND. |
$250 approved for @bernhardoj |
@miljakljajic, @MonilBhavsar, @bernhardoj, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I'll complete the checklist in an hour. |
@c3024 bump on this when you can today so we can get it closed out |
|
Regression Test Proposal
|
Here are the regression test steps. |
Thank you @c3024! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.4-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4695012
Email or phone of affected tester (no customers): sustinov@applausemail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Prerequisites:
Create a Workspace on behalf of the administrator, invite an employee to it.
Steps:
Expected Result:
When you click on the "center-me" button, the map should center on waypoints, even if there is no way to create a route
Actual Result:
When you click on the "centre-me" button, the map is centred on the user's location, if it is not possible to create a route
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6533176_1720103016442.Record_2024-07-04-19-03-54.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @miljakljajicThe text was updated successfully, but these errors were encountered: