Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add descriptions
fowczarekc39bf5e78545
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.pyindex 2c8ea1d2b1..f33d17a13f 100644--- a/saleor/graphql/account/mutations/base.py+++ b/saleor/graphql/account/mutations/base.py@@ -302,8 +302,11 @@ class CustomerInput(UserInput, UserAddressInput):class UserCreateInput(CustomerInput):send_password_email = graphene.Boolean(- # TODO Add description- description="DEPRECATED: XXXX, Send an email with a link to set a password."+ description=(+ "DEPRECATED: Will be removed in Saleor 2.10, if mutation has `redirect_url`"+ " in input then customer get email with link to set a password. "+ "Send an email with a link to set a password."+ ))redirect_url = graphene.String(description=(@@ -343,8 +346,8 @@ class BaseCustomerCreate(ModelMutation, I18nMixin):)cleaned_input[BILLING_ADDRESS_FIELD] = billing_address- # TODO Add description- # DEPRECATED: XXX+ # DEPRECATED: We shoud remove this confition whe drop `send_password_email`+ # from mutation imput.if cleaned_input.get("send_password_email"):if not cleaned_input.get("redirect_url"):raise ValidationError(@@ -355,6 +358,7 @@ class BaseCustomerCreate(ModelMutation, I18nMixin):)})+if cleaned_input.get("redirect_url"):try:validate_storefront_url(cleaned_input.get("redirect_url"))diff --git a/saleor/graphql/account/mutations/staff.py b/saleor/graphql/account/mutations/staff.pyindex c017026d3b..1b9e624b57 100644--- a/saleor/graphql/account/mutations/staff.py+++ b/saleor/graphql/account/mutations/staff.py@@ -46,8 +46,11 @@ class StaffInput(UserInput):class StaffCreateInput(StaffInput):send_password_email = graphene.Boolean(- # TODO Add description- description="DEPRECATED: XXXX, Send an email with a link to set the password."+ description=(+ "DEPRECATED: Will be removed in Saleor 2.10, if mutation has `redirect_url`"+ " in input then staff get email with link to set a password. "+ "Send an email with a link to set the password."+ ))redirect_url = graphene.String(description=(@@ -173,8 +176,8 @@ class StaffCreate(ModelMutation):def clean_input(cls, info, instance, data):cleaned_input = super().clean_input(info, instance, data)- # TODO Add description- # DEPRECATED: XXX+ # DEPRECATED: We shoud remove this confition whe drop `send_password_email`+ # from mutation imput.if cleaned_input.get("send_password_email"):if not cleaned_input.get("redirect_url"):raise ValidationError(@@ -185,6 +188,7 @@ class StaffCreate(ModelMutation):)})+if cleaned_input.get("redirect_url"):try:validate_storefront_url(cleaned_input.get("redirect_url"))diff --git a/saleor/graphql/shop/mutations.py b/saleor/graphql/shop/mutations.pyindex e3fdcf5929..3b7fca69d7 100644--- a/saleor/graphql/shop/mutations.py+++ b/saleor/graphql/shop/mutations.py@@ -43,8 +43,9 @@ class ShopSettingsInput(graphene.InputObjectType):default_mail_sender_address = graphene.String(description="Default email sender's address.")- # TODO: Add description- customer_set_password_url = graphene.String(description="XXXXX")+ customer_set_password_url = graphene.String(+ description="Storefront url address in which the client sets the password."+ )class SiteDomainInput(graphene.InputObjectType):diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex 16c82e0bc0..1ea4a92a83 100644--- a/saleor/graphql/shop/types.py+++ b/saleor/graphql/shop/types.py@@ -149,8 +149,10 @@ class Shop(graphene.ObjectType):company_address = graphene.Field(Address, description="Company address.", required=False)- # TODO: Add description- customer_set_password_url = graphene.String(description="XXXXX", required=False)+ customer_set_password_url = graphene.String(+ description="storefront url address in which the client sets the password.",+ required=False,+ )class Meta:description = (