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

[$500] [HOLD for payment 2023-12-08] [HOLD for payment 2023-12-07] Mention - Suggested user @ with closed account remains visible when click on it #32214

Closed
6 tasks done
lanitochka17 opened this issue Nov 29, 2023 · 42 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Nov 29, 2023

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.5-3
Reproducible in staging?: Y
Reproducible in production?: N
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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Navigate to a group chat or #Room that has several members (>6)
  3. Enter "@" in the compose box
  4. Select user that have closed their account

Expected Result:

When user with close account is selected the suggestion list should close

Actual Result:

Suggested user with closed account remains visible when click on it

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

Bug6294956_1701281080089.Recording__1428.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @sakluger
Issue OwnerCurrent Issue Owner: @sakluger
Issue OwnerCurrent Issue Owner: @sakluger
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01c3279b7c2be27d87
  • Upwork Job ID: 1755287424781955072
  • Last Price Increase: 2024-02-07
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Nov 29, 2023
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Nov 29, 2023

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

@ishpaul777
Copy link
Contributor

ishpaul777 commented Nov 29, 2023

could be a regression from #31435 for me this happen when i try to mention myself in composer

@situchan
Copy link
Contributor

@joelbettner I tested and confirmed reverting #31435 fixed this issue.
Test branch: #32220

@joelbettner
Copy link
Contributor

Thank you @situchan!

@ishpaul777
Copy link
Contributor

ishpaul777 commented Nov 29, 2023

if assigned, I am available to raise a quick PR as this issue is Deploy Blocker

Problem

when display name and email for searched user is same, suggestion menu not close after selecting user.

Root Cause

Here when we filter for filteredPersonalDetails we use this condition

!`${detail.displayName} ${detail.login}`.toLowerCase().includes(searchValue.toLowerCase())

so when user display name is same as login this returns true for searchValue so we have a suggestion email

Changes

we should check seperatly for displayName and login like below here

!`${detail.displayName}`.toLowerCase().includes(searchValue.toLowerCase()) && !`${detail.login}`.toLowerCase().includes(searchValue.toLowerCase()

If user is selecting with a email or phone it would irrelevant to match with displayName with a space " "

@situchan
Copy link
Contributor

@ishpaul777 your solution will cause regression if search for displayName email

@joelbettner I have solution:
We can sync filter logic with display logic.

text: detail.displayName,
alternateText: formatPhoneNumber(detail.login),

So display logic is if text = alternateText, don't display alternativeText
Same applies to filter logic:

If display name and formatted login is same, just filter with display name

                if (searchValue && !`${detail.displayName}`.toLowerCase().includes(searchValue.toLowerCase())) {

If different, use current logic

@joelbettner
Copy link
Contributor

@allroundexperts if you wouldn't mind taking a look at the proposals that'd be great. I have some other time sensitive stuff I need to get worked on at the moment. Feel free to ping me when I should jump back in here.

@ishpaul777
Copy link
Contributor

why user will search for displayName email ? IMO, this should not be a valid search

@allroundexperts
Copy link
Contributor

I think @situchan's proposal is better. @joelbettner Should I raise a PR or will @situchan do that?

@joelbettner
Copy link
Contributor

@allroundexperts we can have @situchan raise the PR. Then you and I can review it.

@allroundexperts
Copy link
Contributor

Sounds like a plan!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Nov 29, 2023
@AndrewGable AndrewGable removed the DeployBlockerCash This issue or pull request should block deployment label Nov 30, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 30, 2023
@melvin-bot melvin-bot bot changed the title Mention - Suggested user @ with closed account remains visible when click on it [HOLD for payment 2023-12-07] Mention - Suggested user @ with closed account remains visible when click on it Nov 30, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 30, 2023
@sakluger sakluger added Weekly KSv2 and removed Daily KSv2 labels Jan 11, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 22, 2024
@sakluger
Copy link
Contributor

Still figuring out the regression.

@melvin-bot melvin-bot bot removed the Overdue label Jan 24, 2024
@melvin-bot melvin-bot bot added the Overdue label Feb 1, 2024
@sakluger
Copy link
Contributor

sakluger commented Feb 7, 2024

No update, I will prioritize this soon.

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@sakluger sakluger added the External Added to denote the issue can be worked on by a contributor label Feb 7, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-12-08] [HOLD for payment 2023-12-07] Mention - Suggested user @ with closed account remains visible when click on it [$500] [HOLD for payment 2023-12-08] [HOLD for payment 2023-12-07] Mention - Suggested user @ with closed account remains visible when click on it Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 7, 2024
Copy link

melvin-bot bot commented Feb 7, 2024

Current assignees @allroundexperts and @situchan are eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 7, 2024
@sakluger
Copy link
Contributor

sakluger commented Feb 7, 2024

There's still not agreement over whether #32280 is a regression of this issue - given the uncertainty, I'm going to pay this one out in full.

@sakluger sakluger removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 7, 2024
@sakluger
Copy link
Contributor

sakluger commented Feb 7, 2024

Summarizing payment on this issue:

Contributor: @situchan $500 (Upwork offer)
Contributor+: @sobitneupane $500, please request on Newdot

Upwork job is here: https://www.upwork.com/jobs/~01c3279b7c2be27d87

@sakluger
Copy link
Contributor

sakluger commented Feb 8, 2024

Paid @situchan. @sobitneupane feel free to request payment. Thanks everyone for your patience on this one!

@sakluger sakluger closed this as completed Feb 8, 2024
@sobitneupane
Copy link
Contributor

@allroundexperts Did you work on this issue? I don't remember working on it.😀

@allroundexperts
Copy link
Contributor

@sakluger I reviewed this PR instead of @sobitneupane. Also, please go through #32214 (comment) and let me know if you agree.

@allroundexperts
Copy link
Contributor

@sakluger Bump for the updated payment summary!

@JmillsExpensify
Copy link

Re-opening for the updated payment summary.

@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
@sakluger
Copy link
Contributor

sakluger commented Mar 4, 2024

Sorry for the payment summary mixup, I've reposted the correct payment summary is below. @allroundexperts regarding the payment amount, there were reasonable arguments on both sides of whether this was a regression or not. Given the uncertainty, I decided that we would pay the full original amount.

Summarizing payment on this issue:

Contributor: @situchan $500 (paid via Upwork)
Contributor+: @allroundexperts $500, payable via Newdot

@sakluger sakluger closed this as completed Mar 4, 2024
@melvin-bot melvin-bot bot removed the Overdue label Mar 4, 2024
@JmillsExpensify
Copy link

$500 approved for @allroundexperts based on latest summary.

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 Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

9 participants