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
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
e8c9ccaa7e
Коммит
715097cc76
@@ -184,8 +184,11 @@ func (me *TestHelper) TearDown() {
|
||||
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
options := map[string]bool{}
|
||||
options[store.USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME] = true
|
||||
options := &model.UserSearchOptions{
|
||||
AllowEmails: false,
|
||||
AllowFullNames: false,
|
||||
Limit: model.USER_SEARCH_MAX_LIMIT,
|
||||
}
|
||||
if result := <-me.App.Srv.Store.User().Search("", "fakeuser", options); result.Err != nil {
|
||||
mlog.Error("Error tearing down test users")
|
||||
} else {
|
||||
|
||||
Ссылка в новой задаче
Block a user