Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

[Mutations] My Account > Change account information #55

@misha-kotov

Description

@misha-kotov

As a Magento developer, I need to build a functional My Account experience for customers via GraphQL so that I can build basic ecommerce experiences for shoppers on the front-end using only GraphQL.

GraphQL needs to provide sufficient mutations (ways to create/update/delete data) for a developer to build out the storefront My Account experience for a shopper.

Use cases:

  • A logged-in shopper can change their account information from the My Account Page

Acceptance criteria:

  • GraphQL provides a mutation through which the current logged-in shopper can change their account information
  • Authentication is handled through a session cookie (changing the email address requires that current password is provided)
  • A guest shopper cannot change the account information for any user
  • A meaningful error message is given if current password is incorrect or if entered data does not conform to requirements
  • List of fields that can be changed:
    • First Name
    • Last Name
    • Email address (requires current password)
  • Changes are covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.
  • Please propose GraphQL schema before starting implementation

My Account area impacted:

  • Account Information tab

Note: will likely merge #56 into this story

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions