Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add support for the CUSTOMER_* app mount points (#10163)
Krzysztof Wolski746eacba4645
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3403c55a15..fcfd03d1b1 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,10 @@ All notable, unreleased changes to this project will be documented in this file.# 3.6.0 [Unreleased]+### Saleor Apps++- Add support for the CUSTOMER_* app mount points (#10163) by @krzysztofwolski+### Breaking changes- Drop django-versatileimagefield package; add a proxy view to generate thumbnails on-demand - #9988 by @IKarbowiak- Drop `create_thumbnails` commanddiff --git a/saleor/app/migrations/0016_alter_appextension_mount.py b/saleor/app/migrations/0016_alter_appextension_mount.pynew file mode 100644index 0000000000..9f369d1d70--- /dev/null+++ b/saleor/app/migrations/0016_alter_appextension_mount.py@@ -0,0 +1,40 @@+# Generated by Django 3.2.14 on 2022-07-15 17:52++from django.db import migrations, models+++class Migration(migrations.Migration):++ dependencies = [+ ("app", "0015_app_manifest_url"),+ ]++ operations = [+ migrations.AlterField(+ model_name="appextension",+ name="mount",+ field=models.CharField(+ choices=[+ ("customer_overview_create", "customer_overview_create"),+ (+ "customer_overview_more_actions",+ "customer_overview_more_actions",+ ),+ ("customer_details_more_actions", "customer_details_more_actions"),+ ("product_overview_create", "product_overview_create"),+ ("product_overview_more_actions", "product_overview_more_actions"),+ ("product_details_more_actions", "product_details_more_actions"),+ ("navigation_catalog", "navigation_catalog"),+ ("navigation_orders", "navigation_orders"),+ ("navigation_customers", "navigation_customers"),+ ("navigation_discounts", "navigation_discounts"),+ ("navigation_translations", "navigation_translations"),+ ("navigation_pages", "navigation_pages"),+ ("order_details_more_actions", "order_details_more_actions"),+ ("order_overview_create", "order_overview_create"),+ ("order_overview_more_actions", "order_overview_more_actions"),+ ],+ max_length=256,+ ),+ ),+ ]diff --git a/saleor/app/types.py b/saleor/app/types.pyindex bff5fd4ed8..57ef20c677 100644--- a/saleor/app/types.py+++ b/saleor/app/types.py@@ -8,6 +8,10 @@ class AppType:class AppExtensionMount:"""All places where app extension can be mounted."""+ CUSTOMER_OVERVIEW_CREATE = "customer_overview_create"+ CUSTOMER_OVERVIEW_MORE_ACTIONS = "customer_overview_more_actions"+ CUSTOMER_DETAILS_MORE_ACTIONS = "customer_details_more_actions"+PRODUCT_OVERVIEW_CREATE = "product_overview_create"PRODUCT_OVERVIEW_MORE_ACTIONS = "product_overview_more_actions"PRODUCT_DETAILS_MORE_ACTIONS = "product_details_more_actions"@@ -24,6 +28,9 @@ class AppExtensionMount:ORDER_OVERVIEW_MORE_ACTIONS = "order_overview_more_actions"CHOICES = [+ (CUSTOMER_OVERVIEW_CREATE, "customer_overview_create"),+ (CUSTOMER_OVERVIEW_MORE_ACTIONS, "customer_overview_more_actions"),+ (CUSTOMER_DETAILS_MORE_ACTIONS, "customer_details_more_actions"),(PRODUCT_OVERVIEW_CREATE, "product_overview_create"),(PRODUCT_OVERVIEW_MORE_ACTIONS, "product_overview_more_actions"),(PRODUCT_DETAILS_MORE_ACTIONS, "product_details_more_actions"),diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex f780c70471..4fb8788932 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -2159,6 +2159,9 @@ type AppExtension implements Node {"""All places where app extension can be mounted."""enum AppExtensionMountEnum {+ CUSTOMER_OVERVIEW_CREATE+ CUSTOMER_OVERVIEW_MORE_ACTIONS+ CUSTOMER_DETAILS_MORE_ACTIONSPRODUCT_OVERVIEW_CREATEPRODUCT_OVERVIEW_MORE_ACTIONSPRODUCT_DETAILS_MORE_ACTIONS