Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Deprecate ordersTotal, reportProductSales and homepageEvents (#14806)
Krzysztof Kwaśniakdc677a86a695
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bbab37c2cb..943fdd6255 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ All notable, unreleased changes to this project will be documented in this file.### GraphQL API- Add taxes to undiscounted prices - #14095 by @jakubkuc+- Mark as deprecated: `ordersTotal`, `reportProductSales` and `homepageEvents` - #14806 by @8r2y5### Saleor Appsdiff --git a/saleor/graphql/order/schema.py b/saleor/graphql/order/schema.pyindex 7db3cfe5d5..0f5c52ce88 100644--- a/saleor/graphql/order/schema.py+++ b/saleor/graphql/order/schema.py@@ -98,6 +98,7 @@ class OrderQueries(graphene.ObjectType):permissions=[OrderPermissions.MANAGE_ORDERS,],+ deprecation_reason=DEPRECATED_IN_3X_FIELD,)order = BaseField(Order,@@ -143,6 +144,7 @@ class OrderQueries(graphene.ObjectType):OrderPermissions.MANAGE_ORDERS,],doc_category=DOC_CATEGORY_ORDERS,+ deprecation_reason=DEPRECATED_IN_3X_FIELD,)order_by_token = BaseField(Order,diff --git a/saleor/graphql/product/schema.py b/saleor/graphql/product/schema.pyindex 6964aa1e9e..c00a91813c 100644--- a/saleor/graphql/product/schema.py+++ b/saleor/graphql/product/schema.py@@ -8,7 +8,12 @@ from ..channel import ChannelContext, ChannelQsContextfrom ..channel.utils import get_default_channel_slug_or_graphql_errorfrom ..core import ResolveInfofrom ..core.connection import create_connection_slice, filter_connection_queryset-from ..core.descriptions import ADDED_IN_310, ADDED_IN_314, PREVIEW_FEATURE+from ..core.descriptions import (+ ADDED_IN_310,+ ADDED_IN_314,+ DEPRECATED_IN_3X_FIELD,+ PREVIEW_FEATURE,+)from ..core.doc_category import DOC_CATEGORY_PRODUCTSfrom ..core.enums import ReportingPeriodfrom ..core.fields import (@@ -331,6 +336,7 @@ class ProductQueries(graphene.ObjectType):ProductPermissions.MANAGE_PRODUCTS,],doc_category=DOC_CATEGORY_PRODUCTS,+ deprecation_reason=DEPRECATED_IN_3X_FIELD,)@staticmethoddiff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 66937c26ee..20a245dc33 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -635,7 +635,7 @@ type Query {Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query."""last: Int- ): ProductVariantCountableConnection @doc(category: "Products")+ ): ProductVariantCountableConnection @doc(category: "Products") @deprecated(reason: "This field will be removed in Saleor 4.0.")"""Look up a payment by ID.@@ -773,7 +773,7 @@ type Query {Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query."""last: Int- ): OrderEventCountableConnection @doc(category: "Orders")+ ): OrderEventCountableConnection @doc(category: "Orders") @deprecated(reason: "This field will be removed in Saleor 4.0.")"""Look up an order by ID or external reference."""order(@@ -860,7 +860,7 @@ type Query {"""Slug of a channel for which the data should be returned."""channel: String- ): TaxedMoney @doc(category: "Orders")+ ): TaxedMoney @doc(category: "Orders") @deprecated(reason: "This field will be removed in Saleor 4.0.")"""Look up an order by token."""orderByToken(