[MM-14253] Adds channels and users to the bulk index process (#10434)

* [MM-14253] Adds channels and users to the bulk index process

* Add support for PostgreSQL and sort the user query result

* Add tests for user and channel batch queries

* Fix test times
Этот коммит содержится в:
Miguel de la Cruz
2019-03-19 12:42:08 +00:00
коммит произвёл GitHub
родитель 5a9d95d9c7
Коммит 372ef87f76
10 изменённых файлов: 400 добавлений и 33 удалений

Просмотреть файл

@@ -103,6 +103,18 @@ type UserAuth struct {
AuthService string `json:"auth_service,omitempty"`
}
type UserForIndexing struct {
Id string `json:"id"`
Username string `json:"username"`
Nickname string `json:"nickname"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
CreateAt int64 `json:"create_at"`
DeleteAt int64 `json:"delete_at"`
TeamsIds []string `json:"team_id"`
ChannelsIds []string `json:"channel_id"`
}
func (u *User) DeepCopy() *User {
copyUser := *u
if u.AuthData != nil {