Skip to content

Commit 9245a20

Browse files
committed
ACPT-1643: Fix Inventory salable performance issue
- Fix integration tests;
1 parent 0a2e2b6 commit 9245a20

File tree

3 files changed

+2
-128
lines changed

3 files changed

+2
-128
lines changed

InventoryConfigurableProduct/Test/Integration/Plugin/Model/Product/Type/Configurable/IsSalableOptionPluginTest.php

Lines changed: 0 additions & 122 deletions
This file was deleted.

InventoryIndexer/Test/Integration/Model/Queue/UpdateIndexSalabilityStatusTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function setUp(): void
6565
}
6666

6767
#[
68-
DbIsolation(true),
68+
DbIsolation(false),
6969
AppIsolation(true),
7070
DataFixture(SourceFixture::class, as: 'source2'),
7171
DataFixture(StockFixture::class, as: 'stock2'),
@@ -109,7 +109,7 @@ public function testProductsStatusesAfterBuyingChildProduct(): void
109109
}
110110

111111
#[
112-
DbIsolation(true),
112+
DbIsolation(false),
113113
AppIsolation(true),
114114
DataFixture(SourceFixture::class, as: 'source2'),
115115
DataFixture(StockFixture::class, as: 'stock2'),

dev/tests/integration/_files/Magento/TestModuleInventoryStateCache/etc/di.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<type name="Magento\InventoryIndexer\Model\ResourceModel\GetStockItemData">
1313
<plugin name="inventory_catalog_get_legacy_stock_item_data_from_stock_registry" disabled="true"/>
1414
</type>
15-
<type name="Magento\InventoryIndexer\Model\ResourceModel\GetStockItemsData">
16-
<plugin name="inventory_catalog_get_bulk_legacy_stock_item_data_from_stock_registry" disabled="true"/>
17-
</type>
1815
<type name="Magento\Inventory\Model\ResourceModel\IsProductAssignedToStock">
1916
<plugin name="cache_product_stock_assignment_check" disabled="true"/>
2017
</type>
@@ -23,7 +20,6 @@
2320
<preference for="Magento\InventoryCatalogApi\Model\GetSkusByProductIdsInterface" type="Magento\InventoryCatalog\Model\GetSkusByProductIds" />
2421
<preference for="Magento\InventoryCatalogApi\Model\GetProductTypesBySkusInterface" type="Magento\InventoryCatalog\Model\ResourceModel\GetProductTypesBySkus" />
2522
<preference for="Magento\InventorySalesApi\Model\GetStockItemDataInterface" type="Magento\InventoryIndexer\Model\ResourceModel\GetStockItemData"/>
26-
<preference for="Magento\InventorySalesApi\Model\GetStockItemsDataInterface" type="Magento\InventoryIndexer\Model\ResourceModel\GetStockItemsData"/>
2723
<preference for="Magento\InventoryReservationsApi\Model\GetReservationsQuantityInterface" type="Magento\InventoryReservations\Model\ResourceModel\GetReservationsQuantity"/>
2824
<preference for="Magento\InventorySalesApi\Model\GetAssignedSalesChannelsForStockInterface" type="Magento\InventorySales\Model\GetAssignedSalesChannelsForStock"/>
2925
<preference for="Magento\InventorySalesApi\Api\GetStockBySalesChannelInterface" type="Magento\InventorySales\Model\GetStockBySalesChannel"/>

0 commit comments

Comments
 (0)