Skip to content

[HOLD for payment 2024-08-14] [$250] Wallet - State is not auto filled after selecting the address during "Get physical card" flow #46005

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: 9.0.10-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in to account that has Expensify Card (applausetester@applause.expensifail.com
    ).
  3. Go to Account settings > Wallet
  4. Click on the second Expensify card (for applausetester@applause.expensifail.com
    )
  5. Click Get physical card
  6. Enter phone number
  7. Proceed to "Enter your shipping address" step
  8. Enter address and select address from the suggestion list

Expected Result:

State will be auto filled after selecting the address

Actual Result:

State is not auto filled after selecting the address

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

Add any screenshot/video evidence

Bug6549534_1721659457149.bandicam_2024-07-22_22-40-13-630.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01bc16c42b34fa53cc
  • Upwork Job ID: 1816816721648392124
  • Last Price Increase: 2024-07-26
  • Automatic offers:
    • DylanDylann | Reviewer | 103345980
    • nkdengineer | Contributor | 103345985
Issue OwnerCurrent Issue Owner: @zanyrenney

Activity

  1. added
    Daily
    Bug
    on Jul 23, 2024
  2. melvin-bot commented on Jul 23, 2024

    @melvin-bot

    Triggered auto assignment to @zanyrenney (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.

  3. lanitochka17 commented on Jul 23, 2024

    @lanitochka17
    Author

    We think that this bug might be related to #wave-collect - Release 1

  4. lanitochka17 commented on Jul 23, 2024

    @lanitochka17
    Author

    @zanyrenney FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

  5. Krishna2323 commented on Jul 23, 2024

    @Krishna2323
    Contributor

    Proposal

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

    Wallet - State is not auto filled after selecting the address during "Get physical card" flow

    What is the root cause of that problem?

    We are using the wrong prop defaultValue for passing the state value to StateSelector.

    <InputWrapper
    InputComponent={StateSelector}
    inputID={INPUT_IDS.STATE}
    defaultValue={state}
    onValueChange={onAddressChanged}
    shouldSaveDraft={shouldSaveDraft}
    />

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

    We should be using value prop instead of defaultValue prop because that is expected inside StateSelector.

    function StateSelector(
    {errorText, onBlur, value: stateCode, label, onInputChange, wrapperStyle, stateSelectorRoute = ROUTES.SETTINGS_ADDRESS_STATE}: StateSelectorProps,
    ref: ForwardedRef<View>,
    ) {

    We should also check in other places.

    What alternative solutions did you explore? (Optional)

    Result

    address_state_auto_fill_issu.mp4
  6. zanyrenney commented on Jul 26, 2024

    @zanyrenney
    Contributor

    adding an external label, the bug is reproducible.

  7. added
    External
    on Jul 26, 2024
  8. changed the title [-]Wallet - State is not auto filled after selecting the address during "Get physical card" flow[/-] [+][$250] Wallet - State is not auto filled after selecting the address during "Get physical card" flow[/+] on Jul 26, 2024
  9. melvin-bot commented on Jul 26, 2024

    @melvin-bot
  10. added
    Help Wanted
    on Jul 26, 2024
  11. 14 remaining items

  12. added
    Weekly
    and removed
    Daily
    on Aug 1, 2024
  13. nkdengineer commented on Aug 1, 2024

    @nkdengineer
    Contributor

    @DylanDylann this PR is ready for review

  14. added
    Weekly
    Awaiting Payment
    and removed
    Weekly
    on Aug 7, 2024
  15. changed the title [-][$250] Wallet - State is not auto filled after selecting the address during "Get physical card" flow[/-] [+][HOLD for payment 2024-08-14] [$250] Wallet - State is not auto filled after selecting the address during "Get physical card" flow[/+] on Aug 7, 2024
  16. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. removed
    Reviewing
    on Aug 7, 2024
  18. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.17-2 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 2024-08-14. 🎊

    For reference, here are some details about the assignees on this issue:

  19. melvin-bot commented on Aug 7, 2024

    @melvin-bot

    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:

    • [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR:
    • [@DylanDylann] 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:
    • [@DylanDylann] A discussion in #expensify-bugs 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:
    • [@DylanDylann] Determine if we should create a regression test for this bug.
    • [@DylanDylann] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
    • [@zanyrenney] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  20. zanyrenney commented on Aug 12, 2024

    @zanyrenney
    Contributor

    2 days remaining before payout!

  21. zanyrenney commented on Aug 14, 2024

    @zanyrenney
    Contributor

    checked neither are paid via ND.

  22. zanyrenney commented on Aug 14, 2024

    @zanyrenney
    Contributor

    payment summary

    paid @DylanDylann $250 via upwork
    paid @nkdengineer $250 via upwork.

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

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions