Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Deprecate attribute type field
Marcin Gębala5300d78ef7c9
diff --git a/saleor/graphql/product/types/attributes.py b/saleor/graphql/product/types/attributes.pyindex ada49d361c..0cbbce4626 100644--- a/saleor/graphql/product/types/attributes.py+++ b/saleor/graphql/product/types/attributes.py@@ -32,11 +32,16 @@ def resolve_attribute_value_type(attribute_value):class AttributeValue(CountableDjangoObjectType):name = graphene.String(description=AttributeValueDescriptions.NAME)slug = graphene.String(description=AttributeValueDescriptions.SLUG)- type = AttributeValueType(description=AttributeValueDescriptions.TYPE)+ type = AttributeValueType(+ description=AttributeValueDescriptions.TYPE,+ deprecation_reason=(+ "Use the `inputType` field to determine the type of attribute's value. "+ "This field will be removed after 2020-07-31."+ ),+ )translation = TranslationField(AttributeValueTranslation, type_name="attribute value")-input_type = AttributeInputTypeEnum(description=AttributeDescriptions.INPUT_TYPE)class Meta:diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex d58accc5bb..5a1945dac6 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -502,7 +502,7 @@ type AttributeValue implements Node {id: ID!name: Stringslug: String- type: AttributeValueType+ type: AttributeValueType @deprecated(reason: "Use the `inputType` field to determine the type of attribute's value. This field will be removed after 2020-07-31.")translation(languageCode: LanguageCodeEnum!): AttributeValueTranslationinputType: AttributeInputTypeEnum}