Skip to content

[HOLD for payment 2023-10-31] Address - 'Hmm it's not here' page shows up when selecting a country #30128

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.3.88-3

Reproducible in staging?: Yes

Reproducible in production?: No

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

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Settings > Profile > Personal details > Address > Country
  3. Select a country

Expected Result:

Country is selected successfully

Actual Result:

'Hmm it's not here' page shows up

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6245644_1697905786399.bandicam_2023-10-21_20-14-31-107.mp4
MacOS: Desktop

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 21, 2023
  2. melvin-bot commented on Oct 21, 2023

    @melvin-bot

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

  3. melvin-bot commented on Oct 21, 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. OSBotify commented on Oct 21, 2023

    @OSBotify
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  5. melvin-bot commented on Oct 21, 2023

    @melvin-bot

    Triggered auto assignment to @luacmartins (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  6. ahmedGaber93 commented on Oct 21, 2023

    @ahmedGaber93
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Address - 'Hmm it's not here' page shows up when selecting a country

    What is the root cause of that problem?

    After select country we backTo using route.params.backTo

    Navigation.navigate(`${route.params.backTo}?country=${option.value}`);

    the issue here is the URL is not correct, so the route.params.backTo is return undifined
    the url has 2 "?" ?country=US?backTo=
    http://localhost:8082/settings/profile/personal-details/address/country?country=US?backTo=%2Fsettings%2Fprofile%2Fpersonal-details%2Faddress

    this because getBackToParam is start with "?" regardless the main URL has "?" or not

    App/src/ROUTES.ts

    Lines 14 to 16 in 6031f3e

    function getBackToParam(backTo?: string): string {
    return backTo ? `?backTo=${encodeURIComponent(backTo)}` : '';
    }

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

    We need to change getBackToParam to start with "?" if is first params and else start with "&".

    function getBackToParam(backTo?: string, isFirstParam: boolean = true): string {
        return backTo ? `${isFirstParam ? "?" : "&"}backTo=${encodeURIComponent(backTo)}` : '';
    }

    What alternative solutions did you explore? (Optional)

    or replace getBackToParam with new method getUrlWithBackToParam

    function getUrlWithBackToParam(url: string, backTo?: string): string {
        const backToParam = backTo ? `${url.includes("?") ? "&" : "?"}backTo=${encodeURIComponent(backTo)}` : '';
        return url + backToParam;
    }
    
    // use it like this
    // getRoute: (accountID: string | number, backTo?: string) => `a/${accountID}${getBackToParam(backTo)}`
    getRoute: (accountID: string | number, backTo?: string) => getUrlWithBackToParam(`a/${accountID}`)
  7. dummy-1111 commented on Oct 21, 2023

    @dummy-1111
    Contributor

    This is a regression from the PR #29813

    cc @tgolen

  8. thienlnam commented on Oct 22, 2023

    @thienlnam
    Contributor

    Hmm I tried the revert of that PR but still running into a different problem when trying the reproduction steps
    http://localhost:8082/settings/profile/personal-details/address

    Screenshot 2023-10-21 at 5 10 12 PM

    Uncaught Error: allCountries.a was not found in the default language

  9. 41 remaining items

  10. luacmartins commented on Nov 20, 2023

    @luacmartins
    Contributor

    Just missing payment

  11. melvin-bot commented on Nov 24, 2023

    @melvin-bot

    @JmillsExpensify, @luacmartins Whoops! This issue is 2 days overdue. Let's get this updated quick!

  12. JmillsExpensify commented on Nov 24, 2023

    @JmillsExpensify
    Contributor

    @ahmedGaber93 Do you mind confirming that you haven't been paid for this issue? I'm unable to find a linked Upwork job, so I just want to be sure before creating another job.

  13. ahmedGaber93 commented on Nov 24, 2023

    @ahmedGaber93
    Contributor

    @JmillsExpensify no, I haven't been paid for this issue.

  14. JmillsExpensify commented on Nov 24, 2023

    @JmillsExpensify
    Contributor

    Thanks I'll create an Upwork job now.

  15. JmillsExpensify commented on Nov 24, 2023

    @JmillsExpensify
    Contributor
  16. ahmedGaber93 commented on Nov 24, 2023

    @ahmedGaber93
    Contributor
  17. JmillsExpensify commented on Nov 24, 2023

    @JmillsExpensify
    Contributor

    Offer sent! Thank you

  18. JmillsExpensify commented on Nov 24, 2023

    @JmillsExpensify
    Contributor

    Offer paid via Upwork. Thanks everyone!

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringMonthlyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions