API includes sort_order, and WebSocket includes data (#19157)
* API includes sort_order, and WebSocket includes data * Adds sort_order API test * MM-40470: Tests that new WS payload is sent after categories are updated via API. * Update api4/channel_category_test.go Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com> Co-authored-by: Martin Kraft <martin@upspin.org> Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Этот коммит содержится в:
@@ -37,12 +37,11 @@ const (
|
||||
)
|
||||
|
||||
// SidebarCategory represents the corresponding DB table
|
||||
// SortOrder is never returned to the user and only used for queries
|
||||
type SidebarCategory struct {
|
||||
Id string `json:"id"`
|
||||
UserId string `json:"user_id"`
|
||||
TeamId string `json:"team_id"`
|
||||
SortOrder int64 `json:"-"`
|
||||
SortOrder int64 `json:"sort_order"`
|
||||
Sorting SidebarCategorySorting `json:"sorting"`
|
||||
Type SidebarCategoryType `json:"type"`
|
||||
DisplayName string `json:"display_name"`
|
||||
|
||||
Ссылка в новой задаче
Block a user