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] Web - Searching for rooms for the first time without hashtags does not work. #34475

Closed
1 of 6 tasks
m-natarajan opened this issue Jan 13, 2024 · 32 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Jan 13, 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.24-7
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: @justinpersaud
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1705002380962489

Action Performed:

  1. Create a room with workspace visibility as account A
  2. Invite user B
  3. Login as user B
  4. Search for the room created in step 1 without hashtag

Expected Result:

Room is able to find

Actual Result:

It does not show the result

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

2024-01-12_09-09-56.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015f0d8aaddbf938d1
  • Upwork Job ID: 1747032811175395328
  • Last Price Increase: 2024-02-05
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 13, 2024
Copy link

melvin-bot bot commented Jan 13, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Jan 15, 2024
@mallenexpensify mallenexpensify added the External Added to denote the issue can be worked on by a contributor label Jan 15, 2024
Copy link

melvin-bot bot commented Jan 15, 2024

Job added to Upwork: https://www.upwork.com/jobs/~015f0d8aaddbf938d1

@melvin-bot melvin-bot bot changed the title searching for rooms for the first time without hashtags does not work. [$500] searching for rooms for the first time without hashtags does not work. Jan 15, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 15, 2024
Copy link

melvin-bot bot commented Jan 15, 2024

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

@melvin-bot melvin-bot bot removed the Overdue label Jan 15, 2024
@mallenexpensify
Copy link
Contributor

Hoping/guessing this can be External. @getusha , comment if you disagree. Thx

@shubham1206agra
Copy link
Contributor

Proposal

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

Searching for rooms for the first time without hashtags does not work

What is the root cause of that problem?

This happens because we have provided full room name with #, which might make the search different from anticipated.

Function call

OptionsListUtils.getSearchText(report, reportName, participantPersonalDetailList, result.isChatRoom || result.isPolicyExpenseChat, result.isThread);

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

We can add a stripped version of title in searchText here (similarly in other places too)

Array.prototype.push.apply(searchTerms, title.split(/[,\s]/));

We can use similar approach to

personalDetail.login.replace(/\.(?=[^\s@]*@)/g, ''),

The motivation behind this is #33029 will perform similar stripping before doing sorting on the display name. So its natural to add a stripped version in search text. We will also keep the original version in case user tries to search with stripped symbols.

What alternative solutions did you explore? (Optional)

@shubham1206agra
Copy link
Contributor

@mallenexpensify Can you add this to #vip-vsb, and maybe same priority as #33029?

@melvin-bot melvin-bot bot added the Overdue label Jan 18, 2024
@kbecciv kbecciv changed the title [$500] searching for rooms for the first time without hashtags does not work. [$500] Web - Searching for rooms for the first time without hashtags does not work. Jan 19, 2024
Copy link

melvin-bot bot commented Jan 19, 2024

@muttmuure, @getusha Whoops! This issue is 2 days overdue. Let's get this updated quick!

@getusha
Copy link
Contributor

getusha commented Jan 22, 2024

@shubham1206agra I am not able to reproduce this on staging.

Screenshot 2024-01-22 at 3 02 40 PM

Copy link

melvin-bot bot commented Jan 22, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@muttmuure
Copy link
Contributor

The bug seems to be a little inconsistent

@melvin-bot melvin-bot bot removed the Overdue label Jan 22, 2024
@muttmuure
Copy link
Contributor

I can only reproduce if I search for a room I haven't returned in search in that session yet (but I know exists and I am a member of it)

@getusha
Copy link
Contributor

getusha commented Jan 23, 2024

Still trying to reproduce this, will try to provide an update by tomorrow.

@justinpersaud
Copy link
Contributor

What @muttmuure described is exactly what the issue is. It only happens if you haven't found the room or searched for it before.

@allroundexperts
Copy link
Contributor

I can try to reproduce this today.

@roryabraham
Copy link
Contributor

@allroundexperts
Copy link
Contributor

Okay. I was able to reproduce this.

screen-recording-2024-01-25-at-25933-am_I4dL9RFA.mp4

@shubham1206agra Thanks for your proposal. I think your RCA is not very clear. Do you mind explaining why it works some times but not other?

@roryabraham
Copy link
Contributor

Great, going to make @allroundexperts the C+ here

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 24, 2024
@roryabraham roryabraham added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 24, 2024
@roryabraham roryabraham moved this to CRITICAL in [#whatsnext] #vip-vsb Jan 24, 2024
@roryabraham roryabraham moved this from CRITICAL to HIGH in [#whatsnext] #vip-vsb Jan 24, 2024
@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2024
Copy link

melvin-bot bot commented Jan 29, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@allroundexperts
Copy link
Contributor

I guess @shubham1206agra is busy with other issues. Still looking for better proposals here.

@melvin-bot melvin-bot bot removed the Overdue label Jan 29, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@quinthar
Copy link
Contributor

quinthar commented Feb 1, 2024

If we can't reproduce, can we close this?

@melvin-bot melvin-bot bot added the Overdue label Feb 1, 2024
@mallenexpensify
Copy link
Contributor

I think it might still be repro, asking in #social for a few room names I haven't already visited

Copy link

melvin-bot bot commented Feb 2, 2024

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

Copy link

melvin-bot bot commented Feb 3, 2024

@allroundexperts @muttmuure this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks!

Copy link

melvin-bot bot commented Feb 5, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@muttmuure
Copy link
Contributor

I can still reproduce this. I can't remember the last time I searched for this room, but I did it now:

image

Then after searching for it once, I searched again and it worked:

image

I remember we made some changes to OptionList where we were limiting the number of chats returned by search, and we added a debounce.

It's just a theory, but I wonder if the debounce before querying the full list is engaged AFTER the initial input, and then if you search again we are actually querying from your "full" list. This would make sense in terms of the expected behavior here, because we can all retrieve a result that we have searched for recently.

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
@muttmuure
Copy link
Contributor

@waterim
Copy link
Contributor

waterim commented Feb 6, 2024

Hello, Im Artem from Callstack and would like to help with this issue!

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

Thanks @waterim , assigned!

@waterim
Copy link
Contributor

waterim commented Feb 7, 2024

Was trying to reproduce it for quite some time, but nothing.
I think after sidebar refactor something was changed, because now it works good with newly created rooms, also tried old, can't reproduce too.

Can someone who could reproduce try it once again?

Uploaded two repro steps which I found here:

8mb.video-8Il-kJcR8OQg.mp4
8mb.video-bRs-kl6Kd7Gy.mp4

@mallenexpensify
Copy link
Contributor

Thanks @waterim , I'm unsure if I'm able to reproduce either.
@muttmuure can you try to search for this without the # and see if it shows?
image

Also.. can you create a new test room on the Expensify Chat workspace and drop in the name here and I can try to search too. If neither of us can reproduce, we can likely close this

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Feb 8, 2024

Gonna close this, just tested again with a room I'm 99% I've never searched for or visited and it showed in search, so I think it might have magically been fixed. Comment/reopen if you disagree.

2024-02-08_15-22-13.mp4

@github-project-automation github-project-automation bot moved this from HIGH to CRITICAL in [#whatsnext] #vip-vsb Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests