ACSD-67652: An incorrect out-of-stock status is returned for bundle products in GraphQL…
An incorrect out-of-stock status is returned for bundle products in GraphQL, despite child and parent items being in stock. Quality patch ACSD-67652 for magento/module-inventory-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p5.
- Categories
- Inventory, GraphQL
- Components
- magento/module-inventory-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.71
Issue
An incorrect out-of-stock status is returned for bundle products in GraphQL, despite child and parent items being in stock.
Steps to reproduce
1. Create a bundle product with disabled dynamic SKU and dynamic pricing, assigning one simple product as the required option. 1. Ensure that the bundle product is in stock. 1. Perform a full reindex. 1. Execute a GraphQL product query for the bundle product, requesting the stock_status field. 1. Observe the stock_status for the bundle product in the GraphQL response.
Adobe's page lists 2.4.8 - 2.4.8-p2 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.9.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-67652. On Cloud, add ACSD-67652 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-67652/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/inventory-metapackage >=1.2.8 <1.2.9
- Patch file
- patches/os/ACSD-67652_1.2.8.patch
- vendor/magento/module-inventory-graph-ql/Model/Resolver/StockStatusProvider.php
