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-01-22] [$500] Workspace - In Workspace, trying to add a number contact & selecting it, contact disappears #34020

Closed
3 of 6 tasks
lanitochka17 opened this issue Jan 5, 2024 · 19 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

@lanitochka17
Copy link

lanitochka17 commented Jan 5, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.22
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: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Launch app
  2. Tap Profile icon
  3. Tap Workspaces ---- Workspace ---- Members
  4. Tap invite
  5. Enter a number eg: +919787766754
  6. From the list, tap and select the contact

Expected Result:

In Workspace, trying to add a number contact & selecting it, contact must not disappear

Actual Result:

In Workspace, trying to add a number contact & selecting it, contact disappears

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

Bug6333021_1704448239114.ws.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012bf34b264efa7a44
  • Upwork Job ID: 1743245225212407808
  • Last Price Increase: 2024-01-05
  • Automatic offers:
    • abdulrahuman5196 | Contributor | 28087732
    • dukenv0307 | Contributor | 28087733
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 5, 2024
@melvin-bot melvin-bot bot changed the title Workspace - In Workspace, trying to add a number contact & selecting it, contact disappears [$500] Workspace - In Workspace, trying to add a number contact & selecting it, contact disappears Jan 5, 2024
Copy link

melvin-bot bot commented Jan 5, 2024

Job added to Upwork: https://www.upwork.com/jobs/~012bf34b264efa7a44

Copy link

melvin-bot bot commented Jan 5, 2024

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

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

melvin-bot bot commented Jan 5, 2024

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Copy link

melvin-bot bot commented Jan 5, 2024

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

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jan 5, 2024

This is regression from my PR here

Proposal

Please re-state the problem that we are trying to solve in this issue.

In Workspace, trying to add a number contact & selecting it, contact disappears

What is the root cause of that problem?

We don't trim and replace all spaces in option.text here

const isPartOfSearchTerm = option.text.toLowerCase().includes(searchTerm.trim().toLowerCase());
before comparing

What changes do you think we should make in order to solve the problem?

trim and replace all spaces in option.text here

const isPartOfSearchTerm = option.text.toLowerCase().includes(searchTerm.trim().toLowerCase());
before comparing

What alternative solutions did you explore? (Optional)

NA

@unidev727
Copy link
Contributor

unidev727 commented Jan 5, 2024

Proposal

from: @unicorndev-727

Please re-state the problem that we are trying to solve in this issue.

Workspace - In Workspace, trying to add a number contact & selecting it, contact disappears

What is the root cause of that problem?

The root cause is that option.text has spaces so that it different from search term here.

image

const isPartOfSearchTerm = option.text.toLowerCase().includes(searchTerm.trim().toLowerCase());

What changes do you think we should make in order to solve the problem?

We should use option.login instead of option.text here.

const isPartOfSearchTerm = option.text.toLowerCase().includes(searchTerm.trim().toLowerCase());

to

const isPartOfSearchTerm = option.login.toLowerCase().includes(searchTerm.trim().toLowerCase());

What alternative solutions did you explore?

N/A

@paultsimura
Copy link
Contributor

This is a regression from #31648, which is still within the regression period.

Confirmed by reverting the PR locally:
image

cc: @abdulrahuman5196 @thienlnam

@thienlnam
Copy link
Contributor

Thanks Pavlo - assigning from that PR

@melvin-bot melvin-bot bot added the Overdue label Jan 8, 2024
@melvin-bot melvin-bot bot removed Help Wanted Apply this label when an issue is open to proposals by contributors Overdue labels Jan 8, 2024

This comment was marked as off-topic.

This comment was marked as outdated.

@dukenv0307
Copy link
Contributor

@paultsimura this PR is ready for preview.

@abdulrahuman5196
Copy link
Contributor

Hi, Thanks for the PR. It seems this is not a deploy blocker. So Will work on review in my morning.

@kevinksullivan
Copy link
Contributor

Hi @abdulrahuman5196 any update?

@abdulrahuman5196
Copy link
Contributor

@kevinksullivan the PR was merged. Since this is a regression issue, we can close the issue once we verify in production after it reaches there.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 15, 2024
@melvin-bot melvin-bot bot changed the title [$500] Workspace - In Workspace, trying to add a number contact & selecting it, contact disappears [HOLD for payment 2024-01-22] [$500] Workspace - In Workspace, trying to add a number contact & selecting it, contact disappears Jan 15, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 15, 2024
Copy link

melvin-bot bot commented Jan 15, 2024

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

Copy link

melvin-bot bot commented Jan 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.24-8 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-01-22. 🎊

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

Copy link

melvin-bot bot commented Jan 15, 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:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] 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:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] 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.
  • [@kevinksullivan] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@parasharrajat
Copy link
Member

No payments for this regression issue.

@abdulrahuman5196
Copy link
Contributor

the PR was merged. Since this is a regression issue, we can close the issue once we verify in production after it reaches there.

Yeah. Already pointed out here. We can close this issue.

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
None yet
Development

No branches or pull requests

8 participants