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
[Due for payment 2025-05-22] [Due for payment 2025-02-13] [$250] Workflows - Street doesn't get automatically filled out for a specific address #55295
Version Number: 9.0.86-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):nathanmulugetatesting+2818@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Navigate to staging.new.expensify.com
Create a workspace
Enable workflows
Go through plaid connection method
Go through the flow until step 2 (What's your address?)
Type "1" on street address
Click on "1132 Murphy Ridge Rd" from the options
Expected Result:
Street address gets filled out automatically
Actual Result:
Street address stays empty and validation error is shown
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android: Standalone
Android: HybridApp
Android: mWeb Chrome
iOS: Standalone
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidenceBug6714924_1736961211864.bandicam_2025-01-15_20-08-19-028.mp4
Please re-state the problem that we are trying to solve in this issue.
Street doesn't get automatically filled out for a specific address
What is the root cause of that problem?
Currently, in input field we are displaying ${street_number} ${route} from here. If ${street_number} ${route} not present then we display street name from here.
But in some edge-case google place API does not return the street_number, route and street-address, because of that input value set to empty and we see validation error.
What changes do you think we should make in order to solve the problem?
🚨 Edited by proposal-police: This proposal was edited at 2025-01-16 04:34:46 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workflows - Street doesn't get automatically filled out for a specific address
What is the root cause of that problem?
We are getting the streetNumber & streetName using GooglePlacesUtils.getAddressComponents(addressComponents but for some locations the addressComponents doesn't include the streetNumber & streetName.
⚠️@Krishna2323 Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).
Please re-state the problem that we are trying to solve in this issue.
Street doesn't get automatically filled out for a specific address.
What is the root cause of that problem?
We are using street_number and route from details?.address_components, but in some of the case street_number and route does not exist because of the input value set to empty and validation error throws.
What changes do you think we should make in order to solve the problem?
To fix issue we can we can make below changes.
As per @Krishna2323's suggestion, we can modify the code in the following location:
However, it is important to note that in some edge cases, the street and streetNumber from getPlaceAutocompleteTerms may not return the necessary data.
To handle edge cases where street and streetNumber from getPlaceAutocompleteTerms do not return data, we should implement an additional check at the following location https://github.com/Expensify/App/blob/main/src/components/AddressSearch/index.tsx#L224 as suggested by @mohit6789 . The reason for this is that structured_formatting?.main_text is selected dropdown display text and can serve as a reliable fallback.
if (!values.street && autocompleteData?.structured_formatting?.main_text) {
values.street = autocompleteData?.structured_formatting?.main_text;
}
Note: While this proposal may seem similar to the suggestions from @mohit6789 and @Krishna2323, it is still worth mentioning as a necessary addition.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
changed the title [-]Workflows - Street doesn't get automatically filled out for a specific address[/-][+][$250] Workflows - Street doesn't get automatically filled out for a specific address[/+]on Jan 22, 2025
@mananjadhav@CortneyOfstad@mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
1a. Result of the original design (eg. a case wasn't considered)
1b. Mistake during implementation
1c. Backend bug
1z. Other:
Where bug was reported:
2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
2b. Reported on staging (eg. found during regression or PR testing)
2d. Reported on a PR
2z. Other:
Who reported the bug:
3a. Expensify user
3b. Expensify employee
3c. Contributor
3d. QA
3z. Other:
[Contributor] 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.
It's an edge case where we haven't added the fallback for street number. So no specific offending PR.
Link to comment: NA
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
@CortneyOfstad I think there should be an existing test for this behavior, but I've added one anyway. Feel free to discard if it already exists.
Regression Test Proposal
Test:
Go to Settings > Profile > Address
Type "1132" on street address
Click on "1132 Murphy Ridge Rd" from the options.
Verify street address gets filled out automatically.
changed the title [-][Due for payment 2025-02-13] [$250] Workflows - Street doesn't get automatically filled out for a specific address[/-][+][Due for payment 2025-05-22] [Due for payment 2025-02-13] [$250] Workflows - Street doesn't get automatically filled out for a specific address[/+]on May 15, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@mananjadhav@CortneyOfstad@mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon Jan 15, 2025
Triggered auto assignment to @CortneyOfstad (
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.mohit6789 commentedon Jan 15, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Street doesn't get automatically filled out for a specific address
What is the root cause of that problem?
Currently, in input field we are displaying
${street_number} ${route}from here. If${street_number} ${route}not present then we display street name from here.But in some edge-case google place API does not return the
street_number,routeandstreet-address, because of that input value set to empty and we see validation error.What changes do you think we should make in order to solve the problem?
To fix this issue we can write below code here.
Here if street value is empty then we can show the street name from the autocompleteData.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI bug so NA
What alternative solutions did you explore? (Optional)
Krishna2323 commentedon Jan 16, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-01-16 04:34:46 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Workflows - Street doesn't get automatically filled out for a specific address
What is the root cause of that problem?
streetNumber&streetNameusingGooglePlacesUtils.getAddressComponents(addressComponentsbut for some locations theaddressComponentsdoesn't include thestreetNumber&streetName.App/src/components/AddressSearch/index.tsx
Lines 127 to 155 in 5133090
App/src/components/AddressSearch/index.tsx
Line 178 in 5133090
What changes do you think we should make in order to solve the problem?
getPlaceAutocompleteTermsto also returnstreetNumber, we can do that by simply addingstreetNumbertofieldsToExtract.App/src/libs/GooglePlacesUtils.ts
Line 36 in 5133090
App/src/libs/GooglePlacesUtils.ts
Lines 39 to 51 in 5133090
streetandstreetNumberfromgetPlaceAutocompleteTerms, we will name themstreetFallback&streetNumberFallback.App/src/components/AddressSearch/index.tsx
Lines 166 to 170 in 5133090
||operator to addstreetFallback&streetNumberFallbackas fallback value.App/src/components/AddressSearch/index.tsx
Lines 177 to 178 in 5133090
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
Result
Monosnap.screencast.2025-01-16.10-01-58.mp4
github-actions commentedon Jan 16, 2025
ishakakkad commentedon Jan 16, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Street doesn't get automatically filled out for a specific address.
What is the root cause of that problem?
We are using street_number and route from details?.address_components, but in some of the case street_number and route does not exist because of the input value set to empty and validation error throws.
What changes do you think we should make in order to solve the problem?
To fix issue we can we can make below changes.
Return street and streetNumber from here
App/src/libs/GooglePlacesUtils.ts
Lines 36 to 51 in 5133090
App/src/components/AddressSearch/index.tsx
Line 178 in 5133090
However, it is important to note that in some edge cases, the street and streetNumber from getPlaceAutocompleteTerms may not return the necessary data.
Note: While this proposal may seem similar to the suggestions from @mohit6789 and @Krishna2323, it is still worth mentioning as a necessary addition.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
NA
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jan 21, 2025
@CortneyOfstad Huh... This is 4 days overdue. Who can take care of this?
[-]Workflows - Street doesn't get automatically filled out for a specific address[/-][+][$250] Workflows - Street doesn't get automatically filled out for a specific address[/+]melvin-bot commentedon Jan 22, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021882178300262274254
26 remaining items
melvin-bot commentedon Feb 6, 2025
@mananjadhav @CortneyOfstad @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
CortneyOfstad commentedon Feb 11, 2025
@mananjadhav please complete the checklist as soon as you can to avoid any delay in payment. Thank you!
mananjadhav commentedon Feb 11, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] 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.
It's an edge case where we haven't added the fallback for street number. So no specific offending PR.
Link to comment: NA
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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: NA
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
@CortneyOfstad I think there should be an existing test for this behavior, but I've added one anyway. Feel free to discard if it already exists.
Regression Test Proposal
Test:
Do we agree 👍 or 👎
melvin-bot commentedon Feb 12, 2025
@mananjadhav @mjasikowski @CortneyOfstad @Krishna2323 this issue is now 4 weeks old, please consider:
Thanks!
CortneyOfstad commentedon Feb 13, 2025
I confirmed there is already a test for this, so we can disregard — thanks @mananjadhav!
CortneyOfstad commentedon Feb 13, 2025
Payment Summary
@mananjadhav — to be paid $250 via NewDot
@Krishna2323 — paid $250 via Upwork
Thanks all!
garrettmknight commentedon Feb 19, 2025
$250 approved for @mananjadhav
[-][Due for payment 2025-02-13] [$250] Workflows - Street doesn't get automatically filled out for a specific address[/-][+][Due for payment 2025-05-22] [Due for payment 2025-02-13] [$250] Workflows - Street doesn't get automatically filled out for a specific address[/+]melvin-bot commentedon May 15, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.45-21 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 2025-05-22. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 15, 2025
@mananjadhav @CortneyOfstad @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]