GraphQL: Create dedicated top-level filter for sidebar categories (#20353)
We add the excludeTeam switch to allow user to get all sidebar categories from other teams excluding a given team. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ade2271442
Коммит
bd6acf04a9
@@ -26,7 +26,8 @@ type Query {
|
||||
after: String = "",
|
||||
lastUpdateAt: Float = 0): [ChannelMember]!
|
||||
sidebarCategories(userId: String!,
|
||||
teamId: String!): [SidebarCategory]!
|
||||
teamId: String!,
|
||||
excludeTeam: Boolean = false): [SidebarCategory]!
|
||||
}
|
||||
|
||||
scalar ChannelType
|
||||
@@ -158,7 +159,6 @@ type TeamMember {
|
||||
schemeGuest: Boolean!
|
||||
schemeUser: Boolean!
|
||||
schemeAdmin: Boolean!
|
||||
sidebarCategories: [SidebarCategory]!
|
||||
}
|
||||
|
||||
type SidebarCategory {
|
||||
@@ -168,6 +168,7 @@ type SidebarCategory {
|
||||
displayName: String!
|
||||
muted: Boolean!
|
||||
collapsed: Boolean!
|
||||
teamId: String!
|
||||
channelIds: [String!]!
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user