Skip to content

Adapt \Magento\CatalogInventory\Model\ResourceModel\Stock\Status::addStockStatusToSelect #388

@naydav

Description

@naydav

Now we have \Magento\CatalogInventory\Model\ResourceModel\Stock\Status::addStockStatusToSelect
This functionality works only with single stock system
Need to adapt this functionality for proper work with MSI

Proposed steps:

  1. Create around plugin on \Magento\CatalogInventory\Model\ResourceModel\Stock\Status::addStockStatusToSelect in
    Magento\InventoryCatalog\Plugin\CatalogInventory\StockStatusResourceModel
  2. Use \Magento\InventorySalesApi\Api\StockResolverInterface for resolving current stock
  3. Join proper table from new MSI index tables
  4. Create integration tests: check work with default stock (use source_items_on_default_source fixture) and for some custom stock

Fields(columns in SELECT) names must be compatible with legacy names

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions