inventory
inventory copied to clipboard
Product salability improvements fork
See https://github.com/magento/inventory/pull/3202
Description (*)
A common version for #3140 IsProductSalable/AreProdustsSalable composite products support and #3201: Load product salability data on-demand
Fixed Issues (if relevant)
- Fixes #3140 IsProductSalable/AreProdustsSalable composite products support
- Fixes #3201: Load product salability data on-demand
Manual testing scenarios (*)
Not now
Contribution checklist (*)
- [ ] Pull request has a meaningful description of its purpose
- [ ] All commits are accompanied by meaningful commit messages
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
- [ ] All automated tests passed successfully (all builds are green)
@magento run all tests
@magento run Integration Tests
@magento run Functional Tests CE
@magento run Integration Tests
@magento run Functional Tests CE
@magento run Integration Tests
@magento run Functional Tests CE
@magento run all tests
The development part seems to be finished.
However, there are some test cases that should be covered:
- [ ] Bundle product with disabled items frontend availability (MFTF and/or Integration):
- Custom stock with custom source, with sales channel assigned;
- A bundle product with a single simple bundle item assigned to the custom source, In stock;
- The simple product has
Enable Product
set toNo
- Expected result: bundle product is out of stock and not available on the frontend.
- Invalid Actual result example:
- [ ] Configurable product with disabled children frontend availability (Integration, already covered by MFTF:
AdminConfigurableProductWithDisabledChildrenOnAdditionalStockTest
): - Custom stock with custom source, with sales channel assigned;
- A configurable product with a single simple child item assigned to the custom source, In stock;
- The simple product has
Enable Product
set toNo
- Expected result: configurable product is out of stock and not available on the frontend (
\Magento\Catalog\Model\Product::isSalable
must returnfalse
). - [ ] Cover
AreProductsSalableInterface
Configurable Product compatibility (Integration) - [ ] Cover
AreProductsSalableInterface
Bundle Product compatibility (Integration)
@swnsma .
@magento run all tests
@magento run all tests