-
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-10-13] [$500] The phone number is displayed twice when searching for it after sending a Money Request. #28028
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01f217b41585e6a18d |
Triggered auto assignment to @kadiealexander ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @garrettmknight ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.The phone number is displayed twice when searching for it after sending a Money Request. What is the root cause of that problem?
App/src/libs/OptionsListUtils.js Line 1154 in 71db96d
addSMSDomainIfPhoneNumber
this will happen when new user we are storing without domain in the login but once api give personal details it will update with domain. But requestmoney api personal details does not have the login key. Line 539 in 71db96d
What changes do you think we should make in order to solve the problem?we need change like this const noOptionsMatchExactly = !_.find(personalDetailsOptions.concat(recentReportOptions), (option) => addSMSDomainIfPhoneNumber(option.login) === addSMSDomainIfPhoneNumber(searchValue).toLowerCase()); ResultAlternative solutionwe need to update all Onyx optimistic data (Request Money, New Chat, and Inviting a Member to the Workspace.) login with domain |
Isn't this intentional behavior? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The phone number is displayed twice when searching for it after sending a Money Request What is the root cause of that problem?We add optimistic personal detail in Lines 195 to 200 in 71db96d
But we don't remove it in What changes do you think we should make in order to solve the problem?If we request for the new user, we should remove optimistic personal detail in
Line 204 in 71db96d
Line 287 in 71db96d
What alternative solutions did you explore? (Optional) |
@dukenv0307 I think if we remove the personal details from success or failure it will create the regression. |
@narefyev91 please check the proposals here! |
Coming from here #21706 - it was the same issue which we see here - after creating a request money - we store optimistic data in onyx - but do not clean it after getting correct data from API |
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@narefyev91 did you able to check my comment. it will create regression if we removed the data from onyx |
@pradeepmdk What is the regression? Can you share the step? |
I don't think this will cause the regression because after API returns data, the current user accountID of the user will be updated and we will not use the optimistic personal data anymore. |
@dukenv0307 already shared the screenshot. In the failure cause we don't have personal information from api(for all the scanrio request money, new chat, workspace invite ). And also requestmoney api not return full data of person al details here. |
@pradeepmdk Let's see the error that is returned, the phone number is invalid so the error appears it's expected, not a bug. |
|
in this final PR of that ticket https://github.com/Expensify/App/pull/24355/files
I thought we were going to invite the scenario also because in this issue actual result is this:
I am sharing the screenshot current scenario only. they all are working based on personal details. if we removed the personal details this will break. Let we can wait internal team review. |
Just a note here I think you have misunderstood the meaning of this line of code. This line is used to remove optimistic personal detail in
|
@madmax330 bump on this! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @tranvantoan-qn 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@narefyev91 The PR is ready for review. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.78-4 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-10-13. 🎊 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:
|
Payouts due:
Eligible for 50% #urgency bonus? No Upwork job is here. |
@narefyev91 please don't forget the checklist! |
|
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 phone number is displayed ONCE.
Actual Result:
The phone number is displayed TWICE.
Note: This issue actually occurs on all types of search pages: Request Money, New Chat, and Inviting a Member to the Workspace.
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: 1.3.73-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:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
phone-number-show-twice.1.mp4
bandicam.2023-09-22.16-19-43-803.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695047570703519
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: