Skip to content

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

Cleanup types descriptions (#18591)

Lukasz Ostrowski0264b50a6f00
diff --git a/saleor/app/models.py b/saleor/app/models.py
index cf3cf77a88..af5c71b837 100644
--- a/saleor/app/models.py
+++ b/saleor/app/models.py
@@ -12,6 +12,7 @@ from ..permission.enums import AppPermission, BasePermissionEnum
from ..permission.models import Permission
from ..webhook.event_types import WebhookEventAsyncType, WebhookEventSyncType
from .types import (
+ DEFAULT_APP_TARGET,
AppType,
DeprecatedAppExtensionHttpMethod,
DeprecatedAppExtensionMount,
@@ -163,7 +164,7 @@ class AppExtension(models.Model):
target = models.CharField(
choices=DeprecatedAppExtensionTarget.CHOICES,
max_length=128,
- default=DeprecatedAppExtensionTarget.POPUP,
+ default=DEFAULT_APP_TARGET,
)
permissions = models.ManyToManyField(
Permission,
diff --git a/saleor/graphql/app/types.py b/saleor/graphql/app/types.py
index 4c3a75d435..542bbee610 100644
--- a/saleor/graphql/app/types.py
+++ b/saleor/graphql/app/types.py
@@ -121,20 +121,20 @@ class AppManifestExtension(BaseObjectType):
)
mount_name = graphene.String(
- description="Name of the extension mount point in the dashboard. Replaces `mount`. Value returned in UPPERCASE."
+ description="Name of the extension mount point in the dashboard. Value returned in UPPERCASE."
+ ADDED_IN_322,
required=True,
)
target_name = graphene.String(
- description="Name of the extension target in the dashboard. Replaces `target`. Value returned in UPPERCASE."
+ description="Name of the extension target in the dashboard. Value returned in UPPERCASE."
+ ADDED_IN_322,
required=True,
)
settings = graphene.Field(
JSON,
- description="App extension settings. Replaces options field." + ADDED_IN_322,
+ description="App extension settings." + ADDED_IN_322,
required=True,
)
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 80c1748686..c1866125a7 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3026,21 +3026,21 @@ type AppExtension implements Node @doc(category: "Apps") {
url: String!
"""
- Name of the extension mount point in the dashboard. Replaces `mount`. Value returned in UPPERCASE.
+ Name of the extension mount point in the dashboard. Value returned in UPPERCASE.
Added in Saleor 3.22.
"""
mountName: String!
"""
- Name of the extension target in the dashboard. Replaces `target`. Value returned in UPPERCASE.
+ Name of the extension target in the dashboard. Value returned in UPPERCASE.
Added in Saleor 3.22.
"""
targetName: String!
"""
- App extension settings. Replaces options field.
+ App extension settings.
Added in Saleor 3.22.
"""
@@ -29843,21 +29843,21 @@ type AppManifestExtension @doc(category: "Apps") {
url: String!
"""
- Name of the extension mount point in the dashboard. Replaces `mount`. Value returned in UPPERCASE.
+ Name of the extension mount point in the dashboard. Value returned in UPPERCASE.
Added in Saleor 3.22.
"""
mountName: String!
"""
- Name of the extension target in the dashboard. Replaces `target`. Value returned in UPPERCASE.
+ Name of the extension target in the dashboard. Value returned in UPPERCASE.
Added in Saleor 3.22.
"""
targetName: String!
"""
- App extension settings. Replaces options field.
+ App extension settings.
Added in Saleor 3.22.
"""