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

[BugFix] Configurable products > Variants > Attributes are empty #256

Closed
misha-kotov opened this issue Nov 19, 2018 · 1 comment
Closed
Assignees
Labels
bug Something isn't working Component: CatalogGraphQl

Comments

@misha-kotov
Copy link

Preconditions (*)

  1. Magento 2.3
  2. Sample data

Steps to reproduce (*)

Query

{
  products(filter: {sku: {eq: "WP13"}}) {
    items {
      name
      image
      ... on ConfigurableProduct {
        sku
        variants {
          attributes {
            label
            code
            value_index
          }
          product{
            sku
          }
        }
      }
    }
  }
}

Expected result (*)

  1. Attributes of variants are not empty

Actual result (*)

{
  "data": {
    "products": {
      "items": [
        {
          "name": "Portia Capri",
          "image": "/w/p/wp13-orange_main_3.jpg",
          "sku": "WP13",
          "variants": [
            {
              "attributes": [],
              "product": {
                "sku": "WP13-28-Blue"
              }
            },
            {
              "attributes": [],
              "product": {
                "sku": "WP13-28-Green"
              }
            },
            {
              "attributes": [],
              "product": {
                "sku": "WP13-28-Orange"
              }
            },
            {
              "attributes": [],
              "product": {
                "sku": "WP13-29-Blue"
              }
            },
            {
              "attributes": [],
              "product": {
                "sku": "WP13-29-Green"
              }
            },
            {
              "attributes": [],
              "product": {
                "sku": "WP13-29-Orange"
              }
            }
          ]
        }
      ]
    }
  }
}
@misha-kotov misha-kotov added bug Something isn't working coverage labels Nov 19, 2018
@VoronoyAlexandr VoronoyAlexandr self-assigned this Nov 19, 2018
@naydav naydav changed the title Configurable products > Variants > Attributes are empty [BugFix] Configurable products > Variants > Attributes are empty Dec 12, 2018
@naydav naydav added this to the Release: 2.3.1 milestone Dec 12, 2018
@naydav
Copy link
Contributor

naydav commented Feb 13, 2019

#331

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Component: CatalogGraphQl
Projects
None yet
Development

No branches or pull requests

5 participants