From e7928d3bdaf095a11f46804bac08734e2698de6c Mon Sep 17 00:00:00 2001 From: victor Date: Sat, 14 Sep 2019 14:54:35 -0300 Subject: [PATCH 1/2] Added @deprecated to custom_attributes on CustomerAddress via directive and on CustomerAddressInput via @doc --- app/code/Magento/CustomerGraphQl/etc/schema.graphqls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CustomerGraphQl/etc/schema.graphqls b/app/code/Magento/CustomerGraphQl/etc/schema.graphqls index d27debdc39c64..6dee8ef27df41 100644 --- a/app/code/Magento/CustomerGraphQl/etc/schema.graphqls +++ b/app/code/Magento/CustomerGraphQl/etc/schema.graphqls @@ -36,7 +36,7 @@ input CustomerAddressInput { prefix: String @doc(description: "An honorific, such as Dr., Mr., or Mrs.") suffix: String @doc(description: "A value such as Sr., Jr., or III") vat_id: String @doc(description: "The customer's Tax/VAT number (for corporate customers)") - custom_attributes: [CustomerAddressAttributeInput] @doc(description: "Address custom attributes") + custom_attributes: [CustomerAddressAttributeInput] @doc(description: " Address custom attributes Deprecated: Custom attributes should not be put into custom_attributes container.") } input CustomerAddressRegionInput @doc(description: "CustomerAddressRegionInput defines the customer's state or province") { @@ -115,7 +115,7 @@ type CustomerAddress @doc(description: "CustomerAddress contains detailed inform vat_id: String @doc(description: "The customer's Tax/VAT number (for corporate customers)") default_shipping: Boolean @doc(description: "Indicates whether the address is the default shipping address") default_billing: Boolean @doc(description: "Indicates whether the address is the default billing address") - custom_attributes: [CustomerAddressAttribute] @doc(description: "Address custom attributes") + custom_attributes: [CustomerAddressAttribute] @deprecated(reason: "Custom attributes should not be put into custom_attributes container.") @doc(description: "Address custom attributes") extension_attributes: [CustomerAddressAttribute] @doc(description: "Address extension attributes") } From 4fef8adfdbc045fdd5ec04299edfbe642019a570 Mon Sep 17 00:00:00 2001 From: Lena Orobei Date: Fri, 20 Sep 2019 12:56:50 -0500 Subject: [PATCH 2/2] magento/graphql-ce#918: [Customer] Deprecate customer address custom attributes --- app/code/Magento/CustomerGraphQl/etc/schema.graphqls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CustomerGraphQl/etc/schema.graphqls b/app/code/Magento/CustomerGraphQl/etc/schema.graphqls index 6dee8ef27df41..d6bca9d9aedf7 100644 --- a/app/code/Magento/CustomerGraphQl/etc/schema.graphqls +++ b/app/code/Magento/CustomerGraphQl/etc/schema.graphqls @@ -36,7 +36,7 @@ input CustomerAddressInput { prefix: String @doc(description: "An honorific, such as Dr., Mr., or Mrs.") suffix: String @doc(description: "A value such as Sr., Jr., or III") vat_id: String @doc(description: "The customer's Tax/VAT number (for corporate customers)") - custom_attributes: [CustomerAddressAttributeInput] @doc(description: " Address custom attributes Deprecated: Custom attributes should not be put into custom_attributes container.") + custom_attributes: [CustomerAddressAttributeInput] @doc(description: "Deprecated: Custom attributes should not be put into container.") } input CustomerAddressRegionInput @doc(description: "CustomerAddressRegionInput defines the customer's state or province") { @@ -115,7 +115,7 @@ type CustomerAddress @doc(description: "CustomerAddress contains detailed inform vat_id: String @doc(description: "The customer's Tax/VAT number (for corporate customers)") default_shipping: Boolean @doc(description: "Indicates whether the address is the default shipping address") default_billing: Boolean @doc(description: "Indicates whether the address is the default billing address") - custom_attributes: [CustomerAddressAttribute] @deprecated(reason: "Custom attributes should not be put into custom_attributes container.") @doc(description: "Address custom attributes") + custom_attributes: [CustomerAddressAttribute] @deprecated(reason: "Custom attributes should not be put into container") extension_attributes: [CustomerAddressAttribute] @doc(description: "Address extension attributes") }