-
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
[$1000] The Home Address City field is not filled in by Places autocomplete for addresses in certain non-US countries #16392
Comments
Triggered auto assignment to @dylanexpensify ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
reviewing now! |
Job added to Upwork: https://www.upwork.com/jobs/~01688c30375186fd45 |
Current assignee @dylanexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @stitesExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When the city (in this case, London) is in the autocomplete result, it should fill the City field when we select that result. What is the root cause of that problem?We are parsing the addressComponents from the Place Details API in a way that is not compatible with all countries. In the UK, for example, addresses within cities only have the What changes do you think we should make in order to solve the problem?Pull in the App/src/components/AddressSearch.js Lines 105 to 121 in fb90cd8
Then add it in as an extra fallback here, so that we pull it in if no App/src/components/AddressSearch.js Lines 131 to 137 in fb90cd8
From what I can see and from reading the docs, when We probably also want to rename the Finally, some test addresses:
|
@jjcoffee's proposal looks good to me. Even though I don't have much idea about it but it seems the fallback order is correct. cc: @stitesExpensify 🎀 👀 🎀 C+ reviewed |
Proposal Please re-state the problem that we are trying to solve in this issue: The Home Address City field is not filled in by Places autocomplete for addresses in certain non-US countries. What is the root cause of that problem: Here In the addressComponent from the Place Detail API is not showing “locality” parameter for some of the non-US countries, which fill up the city field. App/src/components/AddressSearch.js Line 108 in b0b31d1
What changes do you think we should make in order to solve the problem : To get city value, a new parameter “postal_town” needs to be added in the json parameter of the getAddressComponents. Apart from that another argument with OR ( || ) condition “postal_town” needs to be added to the city field in the values object. Hence the city field will be checked initially and if not available in response then it will consider cityFallBack else postal_town value will be taken as a city. What alternative solutions did you explore: None Expected result: |
@Snehal-Techforce We strictly prohibit duplicate proposals. Please read the contribution guidelines before making a proposal. |
@parasharrajat Thanks for your reply. We also do not prefer to submit duplicate proposal as per the guidelines. Also, will take care and not to submit close to similar proposal. |
Not overdue, seems @jjcoffee should get the job once @stitesExpensify agrees! |
@jjcoffee proposal LGTM! |
📣 @jjcoffee You have been assigned to this job by @stitesExpensify! |
Hey @parasharrajat, @stitesExpensify, @dylanexpensify - PR is ready! |
Looks like the automation failed here as the PR is in production, is there a way to kick Melvin into gear? Or does someone manually update the labels and paste in the checklist? |
@dylanexpensify Sorry to be a pain, but do you think you can paste in the BugZero Checklist (e.g. here)? I'd do it myself, but I'm not sure who is meant to be tagged in each task! Also, I think this should be held for payment for 7/4 as the PR was deployed to production on 31/3, I'm not sure if you/someone needs to add/update the labels? |
@dylanexpensify Can you please update the issue title and add a checklist template here? |
@dylanexpensify Gentle bump on this as it's overdue for payment (the PR was deployed to production on 31/3). |
Hi team! So sorry about the wait! Will do today!!! |
Please apply here @jjcoffee @parasharrajat!! |
Thanks - applied! Just an FYI, this one should also be due the 50% timeliness bonus (assigned 27/3, PR merged 28/3). |
Nice one! @jjcoffee @parasharrajat sent offers (will include bonus in payout)! |
@dylanexpensify When I go in to accept the offer I'm getting the message "This offer is not available anymore", and in an email notification from Upwork: "Your proposal was declined for the following reason:Job closed". Maybe you closed the job early? Also, forgot that I actually also reported this bug originally, so there's the reporting bonus to add too! |
ah silly upwork! Hold and let me get you a new offer (and yes, will pay out reporting too! :D) |
@jjcoffee just sent you an offer! |
Thanks, accepted! |
Alright fam, payments sent out to both of you! Thanks for your patience and apologies for my delay here! |
Regression Test here! |
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:
|
@parasharrajat @jjcoffee can you complete the above 3 tasks then we can close out! |
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: @parasharrajat @jjcoffee The PR that introduced the bug has been identified. Link to the PR: @parasharrajat @jjcoffee 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: N/A - I think it was an edge case which is hard to card as there can be a lot of addresses that can't be tested so not the PR author's mistake. @parasharrajat @jjcoffee A discussion in #contributor-plus 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: I don't think we could have done anything better to catch these errors. This is hard to catch edge cases and depends on geographical areas of the world. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
City field should be populated.
Actual Result:
City field empty
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.88-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
home-address-issue-2023-03-17_17.33.45.mp4
Recording.20.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jjcoffee
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679074491538929
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: