summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-10-17 11:24:12 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2018-10-17 11:24:12 -0400
commit715097cc76510a3d78ba83e8544ee7c956ed26e9 (patch)
tree0b6d41e88bf75ad34c585d9db80f04cf8d780338 /store/store.go
parente8c9ccaa7e47f1cba3d2b126f6ebbb092fa43235 (diff)
downloadchat-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.go10
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