-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-01-22] [HOLD for payment 2023-12-28] [$1000] Search - The search function is not working correctly with US phone number #28492
Comments
Triggered auto assignment to @sophiepintoraetz ( |
Job added to Upwork: https://www.upwork.com/jobs/~011d925aad5414539c |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Some phone numbers options are not matching the input in the search What is the root cause of that problem?we use the so according to this issue i opened on libphonenumber issues forum, the entered number is a valid one however the therefore a wrong number is displayed What changes do you think we should make in order to solve the problem?instead of showing the App/src/libs/OptionsListUtils.js Lines 1017 to 1018 in e8ea488
we can change it to: const inputPhone= LoginUtils.appendCountryCode(Str.removeSMSDomain(searchInputValue));
const parsedPhoneNumber = parsePhoneNumber(inputPhone);
const searchValue = parsedPhoneNumber.possible ? inputPhone : searchInputValue.toLowerCase(); POC: |
Proposalfrom: @cooldev900 Please re-state the problem that we are trying to solve in this issue.The search function is not working correctly with US phone number when adding "1" to the beginning of that number (after +) What is the root cause of that problem?App/src/libs/OptionsListUtils.js Line 999 in dfb3f9b
The value of parsedPhoneNumber.number.e164 is the same result whether it has extra "1"/space or not in country code part of US phone number. What changes do you think we should make in order to solve the problem?We can add extra US phone number validation.
What alternative solutions did you explore? (Optional)N/A |
📣 @cooldev900! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search results appear for invalid US phone numbers like "+115005550009" (which are phone numbers with an extra '1' adjacent to the country code '+1' on a correct US phone number). What is the root cause of that problem?The What changes do you think we should make in order to solve the problem?We need to have an additional logic for these exceptional cases. App/src/libs/OptionsListUtils.js Line 981 in 71db96d
to const isValid = parsedPhoneNumber.possible && LoginUtils.getPhoneNumberWithoutSpecialChars(parsedPhoneNumber.number.input) === parsedPhoneNumber.number.e164; const searchValue = isValid ? parsedPhoneNumber.number.e164 : searchInputValue.toLowerCase(); And change this App/src/libs/OptionsListUtils.js Line 1162 in 71db96d
to ` (isValid && Str.isValidPhone(LoginUtils.getPhoneNumberWithoutSpecialChars(parsedPhoneNumber.number.input)))) &&
` What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
📣 @FitseTLT! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Waiting on @aimane-chnaif here! |
Bump for @aimane-chnaif! |
Triggered auto assignment to @stephanieelliott ( |
@aimane-chnaif finalized my PR, its ready for review. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.14-6 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-12-28. 🎊 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:
|
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:
|
hi @barros001 @aimane-chnaif - just a quick note that the payment due date is in the middle of my OOO - I am likely not online to process this but will be back on 3 Jan and will process it then! In the meantime, please make sure you have accepted the offers and @aimane-chnaif, you have completed the BZ checklist before then. |
@barros001, @madmax330, @sophiepintoraetz, @aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.24-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-01-22. 🎊 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:
|
@aimane-chnaif - I will release payment once the checklist has been completed. Closing for now, feel free to ping me once you've done it. |
|
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:
The search result will only be displayed if it exactly matches the search number.
Actual Result:
The search result continues to be displayed even though it doesn't match the search number.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75.2
Reproducible in staging?: y
Reproducible in production?: y
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
iOS-Native.MP4
MacOS-Chrome.mp4
iOS-Safari.MP4
MacOS-Desktop.mov
MacOS-Safari.mov
Android-Native.mp4
Android-Chrome.mp4
Recording.4795.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695839159212839
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: