Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Provide proper syncronous event label in GraphQL (#9963)
Tomasz Magulski2130560e3453
diff --git a/saleor/graphql/webhook/types.py b/saleor/graphql/webhook/types.pyindex b8fd15093f..354b0cfbaf 100644--- a/saleor/graphql/webhook/types.py+++ b/saleor/graphql/webhook/types.py@@ -69,7 +69,7 @@ class WebhookEventSync(ModelObjectType):@staticmethoddef resolve_name(root: models.WebhookEvent, _info):return (- WebhookEventAsyncType.DISPLAY_LABELS.get(root.event_type) or root.event_type+ WebhookEventSyncType.DISPLAY_LABELS.get(root.event_type) or root.event_type)diff --git a/saleor/webhook/deprecated_event_types.py b/saleor/webhook/deprecated_event_types.pyindex 1235b5d320..da7d55b913 100644--- a/saleor/webhook/deprecated_event_types.py+++ b/saleor/webhook/deprecated_event_types.py@@ -89,8 +89,8 @@ class WebhookEventType:PRODUCT_VARIANT_BACK_IN_STOCK: "Product variant back in stock",CHECKOUT_CREATED: "Checkout created",CHECKOUT_UPDATED: "Checkout updated",- FULFILLMENT_CREATED: "Fulfillment_created",- FULFILLMENT_CANCELED: "Fulfillment_cancelled",+ FULFILLMENT_CREATED: "Fulfillment created",+ FULFILLMENT_CANCELED: "Fulfillment cancelled",NOTIFY_USER: "Notify user",PAGE_CREATED: "Page Created",PAGE_UPDATED: "Page Updated",diff --git a/saleor/webhook/event_types.py b/saleor/webhook/event_types.pyindex c27e1b2403..3ff04faade 100644--- a/saleor/webhook/event_types.py+++ b/saleor/webhook/event_types.py@@ -185,8 +185,8 @@ class WebhookEventAsyncType:PRODUCT_VARIANT_BACK_IN_STOCK: "Product variant back in stock",CHECKOUT_CREATED: "Checkout created",CHECKOUT_UPDATED: "Checkout updated",- FULFILLMENT_CREATED: "Fulfillment_created",- FULFILLMENT_CANCELED: "Fulfillment_cancelled",+ FULFILLMENT_CREATED: "Fulfillment created",+ FULFILLMENT_CANCELED: "Fulfillment cancelled",NOTIFY_USER: "Notify user",PAGE_CREATED: "Page Created",PAGE_UPDATED: "Page Updated",