Skip to content

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

Remove user warnings

IKarbowiak2e93d6e46ad2
diff --git a/.isort.cfg b/.isort.cfg
index a4793e384c..c1e4bed09a 100644
--- a/.isort.cfg
+++ b/.isort.cfg
@@ -1,2 +1,2 @@
[settings]
-known_third_party = PIL,babel,bleach,braintree,celery,dj_database_url,dj_email_url,django,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_django_optimizer,graphene_federation,graphql,graphql_jwt,graphql_relay,html5lib,html_to_draftjs,i18naddress,jaeger_client,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,six,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield
+known_third_party = PIL,babel,bleach,braintree,celery,dj_database_url,dj_email_url,django,django_countries,django_filters,django_measurement,django_prices,django_prices_openexchangerates,django_prices_vatlayer,draftjs_sanitizer,faker,freezegun,geolite2,google_measurement_protocol,graphene,graphene_django,graphene_django_optimizer,graphene_federation,graphql,graphql_jwt,graphql_relay,html5lib,html_to_draftjs,i18naddress,jaeger_client,jwt,markdown,measurement,mptt,oauthlib,opentracing,phonenumber_field,phonenumbers,prices,promise,pytest,pytz,razorpay,requests,sentry_sdk,storages,stripe,templated_email,text_unidecode,tqdm,versatileimagefield
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.py
index cb7538f13f..3fb23788d6 100644
--- a/saleor/graphql/account/types.py
+++ b/saleor/graphql/account/types.py
@@ -209,7 +209,8 @@ class ServiceAccount(CountableDjangoObjectType):
model = models.ServiceAccount
permissions = (AccountPermissions.MANAGE_SERVICE_ACCOUNTS,)
only_fields = [
- "name" "permissions",
+ "name",
+ "permissions",
"created",
"is_active",
"tokens",
@@ -298,7 +299,6 @@ class User(CountableDjangoObjectType):
"last_login",
"last_name",
"note",
- "token",
]
@staticmethod
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 4edc7a7970..7279ceecac 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3920,15 +3920,15 @@ input SeoInput {
type ServiceAccount implements Node & ObjectWithMetadata {
id: ID!
+ name: String
created: DateTime
isActive: Boolean
+ permissions: [PermissionDisplay]
tokens: [ServiceAccountToken]
privateMetadata: [MetadataItem]!
metadata: [MetadataItem]!
privateMeta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `privetaMetadata` field instead. ")
meta: [MetaStore]! @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.11. use the `metadata` field instead. ")
- permissions: [PermissionDisplay]
- name: String
}
type ServiceAccountClearPrivateMeta {