Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Mark NOTIFY_USER as deprecated (#13881)
Marcin Gębalaebc0fbbe3ceb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b3ae15b12f..dc543f20ce 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,14 +5,16 @@ All notable, unreleased changes to this project will be documented in this file.# 3.16.0 [Unreleased]### Breaking changes+- **Feature preview breaking change**:- Deprecate `OrderSettingsInput.defaultTransactionFlowStrategy`. It will be removed-in 3.17. Use `PaymentSettingsInput.defaultTransactionFlowStrategy` instead.+ in 3.17. Use `PaymentSettingsInput.defaultTransactionFlowStrategy` instead.- Deprecate `OrderSettings.defaultTransactionFlowStrategy`. It will be removed-in 3.17. Use `PaymentSettings.defaultTransactionFlowStrategy` instead.+ in 3.17. Use `PaymentSettings.defaultTransactionFlowStrategy` instead.- Change in the CSV export. It will now use empty string for empty attribute values instead of a single whitespace value.### GraphQL API+- Add `customerIpAddress` to `transactionInitialize` and `transactionProcess` mutations - #13718 by @korycins- Add `PaymentSettings` to `Channel` - #13677 by @korycins- Adjust where filtering by empty values - explicit treat empty values - #13754 by @IKarbowiak@@ -20,11 +22,12 @@ in 3.17. Use `PaymentSettings.defaultTransactionFlowStrategy` instead.- Add `externalReference` to `updateWarehouse`. It will allow update warehouse byexternal reference. - #13342 by @Smit-Parmar- Add Filter warehouses by metadata - #13345 by @Smit-Parmar--+- Deprecate the `NOTIFY_USER` webhook and the `externalNotificationTrigger` mutation - #13881 by @maarcingebala+ - See the docs for more details about migrating from the `NOTIFY_USER` webhook to other events: https://docs.saleor.io/docs/next/upgrade-guides/notify-user-deprecation### Saleor Apps-- Add `customerIpAddress` to `TRANSACTION_INITIALIZE_SESSION` and `TRANSACTION_PROCESS_SESSION` webhooks #13718 by @korycins++- Add `customerIpAddress` to `TRANSACTION_INITIALIZE_SESSION` and `TRANSACTION_PROCESS_SESSION` webhooks #13718 by @korycins- Add `STORED_PAYMENT_METHOD_DELETE_REQUESTED` webhook event - #13660 by @korycins- Add `NOTIFY_CUSTOMER` flag to `FulfillmentCreated` type - #13620, by @Air-t- Inform apps if customer should be notified when fulfillment is created.@@ -42,6 +45,7 @@ in 3.17. Use `PaymentSettings.defaultTransactionFlowStrategy` instead.- `FulfillmentCreated`, `FulfillmentApproved`, `StaffSetPasswordRequested`### Other changes+- Fix error in variant available stock calculation - 13593 by @awaisdar001- Add missing currency in action for transaction requests - 13786 by @AjmalPonneth- Fix giftcard code description - #13728 by @rafiwts@@ -222,6 +226,7 @@ Shipping methods can be removed by the user after it has been assigned to a chec- `preprocess_order_creation`This breaking change affect any custom plugins in open-source Saleor, if they override any of the above mentioned methods.+- The signature of the `list_payment_gateways` manager method has changed. It may affect Saleor open-source users, who maintain plugins overriding this method. Changes:- The `checkout: Checkout` argument was removed- `checkout_info: CheckoutInfo` and `checkout_lines: Iterable[CheckoutLineInfo]` arguments were added insteaddiff --git a/saleor/graphql/notifications/schema.py b/saleor/graphql/notifications/schema.pyindex 39cbfa41eb..edaa58c9c7 100644--- a/saleor/graphql/notifications/schema.py+++ b/saleor/graphql/notifications/schema.py@@ -1,7 +1,10 @@import graphene+from ..core.descriptions import DEPRECATED_IN_3X_MUTATIONfrom .mutations.external_notification_trigger import ExternalNotificationTriggerclass ExternalNotificationMutations(graphene.ObjectType):- external_notification_trigger = ExternalNotificationTrigger.Field()+ external_notification_trigger = ExternalNotificationTrigger.Field(+ deprecation_reason=DEPRECATED_IN_3X_MUTATION+ )diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 7c890e96fc..462abdb776 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -2088,7 +2088,11 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {"""CHECKOUT_METADATA_UPDATED- """User notification triggered."""+ """+ User notification triggered.++ DEPRECATED: this value will be removed in Saleor 4.0. See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/docs/next/upgrade-guides/notify-user-deprecation+ """NOTIFY_USER"""A new page is created."""@@ -2769,7 +2773,11 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {"""CHECKOUT_METADATA_UPDATED- """User notification triggered."""+ """+ User notification triggered.++ DEPRECATED: this value will be removed in Saleor 4.0. See the docs for more details about migrating from NOTIFY_USER to other events: https://docs.saleor.io/docs/next/upgrade-guides/notify-user-deprecation+ """NOTIFY_USER"""A new page is created."""@@ -16799,7 +16807,7 @@ type Mutation {"""The ID of notification plugin."""pluginId: String- ): ExternalNotificationTrigger+ ): ExternalNotificationTrigger @deprecated(reason: "\\n\\nDEPRECATED: this mutation will be removed in Saleor 4.0.")"""Creates a new sale.diff --git a/saleor/graphql/webhook/enums.py b/saleor/graphql/webhook/enums.pyindex 936571102c..9f63bd82b5 100644--- a/saleor/graphql/webhook/enums.py+++ b/saleor/graphql/webhook/enums.py@@ -109,7 +109,13 @@ WEBHOOK_EVENT_DESCRIPTION = {WebhookEventAsyncType.MENU_ITEM_CREATED: "A new menu item created.",WebhookEventAsyncType.MENU_ITEM_UPDATED: "A menu item is updated.",WebhookEventAsyncType.MENU_ITEM_DELETED: "A menu item is deleted.",- WebhookEventAsyncType.NOTIFY_USER: "User notification triggered.",+ WebhookEventAsyncType.NOTIFY_USER: (+ "User notification triggered."+ + DEPRECATED_IN_3X_ENUM_VALUE+ + " See the docs for more details about migrating from NOTIFY_USER to other "+ "events: "+ + "https://docs.saleor.io/docs/next/upgrade-guides/notify-user-deprecation"+ ),WebhookEventAsyncType.ORDER_CREATED: "A new order is placed.",WebhookEventAsyncType.ORDER_CONFIRMED: order_confirmed_event_enum_description,WebhookEventAsyncType.ORDER_PAID: (diff --git a/saleor/webhook/event_types.py b/saleor/webhook/event_types.pyindex 8804297578..85318a0782 100644--- a/saleor/webhook/event_types.py+++ b/saleor/webhook/event_types.py@@ -138,7 +138,7 @@ class WebhookEventAsyncType:CHECKOUT_FULLY_PAID = "checkout_fully_paid"CHECKOUT_METADATA_UPDATED = "checkout_metadata_updated"- NOTIFY_USER = "notify_user"+ NOTIFY_USER = "notify_user" # deprecatedPAGE_CREATED = "page_created"PAGE_UPDATED = "page_updated"