Skip to content

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

Update sort order descriptions in reorder inputs

IKarbowiak67c9eefa587e
diff --git a/saleor/graphql/menu/types.py b/saleor/graphql/menu/types.py
index acf7cdc980..395e04213b 100644
--- a/saleor/graphql/menu/types.py
+++ b/saleor/graphql/menu/types.py
@@ -96,5 +96,9 @@ class MenuItemMoveInput(graphene.InputObjectType):
description="ID of the parent menu. If empty, menu will be top level menu."
)
sort_order = graphene.Int(
- description="The new relative sorting position of the item (from -inf to +inf)."
+ description=(
+ "The new relative sorting position of the item (from -inf to +inf). "
+ "1 moves the item one position forward, -1 moves the item one position "
+ "backward, 0 leaves the item unchanged."
+ )
)
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.py
index bf61681660..27f05f5ea5 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -100,7 +100,9 @@ class ReorderInput(graphene.InputObjectType):
id = graphene.ID(required=True, description="The ID of the item to move.")
sort_order = graphene.Int(
description=(
- "The new relative sorting position of the item (from -inf to +inf)."
+ "The new relative sorting position of the item (from -inf to +inf). "
+ "1 moves the item one position forward, -1 moves the item one position "
+ "backward, 0 leaves the item unchanged."
)
)
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.py
index a4a9c1689b..14f3c3f295 100644
--- a/saleor/graphql/product/mutations/products.py
+++ b/saleor/graphql/product/mutations/products.py
@@ -261,6 +261,8 @@ class MoveProductInput(graphene.InputObjectType):
description=(
"The relative sorting position of the product (from -inf to +inf) "
"starting from the first given product's actual position."
+ "1 moves the item one position forward, -1 moves the item one position "
+ "backward, 0 leaves the item unchanged."
)
)