This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
Hide product attributes not intended for storefront #25
Closed
Description
In Admin, if all of the following product attribute storefront properties are set to No, then it should be filtered out (not exposed by GraphQL):
- Comparable on Storefront
- Use in Layered Navigation
- Use in Search Results Layered Navigation
- Visible on Catalog Pages on Storefront
- Used in Product Listing
- Used for Sorting in Product Listing
Otherwise (if any of the above are Yes), attribute values and attribute metadata should be accessible in GraphQL
Changes should be covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.