Skip to content

Commit

Permalink
ENGCOM-5915: Customer group_id deprecation #933
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaorobei committed Sep 20, 2019
2 parents 521b9b3 + e05a0f4 commit 4982fde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public function execute(CustomerInterface $customer): array
}
}
$customerData = array_merge($customerData, $customAttributes);

//Field is deprecated and should not be exposed on storefront.
$customerData['group_id'] = null;
$customerData['model'] = $customer;
return $customerData;
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/CustomerGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type RevokeCustomerTokenOutput {

type Customer @doc(description: "Customer defines the customer name and address and other details") {
created_at: String @doc(description: "Timestamp indicating when the account was created")
group_id: Int @doc(description: "The group assigned to the user. Default values are 0 (Not logged in), 1 (General), 2 (Wholesale), and 3 (Retailer)")
group_id: Int @deprecated(reason: "Customer group should not be exposed in the storefront scenarios")
prefix: String @doc(description: "An honorific, such as Dr., Mr., or Mrs.")
firstname: String @doc(description: "The customer's first name")
middlename: String @doc(description: "The customer's middle name")
Expand Down

0 comments on commit 4982fde

Please sign in to comment.