You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-03-07] [$500] Web - Distance -When adding 'Stop' location the newly added location is added to 'Finish' location #36067
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v1.4.38-1 Reproducible in staging?: y Reproducible in production?: y 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 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Click on 'FAB'
Click on 'Request money' > 'Distance' tab
Add 'Start' & 'Finish' location
Click on 'Add stop' & add location
Expected Result:
The newly added 'Stop' location should be added to 'Stop' section of 'Request money' page
Actual Result:
The newly added 'Stop' location is added to 'Finish' section
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Web - Distance -When adding 'Stop' location the newly added location is added to 'Finish' location[/-][+][$500] Web - Distance -When adding 'Stop' location the newly added location is added to 'Finish' location[/+]on Feb 7, 2024
Please re-state the problem that we are trying to solve in this issue.
When adding 'Stop' location the newly added location is added to 'Finish' location
What is the root cause of that problem?
UI/UX could be confusing because the CTA button reads "+ Add Stop", and on the waypoint list, we have a "Stop" entry. By default, when the user taps the CTA button, the new address gets added to the end of the list which reads "Finish".
What changes do you think we should make in order to solve the problem?
We could make the CTA button Waypoint list in the location chooser read "Stop" instead of Finish.
Please re-state the problem that we are trying to solve in this issue.
When adding 'Stop' location the newly added location is added to 'Finish' location
What is the root cause of that problem?
when adding a new stop it gets added to the end of the waypoints array and here if we have 3 waypoints we mark the the second waypoint as the stop and the third one as the Finish
Please re-state the problem that we are trying to solve in this issue.
In distance requests, adding Stop location is getting added to the Finish location instead of the Stop location.
What is the root cause of that problem?
As I understand, the implementation of adding the newly added stop as the last one i.e. as Finish is intentional. However, I think the confusion arises because of the word stop been used in [1] and [2] in clash with word Finish [3] as shown below. Because of this, the user may expect the Add stop to add a waypoint under Stop and not to the `Finish. This, I think, is the root cause.
As discussed here, I took the lead in identifying the root cause and in arriving at the desired approach.
What changes do you think we should make in order to solve the problem?
We can solve this by making the following 4 changes:
Remove the finish waypoint description key and simplify by using a simple if statement like this:
Change the following render implementation here with the following to do away with finish. As discussed here, we can use Location icon here. And, DotIndicator for start.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve 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:
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@sobitneupane] Determine if we should create a regression test for this bug.
[@sobitneupane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
@sobitneupane could you please complete the rest of the checklist?
[@sobitneupane] The PR that introduced the bug has been identified. Link to the PR:
[@sobitneupane] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@sobitneupane] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
@kadiealexander Rather than a bug, I would say its an improvement on the app. Before it was designed to show Start, Stop and Finish. Now, we have updated it to show Start and Stop only.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
[-]Web - Distance -When adding 'Stop' location the newly added location is added to 'Finish' location[/-][+][$500] Web - Distance -When adding 'Stop' location the newly added location is added to 'Finish' location[/+]melvin-bot commentedon Feb 7, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01ef55b7f820f1f8da
melvin-bot commentedon Feb 7, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (
External)melvin-bot commentedon Feb 7, 2024
Triggered auto assignment to @conorpendergrast (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.kbecciv commentedon Feb 7, 2024
We think that this bug might be related #wave5-free-submitters
CC @dylanexpensify
muas19 commentedon Feb 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When adding 'Stop' location the newly added location is added to 'Finish' location
What is the root cause of that problem?
UI/UX could be confusing because the CTA button reads "+ Add Stop", and on the waypoint list, we have a "Stop" entry. By default, when the user taps the CTA button, the new address gets added to the end of the list which reads "Finish".
What changes do you think we should make in order to solve the problem?
We could make the
CTA buttonWaypoint list in the location chooser read "Stop" instead of Finish.App/src/languages/en.ts
Line 2051 in 49886be
finish: 'Stop',Or could add the new waypoint just before the last one.
What alternative solutions did you explore? (Optional)
Get feedback from UI team if this makes sense.
abzokhattab commentedon Feb 7, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When adding 'Stop' location the newly added location is added to 'Finish' location
What is the root cause of that problem?
when adding a new stop it gets added to the end of the waypoints array and here if we have 3 waypoints we mark the the second waypoint as the stop and the third one as the
FinishApp/src/pages/iou/request/step/IOURequestStepWaypoint.js
Lines 103 to 112 in 319d88f
What changes do you think we should make in order to solve the problem?
we need to swap the
finishwith thestopmuas19 commentedon Feb 7, 2024
Updated #36067 (comment)
rojiphil commentedon Feb 8, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
In
distancerequests, addingStoplocation is getting added to theFinishlocation instead of theStoplocation.What is the root cause of that problem?
As I understand, the implementation of adding the newly added stop as the last one i.e. as
Finishis intentional. However, I think the confusion arises because of the wordstopbeen used in [1] and [2] in clash with wordFinish[3] as shown below. Because of this, the user may expect theAdd stopto add a waypoint underStopand not to the `Finish. This, I think, is the root cause.As discussed here, I took the lead in identifying the root cause and in arriving at the desired approach.
What changes do you think we should make in order to solve the problem?
We can solve this by making the following 4 changes:
finishwaypoint description key and simplify by using a simpleifstatement like this:finish. As discussed here, we can useLocationicon here. And,DotIndicatorfor start.Similarly, we need to change the icons here and here like this
finishkey present inDistanceEReceiptherefinishwaypoint description from here and hereWhat alternative solutions did you explore? (Optional)
Replace
Finish(i.e. [3]) withStop. This was discussed in slack here. We can do this by replacingFinishwithStophere like this:finish: 'Stop',59 remaining items
melvin-bot commentedon Feb 29, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.45-6 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-03-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Feb 29, 2024
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:
sobitneupane commentedon Mar 6, 2024
Regression Test Proposal:
kadiealexander commentedon Mar 7, 2024
Payouts due:
Upwork job is here.
kadiealexander commentedon Mar 8, 2024
@sobitneupane could you please complete the rest of the checklist?
sobitneupane commentedon Mar 8, 2024
@kadiealexander Rather than a bug, I would say its an improvement on the app. Before it was designed to show Start, Stop and Finish. Now, we have updated it to show Start and Stop only.
kadiealexander commentedon Mar 10, 2024
Sweet, please request payment via NewDot.
JmillsExpensify commentedon Mar 22, 2024
$500 approved for @sobitneupane based on summary.