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-08-14] [$250] Distance - "Add stop" button is shown when Start and Stop points are empty #45467
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Since an empty waypoint has a default keyForList key, the filter method returns an arrary of length 2 and numberOfFilledWaypoints is calculated to be 2 when two or more waypoints are not selected.
`Object.keys(waypoint).length``
What changes do you think we should make in order to solve the problem?
We should check in the filter if waypoints key length is greater that one to check if a waypoint is selected. When a waypoint is selected, waypoint object will have address, lat, lng, name, and keyForList keys.
changed the title [-][$250] Distance - "Add stop" button is shown when Start and Stop points are empty[/-][+][HOLD for payment 2024-08-14] [$250] Distance - "Add stop" button is shown when Start and Stop points are empty[/+]on Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 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:
[@akinwale] The PR that introduced the bug has been identified. Link to the PR:
[@akinwale] 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:
[@akinwale] 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:
[@akinwale] Determine if we should create a regression test for this bug.
[@akinwale] 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.
[@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
[@akinwale] The PR that introduced the bug has been identified. Link to the PR:
[@akinwale] 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:
[@akinwale] 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:
[@akinwale] Determine if we should create a regression test for this bug.
[@akinwale] 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.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Jul 16, 2024
Triggered auto assignment to @nkuoch (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jul 16, 2024
Triggered auto assignment to @jliexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Jul 16, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
izarutskaya commentedon Jul 16, 2024
We think this issue might be related to the #collect project.
etCoderDysto commentedon Jul 16, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
"Add stop" button is shown when Start and Stop points are empty
What is the root cause of that problem?
numberOfFilledWaypoints >= 2App/src/components/DistanceRequest/DistanceRequestFooter.tsx
Lines 91 to 93 in fb9ce79
keyForListkey, thefiltermethod returns an arrary of length 2 andnumberOfFilledWaypointsis calculated to be 2 when two or more waypoints are not selected.`Object.keys(waypoint).length``
App/src/components/DistanceRequest/DistanceRequestFooter.tsx
Line 46 in fb9ce79
What changes do you think we should make in order to solve the problem?
We should check in the filter if waypoints key length is greater that one to check if a waypoint is selected. When a waypoint is selected, waypoint object will have address, lat, lng, name, and keyForList keys.
What alternative solutions did you explore? (Optional)
We can also use address prop on waypoint object to check if a waypoint is selected
Result:

etCoderDysto commentedon Jul 16, 2024
Proposal updated:
42 remaining items
[-][$250] Distance - "Add stop" button is shown when Start and Stop points are empty[/-][+][HOLD for payment 2024-08-14] [$250] Distance - "Add stop" button is shown when Start and Stop points are empty[/+]melvin-bot commentedon Aug 7, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 7, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 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-08-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Aug 7, 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:
akinwale commentedon Aug 14, 2024
This was a regression from #44748. Comment.
Regression Test Steps
Do we agree 👍 or 👎?
jliexpensify commentedon Aug 14, 2024
@etCoderDysto can you add your Upworks name to your GH profile please? It would help greatly so we can easily find you, thanks!
jliexpensify commentedon Aug 14, 2024
Payment Summary
C: @etCoderDysto $250
C+: @akinwale $250
Upwork job
jliexpensify commentedon Aug 14, 2024
Thank you, hired!
etCoderDysto commentedon Aug 14, 2024
I have accepted the offer. Thank you!
jliexpensify commentedon Aug 15, 2024
Everyone's paid and job closed, cheers!