Closed lanitochka17 closed 3 months ago
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.
@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
@JmillsExpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!
@JmillsExpensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
Job added to Upwork: https://www.upwork.com/jobs/~01000955591143b611
Opening up to community
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox (External
)
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
We don't allow users to enter the accented characters in
Remove the above condition
We can update the isValidLegalName
based on BE side.
Bank account personal information doesn't accept umlaut characters.
We have a check in place which checks for isValidLegalName
, this will not allow umlaut.
This is the RCA.
We should use isValidPersonName
instead here, this will reject special characters and accept umlaut.
so we need to update the following block of code:
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');
}
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
@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:
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 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.
Updated proposal to remove unwanted content and added some code
Triggered auto assignment to @tgolen, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
📣 @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 📖
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.7-8 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-07-24. :confetti_ball:
For reference, here are some details about the assignees on this issue:
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:
Payment summary:
All contributors paid via Upwork and checklist complete. Closing this one!
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.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:
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?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/78819774/1962573b-b68d-4a66-9efd-b0db7326e78a
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensify