-
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 2023-09-27] [$1000] After deleting a mobile contact from a WorkSpace, it starts showing up in contacts as @expensify.sms #26121
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.After deleting a phone contact from WS, it starts showing up in contacts as @expensify.sms in the invite page. What is the root cause of that problem?We are not formatting the @expensify.sms text anywhere for invite page. What changes do you think we should make in order to solve the problem?We can remove the sms domain in import * as LocalePhoneNumber from '../../libs/LocalePhoneNumber'; and update this {LocalePhoneNumber.formatPhoneNumber(item.text)} at
We can wrap the alternate text as well with this similar to the
{LocalePhoneNumber.formatPhoneNumber(item.alternateText)} What alternative solutions did you explore? (Optional)Solution 1 App/src/libs/OptionsListUtils.js Line 1047 in a5ab459
with LocalePhoneNumber.formatPhoneNumber and do it similarly for alternateText , name in Avatar if necessary.This formatMemberForList function is used only for invite page and presently we are not showing any tooltip for CheckboxItem so this solution and the primary solution has no difference. But if we like to show tooltip later, then we need to remove .sms from the name of the tooltip as well. If and when tooltip is implemented, the text there need to be formatted again if we implement the first solution.This solution is also preferable because the function is meant to format and the phone number formatting logic also is better to be implemented in this. Solution 2 (too big a refactor for this bug) |
Job added to Upwork: https://www.upwork.com/jobs/~014b0b1a782b2526c6 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.After deleting a mobile contact from a WorkSpace, it starts showing up in contacts as @expensify.sms What is the root cause of that problem?Root cause is when we invite displayName stored in with domainName App/src/libs/actions/Policy.js Line 331 in a5ab459
we are creating App/src/libs/PersonalDetailsUtils.js Line 118 in fd755ee
What changes do you think we should make in order to solve the problem?App/src/libs/actions/Policy.js Line 331 in a5ab459
we need remove App/src/libs/PersonalDetailsUtils.js Line 115 in fd755ee
and App/src/libs/actions/Policy.js Line 398 in a5ab459
so only we have this or just formatting the App/src/libs/PersonalDetailsUtils.js Line 118 in fd755ee
Addional fix Needed same issue for other placeswe need fix some other place too |
Thanks for the proposals! @c3024 @pradeepmdk Why does it only happen on the failing phone number deleted? The other phone number that is valid also has the domain in their |
@mollfpr because when api falling App/src/libs/actions/Policy.js Line 346 in a5ab459
|
@mollfpr Is there a duplicate for the number 0878-... in the personal details or in the invite options in your screen? |
@pradeepmdk Sorry, I don't understand your point. In the above image, the valid phone number also has the domain, but it displays fine; why is that? @c3024 Nope, it just added. |
If display name has expensify.sms then I think it should show expensify.sms because we are not stripping it anywhere. Just for clarification, there are no two options or personal details one with +62878732837@expensify.sms and another with 0 878-732-837 on your screen, right? @mollfpr |
@c3024 Thanks, I understand now the issue is. Your alternative solution 1, looks good. We format the text and alternate text on the I think we don't have anything wrong with the API action and the optimistic data, so I prefer to keep it that way. Let's go with @c3024 alternative solution 1 in their proposal. For note, I think we just need to format the 🎀 👀 🎀 C+ reviewed! |
Triggered auto assignment to @Li357, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mollfpr This issue was when we storing App/src/libs/actions/Policy.js Line 331 in a5ab459
App/src/libs/actions/Policy.js Line 346 in a5ab459
we need to fix the root case for avoiding the displayName store as @expensify.sms OptionsListUtils.js If you want check this exactly when api failed case phone number when we go to create task assignee means same like this format only it will displayed, same for moneyrequest, split bill as well |
@pradeepmdk Seems like you're right. I would prefer to fix the optimistic data generated, can you demonstrate this fix working everywhere we currently show @expensify.sms? |
@pradeepmdk You have a good point on the optimistic data, but fixing the optimistic data is not enough. We also need to format the option list too. Otherwise, the issue still persists for the wrong existing data. I also suspect that this issue is a regression from #22904. |
How about not showing the personal details with errors at all in the invite page? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.68-17 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-09-20. 🎊 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:
|
@mollfpr Pr is ready |
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 🚀 |
Bump @mollfpr to complete the checklist! |
@jliexpensify The second PR is still on QA, so the payment date will be change. |
@jliexpensify It's #27408 |
Cool, just changed the payment date and will check back next week to see how things are going - thanks! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.71-12 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-09-27. 🎊 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:
|
Payment Summary:
@mollfpr bump to complete the checklist, thanks! |
I couldn't find the offending PR.
The regression step should be enough.
For WorkSpace
For Request Money
For Split bill
|
Paid and job closed! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The previously added contact should appear as a phone number, without the @expensify.sms termination
Actual Result:
A previously added contact is displayed as a phone number with @expensify.sms at the end
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.58-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
Bug6180252_Recording__119.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: