[MM-44434] Introduced search for channel id's through system console. (#20259)
* Introduced search for channel id's * Small fix to test case as it is not looking at count * Introduced searching channels by id as a ChannelOpt. Defaulting to true for system console for the time being * go fmt * Modified whether to include search by id by passing it in as prop to search endpoint. Modified webapp to pass through search by id as well * Fixed issue with full text search, as there is not always necessarily an index on Id. * Modified test to verify count, and moved code inside conditional Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f15873eaf4
Коммит
dd7067cbe9
@@ -1158,7 +1158,6 @@ func searchAllChannels(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
includeDeleted, _ := strconv.ParseBool(r.URL.Query().Get("include_deleted"))
|
||||
includeDeleted = includeDeleted || props.IncludeDeleted
|
||||
|
||||
opts := model.ChannelSearchOpts{
|
||||
NotAssociatedToGroup: props.NotAssociatedToGroup,
|
||||
ExcludeDefaultChannels: props.ExcludeDefaultChannels,
|
||||
@@ -1166,6 +1165,7 @@ func searchAllChannels(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
GroupConstrained: props.GroupConstrained,
|
||||
ExcludeGroupConstrained: props.ExcludeGroupConstrained,
|
||||
ExcludePolicyConstrained: props.ExcludePolicyConstrained,
|
||||
IncludeSearchById: props.IncludeSearchById,
|
||||
Public: props.Public,
|
||||
Private: props.Private,
|
||||
IncludeDeleted: includeDeleted,
|
||||
|
||||
Ссылка в новой задаче
Block a user