Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove deprecated thumbnailUrl from OrderLine in API
fowczarekb1fd1cf9929f
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.pyindex 2d66ae25f3..d4150f68af 100644--- a/saleor/graphql/order/types.py+++ b/saleor/graphql/order/types.py@@ -183,11 +183,6 @@ class Fulfillment(CountableDjangoObjectType):class OrderLine(CountableDjangoObjectType):- thumbnail_url = graphene.String(- description="The URL of a main thumbnail for the ordered product.",- size=graphene.Int(description="Size of the image"),- deprecation_reason="thumbnailUrl is deprecated, use thumbnail instead",- )thumbnail = graphene.Field(Image,description="The main thumbnail for the ordered product.",@@ -220,20 +215,6 @@ class OrderLine(CountableDjangoObjectType):"translated_product_name",]- @staticmethod- @gql_optimizer.resolver_hints(- prefetch_related=["variant__images", "variant__product__images"]- )- def resolve_thumbnail_url(root: models.OrderLine, info, size=None):- if not root.variant_id:- return None- if not size:- size = 255- url = get_product_image_thumbnail(- root.variant.get_first_image(), size, method="thumbnail"- )- return info.context.build_absolute_uri(url)-@staticmethod@gql_optimizer.resolver_hints(prefetch_related=["variant__images", "variant__product__images"]