Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-18911: Filtering search by channel should also show the channel name and not only its ID #4217

Merged
merged 4 commits into from
Nov 23, 2019

Conversation

allenl7
Copy link
Contributor

@allenl7 allenl7 commented Nov 14, 2019

Summary

Web app filter search in: to display channel name (channel id) and display name like mobile

https://user-images.githubusercontent.com/7275313/68829461-d300ed80-065d-11ea-9642-2fbfdadbf6a2.PNG

Ticket Link

( https://mattermost.atlassian.net/browse/MM-18911 )

Screenshots

@hanzei hanzei added 1: PM Review Requires review by a product manager 2: Dev Review Requires review by a core commiter Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Nov 14, 2019
@Willyfrog Willyfrog added the 3: QA Review Requires review by a QA tester label Nov 14, 2019
Copy link
Contributor

@Willyfrog Willyfrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should only change the suggestion for channel autocompletion, so the user can identify a channel by either its id or its name, depending on what's familiar for him. With the proposed change it is adding extra info to the search and nothing can be found.

Let me know if you need any more details on the approach

components/suggestion/search_channel_provider.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

@esethna esethna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The test server shows a different character, it should be the tilde as displayed here: ~
  2. The tilde should be within the parentheses (~some-channel)

image

Other than that looks good, adding Katie as this touches her area

@allenl7
Copy link
Contributor Author

allenl7 commented Nov 15, 2019

  1. The test server shows a different character, it should be the tilde as displayed here: ~
  2. The tilde should be within the parentheses (~some-channel)

image

Other than that looks good, adding Katie as this touches her area

Moved the tilde inside the parentheses. @esethna do you think it looks like a '-' because of the browser? it a tilde on mine.

Copy link
Contributor

@esethna esethna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@allenlai18, hmm you're correct I believe, the tilde looks like that in channel autocomplete as well however we should look into fixing that if possible, but not blocking this PR. Approving this PR.

@Willyfrog
Copy link
Contributor

@allenlai18 this prevents searching, it should display as you did, but search functionality shouldn't break because of this change.

@allenl7
Copy link
Contributor Author

allenl7 commented Nov 18, 2019

@allenlai18 this prevents searching, it should display as you did, but search functionality shouldn't break because of this change.

I see what you're saying now. the search is breaking when you search in a channel. i will look into this

@wiersgallak
Copy link
Contributor

I am seeing a tilde in my testing on Mac and it is correctly placed inside of the parentheses.
Screen Shot 2019-11-15 at 8 06 46 AM
I have added another channel "Katie Test (~apple). The channel name is not being identified by autocomplete in a search starting with "t"
Screen Shot 2019-11-15 at 8 20 41 AM

Screen Shot 2019-11-15 at 8 20 30 AM

@allenl7
Copy link
Contributor Author

allenl7 commented Nov 19, 2019

I am seeing a tilde in my testing on Mac and it is correctly placed inside of the parentheses.
Screen Shot 2019-11-15 at 8 06 46 AM
I have added another channel "Katie Test (~apple). The channel name is not being identified by autocomplete in a search starting with "t"
Screen Shot 2019-11-15 at 8 20 41 AM

Screen Shot 2019-11-15 at 8 20 30 AM

I think that is the expected behavior. katieTest is camel cased. if it was seperated with dashes it works. what @Willyfrog was talking about is the search is broken when you search for posts within a channel.

@allenl7
Copy link
Contributor Author

allenl7 commented Nov 19, 2019

@allenlai18 this prevents searching, it should display as you did, but search functionality shouldn't break because of this change.

Fixed! Let me know what you think.

@mattermod
Copy link
Contributor

Mattermost test server updated with git commit 956e0a538134e37f7b56b02f033e0178812b2717.

Access here: https://mattermost-webapp-pr-4217.test.mattermost.cloud

Copy link
Contributor

@Willyfrog Willyfrog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! thanks for your contribution!

@Willyfrog Willyfrog removed the 1: PM Review Requires review by a product manager label Nov 20, 2019
Copy link
Contributor

@wiersgallak wiersgallak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now. Confirmed searching is working as expected in channel as well. Thanks for clarifying the behavior on the camel case, this may be something we will want to address but can do outside of this PR.

Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@hmhealey hmhealey removed the 2: Dev Review Requires review by a core commiter label Nov 20, 2019
Copy link
Contributor

@jgilliam17 jgilliam17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, looks good to merge

@jgilliam17 jgilliam17 added QA Review Done and removed 3: QA Review Requires review by a QA tester Setup Cloud Test Server Setup a test server using Mattermost Cloud labels Nov 22, 2019
@mattermod
Copy link
Contributor

Test server destroyed

@allenl7
Copy link
Contributor Author

allenl7 commented Nov 23, 2019

@Willyfrog can you merge when you get a chance?

@Willyfrog Willyfrog merged commit d2e306e into mattermost:master Nov 23, 2019
@lindy65 lindy65 added this to the v5.20.0 milestone Dec 13, 2019
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Needed Requires documentation labels Jan 20, 2020
@amyblais amyblais added Docs/Done Required documentation has been written and removed Docs/Needed Requires documentation labels Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Done Required changelog entry has been written Docs/Done Required documentation has been written QA Review Done
Projects
None yet
10 participants