-
Notifications
You must be signed in to change notification settings - Fork 231
Improve mention suggestion search for large channels #4213
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9de4e03
Search channel members remotely in large group mention suggestions
nuno-vieira 8289de9
Update CHANGELOG for large group mention suggestions fix
nuno-vieira 9cf0be5
Clarify CHANGELOG entry for MentionSuggestionsProvider fix
nuno-vieira bb16ff3
Merge branch 'develop' into fix/mention-suggestions-large-channels
nuno-vieira b3ad3a5
Add MemberSearch for debounced channel member queries
nuno-vieira 58bc82c
Add search debouncing to RoleSearch and RoleSearchController
nuno-vieira ef605a6
Add UserGroupSearchController and debouncing for group search
nuno-vieira 900c626
Add clearResults to search APIs and mention suggestion providers
nuno-vieira 571cbb9
Release member list updater completions in deallocation tests
nuno-vieira d4bbc4d
Merge branch 'develop' into fix/mention-suggestions-large-channels
nuno-vieira 6f99122
Update CHANGELOG.md
nuno-vieira c12cab4
Change search controllers to use dynamic debouncing
nuno-vieira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why's it a closure and not a member list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because we need to create a MemberList object per query. At the moment we do not have a MemberSearch object, like now we do with ChannelSearch. It could make sense to do it now π€ WDYT? Or do it in a seperate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about just adding state later version? We should start moving towards async-await more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we have nice set of these. Channel, messages, member. Also the add members view in contact info vould benefit from debounce supported MemberSearch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the state layer; the provider only uses the state layer, actually. But yeah, at the moment we don't have MemberSearch. But if we want to add it in this PR, I can do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laevandus @martinmitrevski I've updated the PR to include MemberSearch. Also, I added debouncing support for the other providers (Role Search and Group Search). While I was at it, I also added the missing GroupSearchCOntroller that was missing. (Why not)