Skip to content

Chat search should prioritise a perfectly matching email above a partially matching one #8763

Closed

Description

@Julesssss

Action Performed:

  • Have some accounts with similar names, in my case user2@expensify.com & newuser2@expensify.com
  • Sign in to two accounts, in my case user7@expensify.com & user2@expensify.com
  • As one user, attempt to search for the other, using their EMAIL ADDRESS
  • Enter the full emal address and hit enter

Expected Result:

  • I would expect the first result to be the user which matches the email

Actual Result:

  • A completely different user chat was opened, one which is similarly named

Workaround:

  • Manually select the user which matches the email search
NewDot-SearchShouldPrioritiseFullMatches.mov

Platform:

  • Web
  • Desktop App

Version Number: v1.1.56-0
Reproducible in staging?: Yep
Reproducible in production?: Yep
Email or phone of affected tester (no customers): N/A
Logs: https://stackoverflow.com/c/expensify/questions/4856 N/A
Notes/Photos/Videos: See above
Expensify/Expensify Issue URL: N/A
Issue reported by: @Julesssss
Slack conversation: N/A

View all open jobs on GitHub

Activity

  1. self-assigned this
    on Apr 25, 2022
  2. melvin-bot commented on Apr 25, 2022

    @melvin-bot

    Triggered auto assignment to @laurenreidexpensify (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. removed
    AutoAssignerTriageAuto assign issues for triage to an available triage team member
    on Apr 25, 2022
  4. added
    InternalRequires API changes or must be handled by Expensify staff
    and removed
    InternalRequires API changes or must be handled by Expensify staff
    on Apr 25, 2022
  5. removed their assignment
    on Apr 26, 2022
  6. melvin-bot commented on Apr 26, 2022

    @melvin-bot

    Current assignee @Julesssss is eligible for the Engineering assigner, not assigning anyone new.

  7. laurenreidexpensify commented on Apr 26, 2022

    @laurenreidexpensify
    Contributor

    @Julesssss wanna apply the rest of the labels to get this on upwork? add external and we're in business

  8. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Apr 26, 2022
  9. melvin-bot commented on Apr 26, 2022

    @melvin-bot

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

  10. 13 remaining items

  11. removed
    ExternalAdded to denote the issue can be worked on by a contributor
    Help WantedApply this label when an issue is open to proposals by contributors
    on Apr 27, 2022
  12. changed the title [-][$250] Chat search should prioritise a perfectly matching email above a partially matching one[/-] [+]Chat search should prioritise a perfectly matching email above a partially matching one[/+] on Apr 27, 2022
  13. Julesssss commented on Apr 27, 2022

    @Julesssss
    ContributorAuthor

    Nice, thanks Tim. I honestly wasn't sure if this was worth fixing. But it will inevitably catch users out so let's get it resolved.

    Feel free to tag me as a reviewer!

  14. tgolen commented on Apr 27, 2022

    @tgolen
    Contributor

    Thanks @Julesssss!

    I'm having some issues reproducing the issue. I created three users:

    When I search for "user1@" it selects the correct person:
    image

    When I search for "newuser1@" it also selects the correct person:
    image

    It appears to be working correctly, but maybe there is something specific about your setup that is causing the issue you're seeing. Do you think you could help me narrow down the exact case to reproduce this?

  15. Julesssss commented on Apr 27, 2022

    @Julesssss
    ContributorAuthor

    Ah curious. I'll take another look at my env first thing tomorrow morning and get back to you. It's even more of an edge case than I originally thought :D

  16. jliexpensify commented on Apr 28, 2022

    @jliexpensify
    Contributor

    Cancelling Upworks job.

  17. Julesssss commented on Apr 28, 2022

    @Julesssss
    ContributorAuthor

    @tgolen

    I tried again today and noticed that newuser2@... was showing above user2@ because I had sent messages to that user recently. I still think there's an argument that a literal email match should take priority over recent chat history, but I'll leave it up to you to decide whether this is worth changing.

  18. tgolen commented on Apr 28, 2022

    @tgolen
    Contributor

    Aha! Maybe there is something there. I see we are setting sortByLastMessageTimestamp: false, when doing a search, so I will look into that a little more.

  19. tgolen commented on Apr 28, 2022

    @tgolen
    Contributor

    Yep, I was able to reproduce it after having a recent message sent to newuser1@expensify.com:

    image

    Looking into it more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions