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 2024-04-05] [$500] mentioning a user from a different domain with same "front part" of the email address as logged in account causes the mention render as you #38074

Closed
1 of 6 tasks
m-natarajan opened this issue Mar 11, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Mar 11, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.50-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
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1710094172947319

Action Performed:

  1. Have same front part of the email address in 2 different domain ([email protected] and [email protected])
  2. Sign in as [email protected]
  3. Go to any chat and mention [email protected]

Expected Result:

mentioned user shouldn't be highlighted in green

Actual Result:

mentioned user highlighted in green to incorrectly render as the logged in account

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Screen Shot 2024-03-11 at 2 20 43 PM

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c23b4f231f3691d1
  • Upwork Job ID: 1767259879670747136
  • Last Price Increase: 2024-03-11
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01c23b4f231f3691d1

@melvin-bot melvin-bot bot changed the title mentioning a user from a different domain with same "front part" of the email address as logged in account causes the mention render as you [$500] mentioning a user from a different domain with same "front part" of the email address as logged in account causes the mention render as you Mar 11, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Mar 11, 2024
Copy link

melvin-bot bot commented Mar 11, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan (External)

@garatkarr
Copy link

Could not reproduce this using two emails with the same "front part" of the email. My email addresses did not have a sub-domain name like the report does and I have no way to create an email with a sub-domain.

@jeremy-croff
Copy link
Contributor

I am able to reproduce with creating an account in old expensify since it doesn't require email verification.
I created [email protected]
Anytime I tag @[email protected] it shows the shortened part followed by the remainder.

This is how we are saving it:
Screenshot 2024-03-11 at 6 2 Screenshot 2024-03-11 at 6 55 29 PM 4 36 PM

However it's a regression from: #36697 which was deployed to prod 5 days ago. Should we still propose @situchan?

The code is naively saying if the first part + current user email exists in contact list then it's a short text we need to expand.
But we should also compare if the second part the users' email does not equal the last part.

@jliexpensify
Copy link
Contributor

If it's a regression, it should go to @tienifr and @allroundexperts

@jliexpensify
Copy link
Contributor

@situchan let me know if @jeremy-croff is correct and I can get this assigned to them

@hayes102
Copy link

is this still open to proposals ? i think its a regression yes and i have a proposal, should i wait?

Copy link

melvin-bot bot commented Mar 12, 2024

📣 @hayes102! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Mar 12, 2024
@tienifr
Copy link
Contributor

tienifr commented Mar 12, 2024

@jeremy-croff Yes, it's my regression, I just created the PR cc @allroundexperts

Copy link

melvin-bot bot commented Mar 12, 2024

❌ There was an error making the offer to @situchan for the Reviewer role. The BZ member will need to manually hire the contributor.

@jliexpensify jliexpensify assigned tienifr and unassigned situchan Mar 12, 2024
Copy link

melvin-bot bot commented Mar 12, 2024

❌ There was an error making the offer to @tienifr for the Contributor role. The BZ member will need to manually hire the contributor.

Copy link

melvin-bot bot commented Mar 18, 2024

Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@jliexpensify
Copy link
Contributor

I am OOO from the 21st to 31st of March, but I don't think this needs reassigning, as it's a regression and no payment is needed. Please let me know if I am incorrect though!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Mar 29, 2024
@melvin-bot melvin-bot bot changed the title [$500] mentioning a user from a different domain with same "front part" of the email address as logged in account causes the mention render as you [HOLD for payment 2024-04-05] [$500] mentioning a user from a different domain with same "front part" of the email address as logged in account causes the mention render as you Mar 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Mar 29, 2024
Copy link

melvin-bot bot commented Mar 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Mar 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.57-5 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-04-05. 🎊

For reference, here are some details about the assignees on this issue:

  • @allroundexperts requires payment through NewDot Manual Requests
  • @tienifr requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Mar 29, 2024

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:

  • [@allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
  • [@allroundexperts] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@allroundexperts] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@allroundexperts] Determine if we should create a regression test for this bug.
  • [@allroundexperts] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@jliexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@jliexpensify
Copy link
Contributor

As per my comment here, I don't think payment is needed but lmk if I am wrong!

@allroundexperts any need for a checklist?

@jliexpensify
Copy link
Contributor

Bump @allroundexperts - any checklist needed here?

Copy link

melvin-bot bot commented Apr 5, 2024

Payment Summary

Upwork Job

BugZero Checklist (@jliexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1767259879670747136/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@jliexpensify
Copy link
Contributor

This is a regression from another PR so no payment needed.

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 Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

10 participants