{"data":{"id":"ACSD-45817","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where a GraphQL product mutation for a specific store returns all configurable variants, including those not assigned to the requested store.","categories":["GraphQL","Catalog/Product"],"components":["magento/module-configurable-product","magento/module-configurable-product-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-18/acsd-45817-graphql-products-mutation-gives-all-configurable-variants","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-18/acsd-45817-graphql-products-mutation-gives-all-configurable-variants.md","blobSha":"c4f52158da67da8e0b92569f0d8183b30da045aa","description":"A GraphQL products mutation for a specific store returns all configurable variants, including those not assigned to the requested store.","stepsToReproduce":"1. Create a configurable product with two subproducts: \"configurable-a\" and \"configurable-b\". 1. Assign the configurable product to both websites. 1. Assign only one \"configurable-a\" variation to the 2nd website. 1. Go to the Storefront, switch to the 2nd website, and open the configurable product. 1. Make sure you see only one child option: \"configurable-a\". 1. Run a GraphQL query using POST: /graphql endpoint, and Headers: \"store\" = \"new\" { products(filter: { sku: { eq: \"configurable\" } }) { items { id attribute_set_id name sku __typename price_range{ minimum_price{ regular_price{ value currency } } } categories { id } ... on ConfigurableProduct { configurable_options { id attribute_id_v2 label position use_default attribute_code values { value_index label } product_id } variants { product { id name sku attribute_set_id ... on PhysicalProductInterface { weight } price_range{ minimum_price{ regular_price{ value currency } } } } attributes { uid label code value_index } } } } } }","introducedInQpt":"1.1.18","createdFor":["2.4.3-p1"],"documentedRange":"2.4.2 - 2.4.3-p3","scheduledFixRelease":null},"files":[{"package":"magento/magento2-base","constraint":">=2.4.2 <2.4.4","path":"patches/os/ACSD-45817_2.4.3-p1.patch","blobSha":"8832bd5f82bc6ccc520e7bd14aae8393efbb1765","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-45817_2.4.3-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-configurable-product/Plugin/Model/ResourceModel/Attribute/ScopedOptionSelectBuilder.php","change":"added","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product/etc/frontend/di.xml","change":"modified","package":"magento/module-configurable-product"},{"path":"vendor/magento/module-configurable-product-graph-ql/Model/Variant/Collection.php","change":"modified","package":"magento/module-configurable-product-graph-ql"},{"path":"vendor/magento/module-configurable-product-graph-ql/etc/graphql/di.xml","change":"modified","package":"magento/module-configurable-product-graph-ql"}],"packages":["magento/module-configurable-product","magento/module-configurable-product-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"magento-commerce":["2.4.3-p3","2.4.3-p2","2.4.3-p1","2.4.3","2.4.2-p2","2.4.2-p1","2.4.2"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-45817 details"}