Skip to content

[HOLD for payment 2023-07-14] [$1000] App does not dynamically translate address options #21682

Closed

Description

@kbecciv

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:

  1. Open the app and login with user A (device 1)
  2. Open the app from another device and login with user A (device 2)
  3. From device 1, open settings->workspaces->any workspace->bank account->connect manually->fill in step 1 and continue
  4. From device 1, open state dropdown in step 2
  5. From device 2, change language from settings->preferences->Language
  6. In device 1, observe it dynamically translates the options
  7. From device 1, search anything in address fields to get some address options
  8. From device 2, change language from settings->preferences->Language
  9. 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

dynamically.not.updating.address.options.1.mp4
Recording.914.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687511828132209

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018a0af23838a98004
  • Upwork Job ID: 1673783375047602176
  • Last Price Increase: 2023-06-27

Activity

  1. added
    Daily
    Bug
    on Jun 27, 2023
  2. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. Pujan92 commented on Jun 27, 2023

    @Pujan92
    Contributor

    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 GooglePlacesAutocomplete and here we are updating the language from other device. So onInputChange won't be fired here.

    onInputChange: (text) => {

    What changes do you think we should make in order to solve the problem?

    We can add a dependency of props.query here 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.

    const query = useMemo(
    () => ({
    language: props.preferredLocale,
    types: 'address',
    components: props.isLimitedToUSA ? 'country:us' : undefined,
    }),
    [props.preferredLocale, props.isLimitedToUSA],
    );

    Result
    Screen.Recording.2023-06-28.at.1.27.03.AM.mov
  5. twisterdotcom commented on Jun 27, 2023

    @twisterdotcom
    Contributor

    Wow, I had no idea Google would return a different language for location searches.

  6. added
    External
    on Jun 27, 2023
  7. changed the title [-]App does not dynamically translate address options[/-] [+][$1000] App does not dynamically translate address options[/+] on Jun 27, 2023
  8. melvin-bot commented on Jun 27, 2023

    @melvin-bot
  9. added
    Help Wanted
    on Jun 27, 2023
  10. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Current assignee @twisterdotcom is eligible for the External assigner, not assigning anyone new.

  11. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

  12. 46 remaining items

  13. mananjadhav commented on Jul 10, 2023

    @mananjadhav
    Collaborator

    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?

  14. dangrous commented on Jul 10, 2023

    @dangrous
    Contributor

    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 :)

  15. mananjadhav commented on Jul 11, 2023

    @mananjadhav
    Collaborator

    I guess it can't hurt? Other than overloading QA :)

    Yeah that's what I wanted to confirm if it is concerning. To be safe we should just add it.

  16. twisterdotcom commented on Jul 11, 2023

    @twisterdotcom
    Contributor

    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.

  17. mananjadhav commented on Jul 11, 2023

    @mananjadhav
    Collaborator

    Thanks for confirming @twisterdotcom.

    Regression Test Proposal:

    1. Go to Settings -> Profile -> Personal Details -> Home Address
    2. In the Address Line 1, type any initial search say (123, Polar) and wait for the results to appear
    3. Keep the dropdown/form open in the current device
    4. In the second device, change the language (Settings -> Preferences -> Language)
    5. Verify in the first device, the list of addresses get updated with the newly selected language.

    @dangrous @twisterdotcom Are we good with this?

  18. dangrous commented on Jul 11, 2023

    @dangrous
    Contributor

    That works for me!

  19. sakluger commented on Jul 12, 2023

    @sakluger
    Contributor

    Quick question though, do I need to apply to the Upwork job if I am requesting the payments via NewDot?

    No need no apply on Upwork if you're requesting payment via NewDot.

  20. mananjadhav commented on Jul 12, 2023

    @mananjadhav
    Collaborator

    Thanks. 👍

  21. added
    Daily
    and removed
    Weekly
    on Jul 13, 2023
  22. twisterdotcom commented on Jul 14, 2023

    @twisterdotcom
    Contributor

    All paid out. @mananjadhav you'll need to request it via the Expensify Workspace. Keep me posted if there are any issues.

    cc @anmurali

  23. mananjadhav commented on Jul 15, 2023

    @mananjadhav
    Collaborator

    @twisterdotcom I've requested the payment via NewDot. Thanks.

  24. anmurali commented on Jul 18, 2023

    @anmurali

    #21682 (comment)
    Bonus applies, total payment to Manan of $1,500 will be paid today from New Dot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions