Skip to content

[HOLD for payment 2023-07-17] [$1000] App changes emoji tax number to actual number, causing confusion for user during manual bank account connection #21065

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. Go to the app settings.
  2. Navigate to your workspace.
  3. Navigate to the bank account section.
  4. Manually connect a bank account using routing number 074000078 and account number 12345.
  5. Add company information and use the tax number 0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣. Click continue.
  6. Observe that the app does not differentiate the emoji number in the tax number field from the actual numbers, causing confusion for the user. When the user goes back to the form, the app changes the emoji number to the actual number.

Expected Result:

The app should differentiate the emoji number in the tax number field from the actual numbers and display a relevant error message if an incorrect format is entered. The app should not change the emoji number to the actual number; instead, it is preferable to display an error message initially.

Actual Result:

The app changes the emoji number in the tax number field to the actual number, causing confusion for the user.

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.29.2

Reproducible in staging?: yes

Reproducible in production?: yes

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

screen-capture.82.1.webm
Recording.775.1.mp4

Expensify/Expensify Issue URL:

Issue reported by: @tewodrosGirmaA

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686476984591029

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018839cf0c086e82de
  • Upwork Job ID: 1671530734389030912
  • Last Price Increase: 2023-07-05

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jun 19, 2023
  2. eh2077 commented on Jun 19, 2023

    @eh2077
    Contributor

    Proposal

    Combined proposal from #21062 (comment) to fix Zip Code issue.

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

    App changes emoji tax number to actual number

    What is the root cause of that problem?

    The root cause of this issue is that, in method ValidationUtils.isValidTaxID

    function isValidTaxID(taxID) {
    return taxID && CONST.REGEX.TAX_ID.test(taxID.replace(CONST.REGEX.NON_NUMERIC, ''));
    }

    We call taxID.replace(CONST.REGEX.NON_NUMERIC, '') to strip out non-digit characters before testing it.

    "0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣".replace(/\D/g, '')

    outputs 090909090, so testing CONST.REGEX.TAX_ID.test("090909090") returns true and 0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣ is treated as valid tax id input.

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

    After checking other similar validation use cases in ValidationUtils, like isValidDebitCard and isValidSecurityCode, I find that they're not doing stripping out non-digit characters before testing regex pattern. So, in this case, I think also shouldn't strip out non-digit characters before testing regex.

    To fix this issue, we can change this line

    return taxID && CONST.REGEX.TAX_ID.test(taxID.replace(CONST.REGEX.NON_NUMERIC, ''));

    to

    return taxID && CONST.REGEX.TAX_ID.test(taxID);

    What alternative solutions did you explore? (Optional)

    N/A

  3. melvin-bot commented on Jun 19, 2023

    @melvin-bot

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

  4. melvin-bot commented on Jun 19, 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
  5. sonialiap commented on Jun 21, 2023

    @sonialiap
    Contributor

    😂 that is odd behavior, let's throw an error. Triaging to external

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jun 21, 2023
  7. changed the title [-]App changes emoji tax number to actual number, causing confusion for user during manual bank account connection[/-] [+][$1000] App changes emoji tax number to actual number, causing confusion for user during manual bank account connection[/+] on Jun 21, 2023
  8. melvin-bot commented on Jun 21, 2023

    @melvin-bot
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jun 21, 2023
  10. melvin-bot commented on Jun 21, 2023

    @melvin-bot

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

  11. melvin-bot commented on Jun 21, 2023

    @melvin-bot

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

  12. sonialiap commented on Jun 21, 2023

    @sonialiap
    Contributor

    I propose we expand this issue's scope to prevent emoji entry (i.e. throw an error) into any of the bank form fields

  13. 42 remaining items

  14. melvin-bot commented on Jul 10, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.38-7 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 2023-07-17. 🎊

    After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

    • External issue reporter
    • Contributor that fixed the issue
    • Contributor+ that helped on the issue and/or PR

    As a reminder, here are the bonuses/penalties that should be applied for any External issue:

    • Merged PR within 3 business days of assignment - 50% bonus
    • Merged PR more than 9 business days after assignment - 50% penalty
  15. melvin-bot commented on Jul 10, 2023

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

    • [@parasharrajat] The PR that introduced the bug has been identified. Link to the PR:
    • [@parasharrajat] 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:
    • [@parasharrajat] 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:
    • [@parasharrajat] Determine if we should create a regression test for this bug.
    • [@parasharrajat] 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.
    • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  16. eh2077 commented on Jul 20, 2023

    @eh2077
    Contributor

    Friendly bump @sonialiap This is ready for payment

  17. parasharrajat commented on Jul 20, 2023

    @parasharrajat
    Member

    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:

    Regression Test Steps

    1. Go to Settings => Workspaces => Select a Workspace => Bank account => Connect manually => Connect bank account
    2. Fill in routing number 074000078 and account number 12345
    3. Check the terms of use and click the continue button.
    4. Try to enter zip codes one by one: 12️⃣345, 123456, and 123452️⃣. Verify they're all hinted as invalid zip codes.
    5. Enter zip code 12345 and verify that it's a valid zip code
    6. Try to enter tax IDs one by one: 0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣, 0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0️⃣9️⃣0, 1234567890. Verify they're all hinted as invalid tax IDs.
    7. Enter tax ID 123456789 and verify that it's a valid tax ID

    Do you agree 👍 or 👎 ?

  18. sonialiap commented on Jul 21, 2023

    @sonialiap
    Contributor

    Apologies for the delay! Somehow I missed this issue 🙈

    @eh2077 offer sent for fix (+bonus) - paid ✔️
    @tewodrosGirmaA - paid for reporting issue ✔️
    @parasharrajat - to be paid for review(+bonus) via NewDot

  19. eh2077 commented on Jul 21, 2023

    @eh2077
    Contributor

    @sonialiap Accepted the offer thanks

  20. sonialiap commented on Jul 21, 2023

    @sonialiap
    Contributor

    Upwork paid and request to add regression test submitted, closing

  21. parasharrajat commented on Jul 24, 2023

    @parasharrajat
    Member

    Payment requested 1500.

  22. JmillsExpensify commented on Jul 27, 2023

    @JmillsExpensify
    Contributor

    Reviewed details for @parasharrajat. This is accurate based on summary from Business Reviewer and approved for payment in NewDot.

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.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions