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

View Members search matches entire string for the Position field instead of each word #27325

Open
mattermod opened this issue Jun 11, 2024 · 2 comments · May be fixed by #27384
Open

View Members search matches entire string for the Position field instead of each word #27325

mattermod opened this issue Jun 11, 2024 · 2 comments · May be fixed by #27384
Assignees
Labels
Help Wanted Community help wanted PR Exists

Comments

@mattermod
Copy link
Contributor

https://github.com/mattermost/mattermost/issues/27283

Summary

In a channel's 'View Member' search, when it searches in the position field, it does a match from beginning of the string and not the beginning of each word. E.g. For 'Systems Engineer at Some Company', 'Systems' or 'Systems Engineer' matches, but 'Engineer' or 'Company' would not. I'd expect it to do word matches.

Steps to reproduce

Mattermost Server v9.8.1 and community.mattermost.com
Mattermost Desktop v5.7.0
Search in a channel's 'View Members' search box. When it searches the Position field, it does an match from beginning of the string search. E.g. For 'Systems Engineer at Some Company', 'Systems' or 'Systems Engineer' matches, but 'Engineer' or 'Company' would not. I'd expect it to do word matches.

Expected behavior

I'd expect it to do matches on words as it does withe the other fields. Re the example above, 'Company' and 'Engineer' should match.

Observed behavior

Search only matches from the beginning of the Position field's string.

Possible fixes

Not sure where the in code the code this is , but change the type of search for the position field so that word matches work.


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-58562

@mattermod mattermod added Help Wanted Community help wanted Up For Grabs labels Jun 11, 2024
@MattSilvaa
Copy link
Contributor

Hi! I'm interested in picking this one up

@MattSilvaa
Copy link
Contributor

PR is up 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Community help wanted PR Exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants