Skip to content
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 2021-09-08] [PAY 9/7] Final review modal is showing @expensify.sms for Users with Phone Numbers as their login #4435

Closed
aman-atg opened this issue Aug 5, 2021 · 29 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2

Comments

@aman-atg
Copy link
Contributor

aman-atg commented Aug 5, 2021

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:

  1. Login to newDot
  2. Request money from an account who has phone number as their login
  3. Enter amount and Continue
  4. You will see @expensify.sms after the phone number

Expected Result:

Should show only the phone number
image

Actual Result:

image

image

Workaround:

Visual Issue.

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on Upwork

@aman-atg aman-atg added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Aug 5, 2021
@MelvinBot
Copy link

Triggered auto assignment to @sakluger (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@MelvinBot MelvinBot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Aug 5, 2021
@aman-atg
Copy link
Contributor Author

aman-atg commented Aug 5, 2021

Proposal

  • To remove the smsDomain we need to pass alternateText: Str.removeSMSDomain(participant.login) here
    ...participant, descriptiveText: amountText,

@MelvinBot
Copy link

@sakluger Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@sakluger
Copy link
Contributor

sakluger commented Aug 9, 2021

Thanks for creating this issue @aman-atg! I'm reviewing the issue now.

@MelvinBot MelvinBot removed the Overdue label Aug 9, 2021
@sakluger sakluger added Improvement Item broken or needs improvement. Engineering Weekly KSv2 and removed Daily KSv2 labels Aug 9, 2021
@MelvinBot
Copy link

Triggered auto assignment to @roryabraham (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@sakluger
Copy link
Contributor

sakluger commented Aug 9, 2021

This issue is unique and the suggested behavior is in line with what we did in this related issue.

This should be able to be handled by an external contributor.

The su

@roryabraham roryabraham added the External Added to denote the issue can be worked on by a contributor label Aug 9, 2021
@MelvinBot
Copy link

Triggered auto assignment to @arielgreen (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@MelvinBot MelvinBot added Daily KSv2 and removed Weekly KSv2 labels Aug 9, 2021
@mallenexpensify mallenexpensify changed the title Final review modal is showing @expensify.sms for Users with Phone Numbers as their login [HOLD] Final review modal is showing @expensify.sms for Users with Phone Numbers as their login Aug 10, 2021
@mallenexpensify
Copy link
Contributor

Putting on hold for a week-ish

@mallenexpensify
Copy link
Contributor

Job posted https://www.upwork.com/jobs/~01b9648852c0022ec5
@chiragsalian will you review @aman-atg 's proposal above? Thx

@chiragsalian
Copy link
Contributor

I just tried this on dev and i don't see @expensify.sms next to the phone number
image

Also tried it on production and i don't see the issue,
image

Might be some old issue. @aman-atg can you confirm, if the issue does not exist let's close this GH issue.

@aman-atg
Copy link
Contributor Author

aman-atg commented Aug 17, 2021

@chiragsalian It's still happening for me.
It's strange this should happen for any number.

Dev

image

PROD

image

@chiragsalian
Copy link
Contributor

Weird, i don't see it for the same number you provided.
image

Maybe its because you have first and last name loaded. Trying that next,
I created a phone account with test aug17th as the name but i don't see expensify.sms domain.
image

Trying your account, i also don't see expensify.sms. lol, weird.
image

I just cleared my cache and retested,
image

So i'm a little unsure how you are getting the issue. Did you also try on google chrome and did you clear your cache?

@chiragsalian
Copy link
Contributor

@mallenexpensify are you also able to reproduce the issue?

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Aug 17, 2021

No, unable to reproduce on desktop, Version 1.0.85-9 (production version released today
image

@aman-atg
Copy link
Contributor Author

Did you also try on google chrome and did you clear your cache?

Well, this is a bizarre situation.. I tried with chrome as well and cleared my cache.
Even tried on a different machine.
image

I think it's only occurring when we request money directly from the chat.

Video for reference.

test.mp4

If it's still not reproducible then we can maybe close this for now.

@mallenexpensify
Copy link
Contributor

I was able to reproduce! Just took a handful of tries.

  • open staging.new.expensify.com in chrome.
  • go to chat with a user where their account login is a phone number
  • click the plus icon next to the compose box (not the big green one)
  • enter amount
  • observe expensify.sms at end of username.

2021-08-18_11-46-19

I cleared my local storage and signed out/back in and the issue persists.

@chiragsalian can you test the above steps, try to reproduce, and if so... review @aman-atg 's proposal to fix?

@parasharrajat
Copy link
Member

Proposal

I propose that we fix the original change that caused this. In newDot we trim the SMS domain from phone numbers while preparing data options for the viewing purpose. Every component follows that. But I see that this #3651 PR added this to fix the issue with IOU Creation but at that time we didn't think of this regression.

Why do this?

As we create the first drop SMS domain while creating options for the listing and then we are re-adding the SMS domain here and again if remove the SMS Domain from here

...participant, descriptiveText: amountText,
. It is so confusing to manage. The main source of the data should only be one location OptionsListUtils file. This is the reason we create options for each component from this module only.

function createOption(personalDetailList, report, draftComments, {

@MelvinBot
Copy link

@chiragsalian, @mallenexpensify it looks like no one is assigned to work on this job.
Please double the price or add a comment stating why the job isn't being doubled.

@chiragsalian
Copy link
Contributor

Yup, i can reproduce the issue when i request for money within the chat. Previously i had only tried it via the big green one. Cool, looks like a real issue.

I like @parasharrajat, @mallenexpensify can you hire him on upwork.
@parasharrajat, feel free to create the PR.

@mallenexpensify
Copy link
Contributor

@chiragsalian , since @aman-atg created the issue, we often them allow them "first dibs" to have their proposal reviewed. Can you confirm that you've reviewed @aman-atg proposal above and, if you choose to not go with it, provide a synopsis of why not? Thx

@chiragsalian
Copy link
Contributor

chiragsalian commented Aug 23, 2021

Oh hahaha, I just realized I didn't complete my thought earlier and just wrote,

I like @parasharrajat

😂 😂

Lol, i meant to say,

I like @parasharrajat solution because I'd like the data to exist cleanly in login without sms domain, than pass an additional correct value to alternate text.

@mallenexpensify
Copy link
Contributor

@parasharrajat , can you submit a proposal in Upwork and I'll hire? https://www.upwork.com/jobs/~01b9648852c0022ec5. Please confirm in a message here once you have

@parasharrajat
Copy link
Member

@mallenexpensify Done.

@mallenexpensify mallenexpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 24, 2021
@mallenexpensify
Copy link
Contributor

Hired in Upwork, assigned to @parasharrajat , removed Help Wanted label...

@botify
Copy link

botify commented Aug 31, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@chiragsalian chiragsalian added the Reviewing Has a PR in review label Aug 31, 2021
@botify
Copy link

botify commented Sep 1, 2021

🚀 Deployed to staging by @Julesssss in version: 1.0.90-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@mallenexpensify mallenexpensify changed the title Final review modal is showing @expensify.sms for Users with Phone Numbers as their login [PAY 9/7] Final review modal is showing @expensify.sms for Users with Phone Numbers as their login Sep 1, 2021
@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 1, 2021
@botify botify changed the title [PAY 9/7] Final review modal is showing @expensify.sms for Users with Phone Numbers as their login [HOLD for payment 2021-09-08] [PAY 9/7] Final review modal is showing @expensify.sms for Users with Phone Numbers as their login Sep 1, 2021
@botify
Copy link

botify commented Sep 2, 2021

🚀 Deployed to production by @roryabraham in version: 1.0.91-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@mallenexpensify
Copy link
Contributor

Paid @parasharrajat in Upwork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Improvement Item broken or needs improvement. Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

9 participants