New Module to enable MSI for Configurable Product GraphQl#3299
New Module to enable MSI for Configurable Product GraphQl#3299bordeo wants to merge 5 commits intomagento:developfrom
Conversation
| "magento/module-sales": "*", | ||
| "magento/module-inventory-configurable-product": "*", | ||
| "magento/module-configurable-product": "*", | ||
| "magento/module-configurable-product-graph-ql": "*" |
There was a problem hiding this comment.
Could you please remove all redundant dependencies?
…ub.com:bordeo/inventory into module-inventory-configurable-product-graph-ql * 'module-inventory-configurable-product-graph-ql' of github.com:bordeo/inventory: MC-40889: Missing Bundled Products on Category Pages MC-40889: Missing Bundled Products on Category Pages
|
@magento run all tests |
|
@magento run all tests |
|
Hello @bordeo, Thank you for your collaboration! We have tried to reproduce the issue in the latest development branch, but it seems the issue is not reproducible for us. We have followed the below steps to reproduce the issue:
5. Remove Default Source Items
6. Run graphql
```gql
query getProductDetailForProductPage($urlKey: String!) {
products(filter: { url_key: { eq: $urlKey } }) {
items {
id
... on ConfigurableProduct {
configurable_options {
attribute_code
attribute_id
id
label
values {
default_label
label
store_label
use_default_value
value_index
swatch_data {
... on ImageSwatchData {
thumbnail
}
value
}
}
}
}
}
}
}
```
We can see the `products.items.configurable_options.values` in the output as below:
It seems the issue has been resolved, hence we are closing this PR. Thank you |
Thank you @engcom-Hotel for reviewing my PR, but it has been open for nearly 5 years. Naturally, the likelihood that this issue has been resolved is very high, so it's not reproducible. |



New Module to enable MSI for Configurable Product GraphQl
Description
Added a new module to enable MSI for Configurable Product GraphQl.
The Magento_InventoryConfigurableProduct module is overriding the Magento_ConfigurableProduct_Plugin_Model_ResourceModel_Attribute_InStockOptionSelectBuilder plugin, but no module is overriding the Magento_ConfigurableProduct_Plugin_Model_ResourceModel_Attribute_InStockOptionSelectBuilder_GraphQl plugin.
This new module solves the issue.
Fixed Issues
Using graphql to read a configurable product options leads to have an empty array of option values.
This happens because the Magento_ConfigurableProduct_Plugin_Model_ResourceModel_Attribute_InStockOptionSelectBuilder_GraphQl plugin uses a SQL query joining the module-catalog-inventory tables instead the module-inventory tables.
Manual testing scenarios
products.items.configurable_options.valuesshould return an array of valuesContribution checklist