Skip to content

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

Apply changes after review

Maciej Korycinski95abf652979b
diff --git a/saleor/graphql/app/filters.py b/saleor/graphql/app/filters.py
index f00e1c48ff..b2863be6e6 100644
--- a/saleor/graphql/app/filters.py
+++ b/saleor/graphql/app/filters.py
@@ -14,10 +14,8 @@ def filter_app_search(qs, _, value):
def filter_type(qs, _, value):
- if value == AppType.LOCAL:
- qs = qs.filter(type=AppType.LOCAL)
- elif value == AppType.THIRDPARTY:
- qs = qs.filter(type=AppType.THIRDPARTY)
+ if value in [AppType.LOCAL, AppType.THIRDPARTY]:
+ qs = qs.filter(type=value)
return qs
diff --git a/saleor/graphql/app/types.py b/saleor/graphql/app/types.py
index 5810b28d1a..2a71855e53 100644
--- a/saleor/graphql/app/types.py
+++ b/saleor/graphql/app/types.py
@@ -139,10 +139,6 @@ class AppInstallation(CountableDjangoObjectType):
interfaces = [graphene.relay.Node, Job]
permissions = (AppPermission.MANAGE_APPS,)
only_fields = [
- "status",
- "created_at",
- "updated_at",
"app_name",
"manifest_url",
- "message",
]
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index d4ff85d47b..18b70d68b1 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -456,6 +456,7 @@ class ModelMutation(BaseMutation):
@classmethod
def post_save_action(cls, info, instance, cleaned_input):
"""Perform an action after saving an object and its m2m."""
+ pass
@classmethod
def perform_mutation(cls, _root, info, **data):
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 0db58501e0..65e4424f99 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -316,13 +316,13 @@ input AppInstallInput {
}
type AppInstallation implements Node & Job {
- status: JobStatusEnum!
- message: String
- createdAt: DateTime!
- updatedAt: DateTime!
appName: String!
manifestUrl: String!
id: ID!
+ status: JobStatusEnum!
+ createdAt: DateTime!
+ updatedAt: DateTime!
+ message: String
}
type AppRetryInstall {
@@ -2136,9 +2136,9 @@ input IntRangeInput {
}
type Invoice implements ObjectWithMetadata & Job & Node {
- status: JobStatusEnum!
id: ID!
metadata: [MetadataItem]!
+ status: JobStatusEnum!
number: String
externalUrl: String
privateMetadata: [MetadataItem]!