Skip to content

GraphQl. updateCustomer allows to set any INT value in gender argument #28481

Closed
@atwixfirster

Description

@atwixfirster

Preconditions (*)

  1. Magento with a sample data

Steps to reproduce (*)

  1. Generate a customer token
mutation {
  generateCustomerToken(
    email: "[email protected]",
    password: "[email protected]"
  ) {
    token
  }
}
  1. Set a gender value for a customer
mutation {
  updateCustomer(
    input: {
      gender: 13
    }
  ) {
    customer {
      firstname
      gender
    }
  }
}

Expected result (*)

  1. Customer gender attribute may have one of the following values:
  • Male (1)
  • Female (2)
  • Not specified (3)

Actual result (*)

{
  "data": {
    "updateCustomer": {
      "customer": {
        "firstname": "Veronica",
        "gender": 13
      }
    }
  }
}

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Component: CustomerComponent: CustomerGraphQlIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProject: GraphQLReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions