-
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 2023-08-02] [$1000] In InviteMembers page when we search 998243aaaa we can invite +529982432222 #22521
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.We can see that when we try to search for a user using just text, a phone number shows up, which can be confusing. What is the root cause of that problem?To easily reproduce this problem, you just need to type one digit with 9 alphabets, which will cause a user to show up. For example, What changes do you think we should make in order to solve the problem?If we want to suppress this behaviour and ensure that App/src/libs/OptionsListUtils.js Line 778 in 60f4817
This check will be after the What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~01183b41848a55f578 |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we search a string beginning with numbers but also conatining letters sometimes they are recognized as phone numbers What is the root cause of that problem?It happens because of the way the library awesome-phonenumber works. What changes do you think we should make in order to solve the problem?I propose that we make a new function that has the same goal as parsePhoneNumber and return the same thing but add a condition that the search value must be composed of numbers and + , we can then call this function everywhere where we are currently calling parsePhoneNumber What alternative solutions did you explore? (Optional) |
PS: I know my proposal is quite similar to the existing one but this way we can resolve the problem everywhere. Also for my defense I reported this bug and had a proposal ready but I didn't know that I could send my proposal in the bug report. |
Will review this in my morning |
Not able to reproduce |
Hey sorry the steps have changed a bit |
@ShogunFire can you share the steps? |
It depends of what country you are in and what is a valid number there, I think for the us the first number should be 1. Otherwise I think that you can put the international code and still reproduce. For example try with +52998243aaaa |
@ShogunFire thank you i am able to reproduce it now. |
ProposalPlease re-state the problem that we are trying to solve in this issue.phone number with letters will show a phone number What is the root cause of that problem?letters in phone numbers are considered as possible from App/src/libs/OptionsListUtils.js Line 637 in 60e73fa
What changes do you think we should make in order to solve the problem?We should not convert the original value to make the results consistent across all forms, then we should validate the phone number using we should add this condition to validate the phone number further (parsedPhoneNumber.possible && Str.isValidPhone(searchValue.slice(1)) here: App/src/libs/OptionsListUtils.js Line 789 in 60e73fa
Result: ![]() What alternative solutions did you explore? (Optional) |
How does the above proposal look to you @abdulrahuman5196 ? |
Thank you very much for your fair decision folks, I appreciate it a lot! Really sorry for the delay, had a family issue 😓 @abdulrahuman5196 @amyevans PR is up, please help review! |
No worries. Hope everything is fine. @GItGudRatio |
Yes, it's better now. Thank you! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.45-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-08-02. 🎊 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.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Reminder added to calendar for eventual payment. Let's square off the BZ checklist above in the meantime @abdulrahuman5196 ! 🚀 |
This wasn't a regression. It should have been present for sometime but we only noticed the issue now.
No. We have already added UTs for this case. So regression test won't be required here. |
Awesome, thanks @abdulrahuman5196 |
@amyevans, @MitchExpensify, @abdulrahuman5196, @GItGudRatio Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I think @MitchExpensify is OOO, but bump for Monday 😄 |
Payment Summary: Reporting: @ShogunFire $250 (Upwork) - Mind linking your Upwork profile? |
Great! Thank you both @GItGudRatio paid and contract ended |
All paid! Thanks everyone |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
This should show No results found via search on the chat switcher, Invite new member search, or anywhere else
Actual Result:
In the list we can invite +529982432222
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:

Reproducible in staging?: Needs reproduction
Reproducible in production?:
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
Expensify/Expensify Issue URL:
Issue reported by: @ShogunFire
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688428528032189
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: