[MM-45168] Added graphql fields for channel and channel_member (#20613)

Этот коммит содержится в:
Tim Scheuermann
2022-07-11 14:58:05 +03:00
коммит произвёл GitHub
родитель 00439aa2a7
Коммит 662248291e
5 изменённых файлов: 21 добавлений и 0 удалений

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

@@ -66,6 +66,7 @@ func TestGraphQLChannelMembers(t *testing.T) {
MsgCount float64 `json:"msgCount"`
MentionCount float64 `json:"mentionCount"`
MentionCountRoot float64 `json:"mentionCountRoot"`
MsgCountRoot float64 `json:"msgCountRoot"`
NotifyProps model.StringMap `json:"notifyProps"`
SchemeGuest bool `json:"schemeGuest"`
SchemeUser bool `json:"schemeUser"`
@@ -100,6 +101,7 @@ func TestGraphQLChannelMembers(t *testing.T) {
msgCount
mentionCount
mentionCountRoot
msgCountRoot
schemeGuest
schemeUser
schemeAdmin

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

@@ -40,6 +40,8 @@ func TestGraphQLChannels(t *testing.T) {
Header string `json:"header"`
Purpose string `json:"purpose"`
SchemeId string `json:"schemeId"`
TotalMsgCountRoot float64 `json:"totalMsgCountRoot"`
LastRootPostAt float64 `json:"lastRootPostAt"`
Cursor string `json:"cursor"`
Team struct {
ID string `json:"id"`
@@ -70,6 +72,8 @@ func TestGraphQLChannels(t *testing.T) {
header
purpose
schemeId
totalMsgCountRoot
lastRootPostAt
cursor
}
}

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

@@ -58,6 +58,8 @@ type Channel {
shared: Boolean
lastPostAt: Float!
totalMsgCount: Float!
totalMsgCountRoot: Float!
lastRootPostAt: Float!
stats: ChannelStats
cursor: String
}
@@ -70,6 +72,7 @@ type ChannelMember {
msgCount : Float!
mentionCount : Float!
mentionCountRoot : Float!
msgCountRoot : Float!
notifyProps : StringMap!
lastUpdateAt : Float!
schemeGuest : Boolean!