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 2023-07-14] [$1000] App does not dynamically translate address options #21682
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
Open the app from another device and login with user A (device 2)
From device 1, open settings->workspaces->any workspace->bank account->connect manually->fill in step 1 and continue
From device 1, open state dropdown in step 2
From device 2, change language from settings->preferences->Language
In device 1, observe it dynamically translates the options
From device 1, search anything in address fields to get some address options
From device 2, change language from settings->preferences->Language
In device 1, observe that address options are not translated dynamically like other fields
Expected Result:
App should dynamically translate address options like we do for other field options
Actual Result:App does not dynamically translate address options
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.31-2 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: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
App does not dynamically translate address options
What is the root cause of that problem?
Currently, the list of the places gets fetched when the text input gets changed within GooglePlacesAutocomplete and here we are updating the language from other device. So onInputChange won't be fired here.
What changes do you think we should make in order to solve the problem?
We can add a dependency of props.queryhere in the upstream as we are updating the query object when the preferredLocale gets changed. This change will make the new api call to fetch the list with the updated preferredLocale.
changed the title [-]App does not dynamically translate address options[/-][+][$1000] App does not dynamically translate address options[/+]on Jun 27, 2023
In terms of checking I wouldn't call this a bug, but more of a Feature Request.
The change is in the 3rd party library fork, which could break when we sync upstream. The occurrence of this event is rare as we're using the lib in limited capacity. Hence, I am in two minds if we need a regression test suite here. @dangrous@twisterdotcom wdyt?
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
melvin-bot commentedon Jun 27, 2023
Triggered auto assignment to @twisterdotcom (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 27, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)twisterdotcom commentedon Jun 27, 2023
Confused about this one: https://expensify.slack.com/archives/C049HHMV9SM/p1687894799923699?thread_ts=1687511828.132209&cid=C049HHMV9SM
Pujan92 commentedon Jun 27, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
App does not dynamically translate address options
What is the root cause of that problem?
Currently, the list of the places gets fetched when the text input gets changed within
GooglePlacesAutocompleteand here we are updating the language from other device. SoonInputChangewon't be fired here.App/src/components/AddressSearch/index.js
Line 260 in 27d657e
What changes do you think we should make in order to solve the problem?
We can add a dependency of
props.queryhere in the upstream as we are updating the query object when thepreferredLocalegets changed. This change will make the new api call to fetch the list with the updatedpreferredLocale.App/src/components/AddressSearch/index.js
Lines 97 to 104 in 27d657e
Result
Screen.Recording.2023-06-28.at.1.27.03.AM.mov
twisterdotcom commentedon Jun 27, 2023
Wow, I had no idea Google would return a different language for location searches.
[-]App does not dynamically translate address options[/-][+][$1000] App does not dynamically translate address options[/+]melvin-bot commentedon Jun 27, 2023
Job added to Upwork: https://www.upwork.com/jobs/~018a0af23838a98004
melvin-bot commentedon Jun 27, 2023
Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 27, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (
External)46 remaining items
mananjadhav commentedon Jul 10, 2023
In terms of checking I wouldn't call this a bug, but more of a Feature Request.
The change is in the 3rd party library fork, which could break when we sync upstream. The occurrence of this event is rare as we're using the lib in limited capacity. Hence, I am in two minds if we need a regression test suite here. @dangrous @twisterdotcom wdyt?
dangrous commentedon Jul 10, 2023
Yeah I agree with you, definitely not a regression, probably not exactly a bug either, more of an added bonus.
In terms of the test, I'm also not sure. I guess it can't hurt? Other than overloading QA :)
mananjadhav commentedon Jul 11, 2023
Yeah that's what I wanted to confirm if it is concerning. To be safe we should just add it.
twisterdotcom commentedon Jul 11, 2023
Let's not worry about overloading QA. What would be the entirety of the test? I'll use that for the test case we create.
mananjadhav commentedon Jul 11, 2023
Thanks for confirming @twisterdotcom.
Regression Test Proposal:
@dangrous @twisterdotcom Are we good with this?
dangrous commentedon Jul 11, 2023
That works for me!
sakluger commentedon Jul 12, 2023
No need no apply on Upwork if you're requesting payment via NewDot.
mananjadhav commentedon Jul 12, 2023
Thanks. 👍
twisterdotcom commentedon Jul 13, 2023
https://www.upwork.com/en-gb/nx/wm/client/contracts?selectedSortBy=Start%20date&orderIsAsc=false&searchText=21682
https://github.com/Expensify/Expensify/issues/299728
twisterdotcom commentedon Jul 14, 2023
All paid out. @mananjadhav you'll need to request it via the Expensify Workspace. Keep me posted if there are any issues.
cc @anmurali
mananjadhav commentedon Jul 15, 2023
@twisterdotcom I've requested the payment via NewDot. Thanks.
anmurali commentedon Jul 18, 2023
#21682 (comment)
Bonus applies, total payment to Manan of $1,500 will be paid today from New Dot