diff options
author | Jesse Hallam <jesse.hallam@gmail.com> | 2018-10-17 11:24:12 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-10-17 11:24:12 -0400 |
commit | 715097cc76510a3d78ba83e8544ee7c956ed26e9 (patch) | |
tree | 0b6d41e88bf75ad34c585d9db80f04cf8d780338 /store/store.go | |
parent | e8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235 (diff) | |
download | chat-715097cc76510a3d78ba83e8544ee7c956ed26e9.tar.gz chat-715097cc76510a3d78ba83e8544ee7c956ed26e9.tar.bz2 chat-715097cc76510a3d78ba83e8544ee7c956ed26e9.zip |
MM-12234: configurable limit to user autocomplete and search matches (#9499)
* unit test cleanup
* allow limiting user search results
* clean up test users before starting
* model UserSearchOptions to simplify parameters
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/store/store.go b/store/store.go index 1e153b422..e554f1486 100644 --- a/store/store.go +++ b/store/store.go @@ -272,11 +272,11 @@ type UserStore interface { GetAnyUnreadPostCountForChannel(userId string, channelId string) StoreChannel GetRecentlyActiveUsersForTeam(teamId string, offset, limit int) StoreChannel GetNewUsersForTeam(teamId string, offset, limit int) StoreChannel - Search(teamId string, term string, options map[string]bool) StoreChannel - SearchNotInTeam(notInTeamId string, term string, options map[string]bool) StoreChannel - SearchInChannel(channelId string, term string, options map[string]bool) StoreChannel - SearchNotInChannel(teamId string, channelId string, term string, options map[string]bool) StoreChannel - SearchWithoutTeam(term string, options map[string]bool) StoreChannel + Search(teamId string, term string, options *model.UserSearchOptions) StoreChannel + SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) StoreChannel + SearchInChannel(channelId string, term string, options *model.UserSearchOptions) StoreChannel + SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) StoreChannel + SearchWithoutTeam(term string, options *model.UserSearchOptions) StoreChannel AnalyticsGetInactiveUsersCount() StoreChannel AnalyticsGetSystemAdminCount() StoreChannel GetProfilesNotInTeam(teamId string, offset int, limit int) StoreChannel |