-
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 2024-03-29] [MEDIUM] Distance - Unable to save manually entered address after selecting address from list #37640
Comments
Triggered auto assignment to @greg-schroeder ( |
We think that this bug might be related to #wave5 |
@greg-schroeder FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Unable to save manually entered address after selecting address from list What is the root cause of that problem?We used
but we retrieved using
What changes do you think we should make in order to solve the problem?Change values[`waypoint${pageIndex}`] or What alternative solutions did you explore? (Optional)NA |
Job added to Upwork: https://www.upwork.com/jobs/~011597298ea5827798 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Unable to save manually entered address after selecting address from list What is the root cause of that problem?When saving a defined waypoint for the first time, we save an object contains the What changes do you think we should make in order to solve the problem?When selecting a waypoint in offline mode, we need to assign an empty string as the fallback value, to ensure that Onyx overrides the old name when it merges with the new object. so we need to change this:
to name: values.name ?? '', and do the same here |
ProposalPlease re-state the problem that we are trying to solve in this issue.Can't save an address while offline if there is already a previously selected address while online. What is the root cause of that problem?The distance start and stop list shows either the waypoint name or address.
When we first select a suggested waypoint while online, we save both of the waypoint name and address. App/src/pages/iou/request/step/IOURequestStepWaypoint.tsx Lines 143 to 151 in af68510
While offline, we also try to save both waypoint name and address. App/src/pages/iou/request/step/IOURequestStepWaypoint.tsx Lines 116 to 131 in af68510
However, the waypoint name is always undefined because What changes do you think we should make in order to solve the problem?While offline, we will never be able to get the address name, so to overwrite the previous waypoint name, we can just set
this was previously fixed in #33692 |
● Use State to Manage Address: ➢Define a state variable to store the address, let's call it address. ➢Update Address when Manually Entered: ➢Select Address from List: ➢Save the Address: |
📣 @5695mp! 📣
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance - Unable to save manually entered address after selecting an address from the list What is the root cause of that problem?In the App/src/libs/actions/Transaction.ts Lines 64 to 67 in af68510
Therefore, when the user submits the new waypoint, App/src/pages/iou/request/step/IOURequestStepWaypoint.tsx Lines 123 to 130 in f92b845
What changes do you think we should make in order to solve the problem?In the Create a condition after this line as illustrated.
|
@abzokhattab's proposal looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Hi @parasharrajat, I believe we need remove App/src/libs/actions/Transaction.ts Lines 90 to 94 in 22cb01c
Therefore, if the address is invalid and the GPS coordiantes are present then it will lead to a regression. |
How come the invalid address has GPS coordinates? Does this happen currently in the code? |
I see that the invalid address is already not returned as a recent address when online or offline Screen.Recording.2024-03-04.at.8.21.40.PM.mov |
If the address is invalid, the waypoint will still be valid because the GPS coordinates from the previous valid waypoint are sent as a part of the waypoint in the Since the backend expects the Notice that the GPS coordinates from the merged 1) Initial 2) Merged However, removing |
@abzokhattab what's a reasonable ETA to expect a PR? |
Should be ready today… thanks amy |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.55-3 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-29. 🎊 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 pending, not overdue |
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:
Regression Test StepsPrecondition:
Do you agree 👍 or 👎 ? |
Processing |
Offer sent @abzokhattab |
@abzokhattab - C - $500 |
Thank you ... just accepted the offer |
filed regression test, paying, closing |
Payment requested as per #37640 (comment) |
$500 approved for @parasharrajat |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.46-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/4355973
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:
Precondition:
Expected Result:
The new address is saved
Actual Result:
The new address is not saved
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6398757_1709324381934.bandicam_2024-03-02_01-20-57-341.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: