Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2024-07-24] [$250] Workspace - Bank account personal info isn't accepting characters with umlaut as name #43929

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 18, 2024 · 23 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 18, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.85-0
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. Log in with a new expensifail account
  2. Create a workspace
  3. Enable Workflows
  4. Navigate to workspace settings - Workflows
  5. Click on "Connect bank account"
  6. Choose the manual option
  7. Input "011401533" for Routing Number
  8. Input "1111222233331111" for Account Number
  9. Input "Ádám" for first name
  10. Input "Horváth for last name

Expected Result:

Characters with umlaut should be accepted

Actual Result:

Bank account personal info isn't accepting characters with umlaut as name. Please enter a valid name error appears. These characters are accepted in the Save the world - teacher and principal flows

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

Bug6517259_1718718248651.bandicam_2024-06-18_15-34-26-002.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01000955591143b611
  • Upwork Job ID: 1805814229750460922
  • Last Price Increase: 2024-06-26
  • Automatic offers:
    • suneox | Reviewer | 102945796
    • eucool | Contributor | 102945799
Issue OwnerCurrent Issue Owner: @JmillsExpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 18, 2024
Copy link

melvin-bot bot commented Jun 18, 2024

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

@lanitochka17
Copy link
Author

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

@melvin-bot melvin-bot bot added the Overdue label Jun 20, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

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

Copy link

melvin-bot bot commented Jun 25, 2024

@JmillsExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01000955591143b611

@melvin-bot melvin-bot bot changed the title Workspace - Bank account personal info isn't accepting characters with umlaut as name [$250] Workspace - Bank account personal info isn't accepting characters with umlaut as name Jun 26, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 26, 2024
@JmillsExpensify
Copy link

Opening up to community

Copy link

melvin-bot bot commented Jun 26, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2024
@dominictb
Copy link
Contributor

Proposal

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

Bank account personal info isn't accepting characters with umlaut as name. Please enter a valid name error appears. These characters are accepted in the Save the world - teacher and principal flows

What is the root cause of that problem?

We don't allow users to enter the accented characters in

const hasAccentedChars = !!name.match(CONST.REGEX.ACCENT_LATIN_CHARS);

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

Remove the above condition

What alternative solutions did you explore? (Optional)

We can update the isValidLegalName based on BE side.

@eucool
Copy link
Contributor

eucool commented Jun 26, 2024

Proposal

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

Bank account personal information doesn't accept umlaut characters.

What is the root cause of that problem?

We have a check in place which checks for isValidLegalName, this will not allow umlaut.

This is the RCA.

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

We should use isValidPersonName instead here, this will reject special characters and accept umlaut.

so we need to update the following block of code:

if (values.firstName && !ValidationUtils.isValidLegalName(values.firstName)) {
errors.firstName = translate('bankAccount.error.firstName');
}
if (values.lastName && !ValidationUtils.isValidLegalName(values.lastName)) {
errors.lastName = translate('bankAccount.error.lastName');
}
return errors;

At both the places above, we will use isValidPersonName util function:

if (values.firstName && !ValidationUtils. isValidPersonName(values.firstName)) {
                errors.firstName = translate('bankAccount.error.firstName');
            }

            if (values.lastName && !ValidationUtils. isValidPersonName(values.lastName)) {
                errors.lastName = translate('bankAccount.error.lastName');
            }

What alternative solutions did you explore? (Optional)

@suneox
Copy link
Contributor

suneox commented Jun 26, 2024

Thanks for @dominictb & @eucool proposals. The RCA is correct and I have some feedback:

About @dominictb proposal to remove the condition check hasAccentedChars in the function isValidLegalName can works but it will raise regression in other places because that function allows accents/diacritics characters, but APIs from other places do not support accents/diacritics.

Data test:

Việt Nam: Công Phạm
Hungary: Horváth Ádám
France: Crème Brûlée
Spain: José Rodríguez
Portugal: João Silva
Germany: Müller Schön
Turkey: Ayşe Yılmaz

About @eucool solution, it seems like can work if we only update for Bank account personal info screen

We use isValidLegalName at a lot of places where the behaviour to reject umlaut is required so instead of updating that util, we should instead use isValidPersonName:

I don't think we need to update all of them will also raise regression with the data test above

Next step: Waiting @dominictb & @eucool update there proposal

@eucool
Copy link
Contributor

eucool commented Jun 26, 2024

@suneox what are the next steps here I proposed that we should use isValidPersonName in the bank account personal name page instead of the current isValidLegalName , what should I update in my proposal confused a little

I don't think we need to update all of them will also raise regression with the data test above

Yes is agree I just mentioned it for the additional point, the changes in my solution are simple:

if (values.firstName && !ValidationUtils.isValidLegalName(values.firstName)) {
errors.firstName = translate('bankAccount.error.firstName');
}
if (values.lastName && !ValidationUtils.isValidLegalName(values.lastName)) {
errors.lastName = translate('bankAccount.error.lastName');
}
return errors;

At both the places above, we will use isValidPersonName util function:

if (values.firstName && !ValidationUtils. isValidPersonName(values.firstName)) {
                errors.firstName = translate('bankAccount.error.firstName');
            }

            if (values.lastName && !ValidationUtils. isValidPersonName(values.lastName)) {
                errors.lastName = translate('bankAccount.error.lastName');
            }

@suneox
Copy link
Contributor

suneox commented Jun 26, 2024

what should I update in my proposal confused a little

@eucool Ah, You should update your proposal with more detail as mentioned above and update unnecessary content, because the internal reviewer will review your solutions again instead of reading the entire conversation to get the context.

@eucool
Copy link
Contributor

eucool commented Jun 26, 2024

Updated proposal

Updated proposal to remove unwanted content and added some code

@suneox
Copy link
Contributor

suneox commented Jun 29, 2024

@eucool proposal LGTM we can go with this solution.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jun 29, 2024

Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot added Overdue and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Jul 1, 2024
Copy link

melvin-bot bot commented Jul 1, 2024

📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jul 1, 2024

📣 @eucool 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Jul 1, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] Workspace - Bank account personal info isn't accepting characters with umlaut as name [HOLD for payment 2024-07-24] [$250] Workspace - Bank account personal info isn't accepting characters with umlaut as name Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

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

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

Copy link

melvin-bot bot commented Jul 17, 2024

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:

  • [@suneox] The PR that introduced the bug has been identified. Link to the PR:
  • [@suneox] 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:
  • [@suneox] 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:
  • [@suneox] Determine if we should create a regression test for this bug.
  • [@suneox] 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.
  • [@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@suneox
Copy link
Contributor

suneox commented Jul 20, 2024

  • [@suneox] The PR that introduced the bug has been identified. Link to the PR: I don't think there's a PR responsible for it, as this is an update validation rule and previous rule also match with BE API
  • [@suneox] 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: N/A
  • [@suneox] 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: N/A
  • [@suneox] Determine if we should create a regression test for this bug: N/A

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 23, 2024
@JmillsExpensify
Copy link

Payment summary:

@melvin-bot melvin-bot bot removed the Overdue label Jul 26, 2024
@JmillsExpensify
Copy link

All contributors paid via Upwork and checklist complete. Closing this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants