Skip to content

GraphQL Schema becomes invalid if a custom type product attribute is defined. #34929

Closed
@barnard-b

Description

@barnard-b

Preconditions (*)

  1. Magento 2.4.3
  2. A custom product attribute:
    • Attribute Code: type
    • Default Label: Type
    • Catalog Input Type for Store Owner: Dropdown
    • Values Required: No
    • Manage Options (Values of Your Attribute)
      • Art
      • Books
      • ...
    • Scope: Global
    • Unique Value: No
    • Add to Column Options: No
    • Use in Filter Options: No
    • Use in Search: Yes
    • Visible in Advanced Search: Yes
    • Comparable on Storefront: Yes
    • Use in Layered Navigation: Filterable (with results)
    • Use in Search Results Layered Navigation: Yes
    • Use for Promo Rule Conditions: No
    • Allow HTML Tags on Storefront: Yes
    • Visible on Catalog Pages on Storefront: Yes
    • Used in Product Listing: No
    • Used for Sorting in Product Listing: No

Steps to reproduce (*)

  1. Create a custom product attribute as described above in preconditions.
  2. Clear the Magento configuration cache to remove the cached GraphQL schema.
  3. Open the GraphQL endpoint with a tool that validates the schema like GrapiQL or Apollo Studio.

Expected result (*)

  1. The GraphQL schema is valid.

Actual result (*)

  1. The schema is invalid because the type attribute on products types has been overwritten with the custom type attribute.

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

Labels

Area: APIsComponent: GraphQLGraphQLIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S0A problem that is blocking the ability to work. An immediate fix is needed.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions