Fixed bug around channel file sidebar (#27705)
* Fixed the issue for DB layer, ES to go * Handled channel bookmarks * Handled Bleve * Lint fix * Added channel bookmark test * Skip bleve test * Used common function * SKipping ES as indexing logic in unavailable in test
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d8b01bde2e
Коммит
eb6336ce7a
@@ -514,6 +514,10 @@ func (fs SqlFileInfoStore) Search(rctx request.CTX, paramsList []*model.SearchPa
|
||||
LeftJoin("ChannelMembers as CM ON C.Id=CM.ChannelId").
|
||||
Where(sq.Or{sq.Eq{"C.TeamId": teamId}, sq.Eq{"C.TeamId": ""}}).
|
||||
Where(sq.Eq{"FileInfo.DeleteAt": 0}).
|
||||
Where(sq.Or{
|
||||
sq.Eq{"FileInfo.CreatorId": model.BookmarkFileOwner},
|
||||
sq.NotEq{"FileInfo.PostId": ""},
|
||||
}).
|
||||
OrderBy("FileInfo.CreateAt DESC").
|
||||
Limit(100)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user