Skip to content

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

Apply code review suggestions - update descriptions and error message in product mutations

IKarbowiak87db82373113
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.py
index 7bd7368f4b..f42f9dbf5d 100644
--- a/saleor/graphql/product/mutations/products.py
+++ b/saleor/graphql/product/mutations/products.py
@@ -542,7 +542,10 @@ class ProductInput(graphene.InputObjectType):
)
)
visible_in_listings = graphene.Boolean(
- description="Determines if product is visible in product listings."
+ description=(
+ "Determines if product is visible in product listings "
+ "(doesn't apply to product collections)."
+ )
)
@@ -1840,7 +1843,7 @@ class ProductSetAvailabilityForPurchase(BaseMutation):
start_date = graphene.Date(
description=(
"A start date from which a product will be available for purchase. "
- "When not set and is_available is set to True, "
+ "When not set and isAvailable is set to True, "
"the current day is assumed."
),
required=False,
@@ -1862,7 +1865,7 @@ class ProductSetAvailabilityForPurchase(BaseMutation):
raise ValidationError(
{
"start_date": ValidationError(
- "Cannot set start date when is_available is false.",
+ "Cannot set start date when isAvailable is false.",
code=ProductErrorCode.INVALID,
)
}