Skip to content

GraphQL: CustomizableDateOption or CustomizableDateValue should indicate the precise Date option type #31075

Closed
@laurentiumagureanu

Description

@laurentiumagureanu

Preconditions (*)

  1. Magento 2.4.1 CE

Steps to reproduce (*)

  1. Add multiple Date customizable options to a product. Use different date types: Date, Date & Time, Time
  2. Query the previous product via graphQL and display the customizable options. Use sample query below:
{
  products(filter: {sku: {eq: "test-sku"}}) {
    items {
      sku
      __typename
      id
      name
      ... on SimpleProduct {
         options {
          __typename
          option_id
          required
          sort_order
          title
          ... on CustomizableDateOption {
            value {
              uid
              price
              price_type
              __typename
            }
            __typename
          }
        }
      }
    }
  }
}

Expected result (*)

  1. The customizable option part of the response, for Date options, should contain information about the precise field type ( Date, Date & Time, Time)

Actual result (*)

  1. There is no way to tell which is which. All Date options use the same type for the value field
    image

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions