From 715097cc76510a3d78ba83e8544ee7c956ed26e9 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Wed, 17 Oct 2018 11:24:12 -0400 Subject: 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 --- store/store.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'store/store.go') 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 -- cgit v1.2.3-1-g7c22