Skip to content

[$500] Web - Searching for rooms for the first time without hashtags does not work.  #34475

Closed

Description

@m-natarajan

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.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

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Jan 13, 2024
  2. melvin-bot commented on Jan 13, 2024

    @melvin-bot

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

  3. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jan 15, 2024
  4. melvin-bot commented on Jan 15, 2024

    @melvin-bot
  5. 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. [/+] on Jan 15, 2024
  6. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jan 15, 2024
  7. melvin-bot commented on Jan 15, 2024

    @melvin-bot

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

  8. mallenexpensify commented on Jan 15, 2024

    @mallenexpensify
    Contributor

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

  9. shubham1206agra commented on Jan 16, 2024

    @shubham1206agra
    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)

  10. shubham1206agra commented on Jan 16, 2024

    @shubham1206agra
    Contributor

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

  11. 30 remaining items

  12. melvin-bot commented on Feb 3, 2024

    @melvin-bot

    @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!

  13. melvin-bot commented on Feb 5, 2024

    @melvin-bot

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

  14. muttmuure commented on Feb 5, 2024

    @muttmuure
    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.

  15. muttmuure commented on Feb 5, 2024

    @muttmuure
    Contributor
  16. waterim commented on Feb 6, 2024

    @waterim
    Contributor

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

  17. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Feb 6, 2024
  18. mallenexpensify commented on Feb 6, 2024

    @mallenexpensify
    Contributor

    Thanks @waterim , assigned!

  19. waterim commented on Feb 7, 2024

    @waterim
    Contributor

    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
  20. mallenexpensify commented on Feb 7, 2024

    @mallenexpensify
    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

  21. mallenexpensify commented on Feb 8, 2024

    @mallenexpensify
    Contributor

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions