Skip to content

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

Extend description of PRODUCT_VARIANT_DELETED enum (#14599)

Lukasz Ostrowski57f8f9af3440
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index ab3fe9fa60..b6087db65c 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -2124,7 +2124,9 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A product variant is updated."""
PRODUCT_VARIANT_UPDATED
- """A product variant is deleted."""
+ """
+ A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED.
+ """
PRODUCT_VARIANT_DELETED
"""
@@ -2846,7 +2848,9 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A product variant is updated."""
PRODUCT_VARIANT_UPDATED
- """A product variant is deleted."""
+ """
+ A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED.
+ """
PRODUCT_VARIANT_DELETED
"""
diff --git a/saleor/graphql/webhook/enums.py b/saleor/graphql/webhook/enums.py
index d3a4da203e..081de08b3e 100644
--- a/saleor/graphql/webhook/enums.py
+++ b/saleor/graphql/webhook/enums.py
@@ -189,7 +189,7 @@ WEBHOOK_EVENT_DESCRIPTION = {
+ ADDED_IN_312,
WebhookEventAsyncType.PRODUCT_VARIANT_CREATED: "A new product variant is created.",
WebhookEventAsyncType.PRODUCT_VARIANT_UPDATED: "A product variant is updated.",
- WebhookEventAsyncType.PRODUCT_VARIANT_DELETED: "A product variant is deleted.",
+ WebhookEventAsyncType.PRODUCT_VARIANT_DELETED: "A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED.",
WebhookEventAsyncType.PRODUCT_VARIANT_METADATA_UPDATED: (
"A product variant metadata is updated." + ADDED_IN_38
),