-
Notifications
You must be signed in to change notification settings - Fork 3k
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-03-25] [$500] Bank account – Able to save a phone number with some spaces before and without + #36072
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019136df945e25456b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
Triggered auto assignment to @johncschuster ( |
How to make applause.expensifail account for new contributors? |
This is intentional. It presumes that the phone is US phone so it works without giving it the country code. |
Input without country code is alright, it is handled in the validation function but we need to fix the extra white spaces issue ProposalPlease re-state the problem that we are trying to solve in this issue.Able to save a phone number with some spaces before What is the root cause of that problem?In App/src/libs/ValidationUtils.ts Line 266 in e2b6704
What changes do you think we should make in order to solve the problem?have a condition in // Check for extra spaces
if (phoneNumber !== phoneNumber.trim()) {
return false; // Extra spaces found, return false
} This will display error message to enter valid phone number What alternative solutions did you explore? (Optional)N/A |
@cubuspl42, @johncschuster Huh... This is 4 days overdue. Who can take care of this? |
@GandalfGwaihir How does your solution improve the UX? Does it change some glitch for a form validation error, or does the old code just trim the extra whitespace without any user-observable issues? |
@cubuspl42 , yes my solution does improve the UX. Currently we allow the inputs with whitespaces like
yes we currently miss this validation error i.e. we don’t return false for is valid phone number when we have whitespaces in the input , The old code doesn’t do any such type of validation , it simply passed the input value to |
The issue (or the proposal) don't show any evidence of how a number like |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Please wait for updated comments; EDIT: WhatsApp.Video.2024-02-15.at.10.09.35.PM.mp4
From the issue description they expect that we should not allow any spaces when saving a phone number, currently we allow it, but this should not be allowed according to the expected results of this bug |
hello @cubuspl42 , please refer to my new comments above |
In such a case, I disagree that we should raise an error. We should silently trim the number. It could be copy-pasted from a source, which adds the extra whitespace. It's possibly not the user's fault. |
Well if that is the case then we can go that way too, :) no worries We would then send trimmed inputs to the validation function |
What are the up-to-date reproduction steps? Is there a way to get to this point without going through Onfido flow? |
We need to start connecting the bank account manually, then at the summary page as seen in the video i had attached, we can reproduce this bug
Not really we have to follow the Onfido flow |
It was tough, but I reproduced the issue, skipping the Onfido flow. See this Slack thread. I confirm that we present the whitespace-containing telephone number to the user in the confirmation step. It's a minor thing, but it is a bug indeed. I approve the proposal by @GandalfGwaihir C+ reviewed 🎀 👀 🎀 |
📣 @GandalfGwaihir You have been assigned to this job! |
PR will be ready by Wednesday :) |
PR up for review @cubuspl42 :) |
This issue has not been updated in over 15 days. @nkuoch, @cubuspl42, @johncschuster, @GandalfGwaihir eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR is merged |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.53-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-03-25. 🎊 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:
|
Bumping to keep Melvin happy. I will issue payment on March 25 👍 |
friendly bump @johncschuster for payment :) |
|
Actually, via upwork @johncschuster |
hello @johncschuster , this actually needs to be paid via upwork to me, can you update the payment summary ? thanks |
This was likely a mistake, so let's wait patiently for John's response for one or two business days, then you can create a thread on Slack (feel free to ping me too in such a case). |
@GandalfGwaihir can you share the link to your Upwork profile? I'm having a hard time finding you in Upwork. |
Thank you! Your offer is here! |
Accepted the offer :)thanks a lot |
Payment has been issued! 🎉 |
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.38-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4289031
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
You’re shown an error on the incorporation date field
Actual Result:
Able to save a phone number with some spaces before and without +
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6370867_1707336524023.BA.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: