MM-17468 - Improving performance of fetching threads (#11980)

fetchThreads parameter support in the API
Этот коммит содержится в:
Eli Yukelzon
2019-09-17 14:37:10 +01:00
коммит произвёл GitHub
родитель 39036ffb30
Коммит b3517eaf2f
14 изменённых файлов: 457 добавлений и 235 удалений

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

@@ -526,7 +526,7 @@ func TestAddChannelMemberNoUserRequestor(t *testing.T) {
}
assert.Equal(t, groupUserIds, channelMemberHistoryUserIds)
postList, err := th.App.Srv.Store.Post().GetPosts(channel.Id, 0, 1, false)
postList, err := th.App.Srv.Store.Post().GetPosts(model.GetPostsOptions{ChannelId: channel.Id, Page: 0, PerPage: 1}, false)
require.Nil(t, err)
if assert.Len(t, postList.Order, 1) {