magento/graphql-ce

2.3-develop - graphql fetching issue for phtml file called in product/category descriptions

mtbottens opened this issue · 1 comments

Note: Assumption is that this happens for category description as well, but I have not confirmed that one.

Preconditions (*)

  1. 2.3-develop
  2. Configure a cms block with any content
    image
  3. Configure a product description attribute with a widget directive: {{widget type="Magento\Cms\Block\Widget\Block" template="widget/static_block/default.phtml" block_id="1" type_name="CMS Static Block"}}
    image

Steps to reproduce (*)

  1. Navigate to the product with the configured description containing a widget directive. (Frontend)
  2. Observe that the static block is rendered.
    image
  3. Request the product with graphql:
{
  products(filter: { sku: { eq: "Test"} }) {
    items {
      description{
        html
      }
    }
  }
}
  1. Observe that the static block content is not included in the graphql response.
    image

Expected result (*)

  1. Graphql response should contain the same content that is rendered on the frontend.

Actual result (*)

  1. Graphql response does not match content that is rendered on the frontend.

Hi @mtbottens. Thank you for your report.
The issue has been fixed in #1058 by @mtbottens in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming release.