Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add missing descriptions to channel types (#13166)

Filip Owczarek0e3859b21f2a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 14ea7d7231..e81ad87e1e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Add missing descriptions to App module. - #13163 by @fowczarek
- Drop TranslationProxy and replace `translated` model property with `get_translation` function where needed. - #13156 by @zedzior
- Add missing descriptions to Account module. - #13155 by @fowczarek
+- Add missing descriptions to channel module. - #13166 by @fowczarek
# 3.14.0
diff --git a/saleor/graphql/channel/mutations/channel_create.py b/saleor/graphql/channel/mutations/channel_create.py
index ce7f3e98c7..85ec8e5e65 100644
--- a/saleor/graphql/channel/mutations/channel_create.py
+++ b/saleor/graphql/channel/mutations/channel_create.py
@@ -100,7 +100,9 @@ class OrderSettingsInput(BaseInputObjectType):
class ChannelInput(BaseInputObjectType):
- is_active = graphene.Boolean(description="isActive flag.")
+ is_active = graphene.Boolean(
+ description="Determine if channel will be set active or not."
+ )
stock_settings = graphene.Field(
StockSettingsInput,
description=("The channel stock settings." + ADDED_IN_37),
diff --git a/saleor/graphql/channel/types.py b/saleor/graphql/channel/types.py
index 2d05d1ad12..7ca17253a7 100644
--- a/saleor/graphql/channel/types.py
+++ b/saleor/graphql/channel/types.py
@@ -228,7 +228,7 @@ class OrderSettings(ObjectType):
class Channel(ModelObjectType):
- id = graphene.GlobalID(required=True)
+ id = graphene.GlobalID(required=True, description="The ID of the channel.")
slug = graphene.String(
required=True,
description="Slug of the channel.",
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 0193993a45..c9417f8270 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -4735,6 +4735,7 @@ type ShippingMethodChannelListing implements Node @doc(category: "Shipping") {
"""Represents channel."""
type Channel implements Node @doc(category: "Channels") {
+ """The ID of the channel."""
id: ID!
"""Slug of the channel."""
@@ -25249,7 +25250,7 @@ enum ChannelErrorCode @doc(category: "Channels") {
}
input ChannelCreateInput @doc(category: "Channels") {
- """isActive flag."""
+ """Determine if channel will be set active or not."""
isActive: Boolean
"""
@@ -25363,7 +25364,7 @@ type ChannelUpdate @doc(category: "Channels") {
}
input ChannelUpdateInput @doc(category: "Channels") {
- """isActive flag."""
+ """Determine if channel will be set active or not."""
isActive: Boolean
"""