Skip to content

Commit

Permalink
Merge pull request #181 from spryker-shop/bugfix/cc-24108-availabilit…
Browse files Browse the repository at this point in the history
…y-not-recalculated-when-stock-is-updated

CC-30448: Integration CC-24108
  • Loading branch information
michbeck authored Aug 3, 2023
2 parents f7ac4b0 + 5c8e223 commit 1e8d741
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 46 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"spryker-feature/customer-account-management": "^202307.0",
"spryker-feature/deployment-tools": "^202307.0",
"spryker-feature/file-manager": "^202307.0",
"spryker-feature/inventory-management": "^202307.0",
"spryker-feature/inventory-management": "dev-master as 202400.0",
"spryker-feature/invoice": "^202307.0",
"spryker-feature/mailing-notifications": "^202307.0",
"spryker-feature/marketplace-cart": "^202307.0",
"spryker-feature/marketplace-inventory-management": "^202307.0",
"spryker-feature/marketplace-inventory-management": "dev-master as 202400.0",
"spryker-feature/marketplace-merchant": "^202307.0",
"spryker-feature/marketplace-merchant-custom-prices": "^202307.0",
"spryker-feature/marketplace-merchant-order-threshold": "^202307.0",
Expand Down
105 changes: 61 additions & 44 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/Pyz/Zed/Publisher/PublisherDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@
use Spryker\Zed\ProductListSearch\Communication\Plugin\Publisher\ProductListSearchPublisherTriggerPlugin;
use Spryker\Zed\ProductListStorage\Communication\Plugin\Publisher\ProductListPublisherTriggerPlugin;
use Spryker\Zed\ProductOfferAvailabilityStorage\Communication\Plugin\Publisher\ProductOfferAvailability\ProductOfferAvailabilityProductOfferStoreStoragePublisherPlugin;
use Spryker\Zed\ProductOfferAvailabilityStorage\Communication\Plugin\Publisher\Stock\ProductOfferAvailabilityStockStoragePublisherPlugin;
use Spryker\Zed\ProductOfferAvailabilityStorage\Communication\Plugin\Publisher\StockStore\ProductOfferAvailabilityStockStoreStoragePublisherPlugin;
use Spryker\Zed\ProductOfferStorage\Communication\Plugin\Publisher\ProductConcreteOffers\ProductConcreteProductOffersDeletePublisherPlugin;
use Spryker\Zed\ProductOfferStorage\Communication\Plugin\Publisher\ProductConcreteOffers\ProductConcreteProductOffersStoreDeletePublisherPlugin;
use Spryker\Zed\ProductOfferStorage\Communication\Plugin\Publisher\ProductConcreteOffers\ProductConcreteProductOffersStoreWritePublisherPlugin;
Expand Down Expand Up @@ -522,6 +524,8 @@ protected function getProductOfferAvailabilityStoragePlugins(): array
{
return [
new ProductOfferAvailabilityProductOfferStoreStoragePublisherPlugin(),
new ProductOfferAvailabilityStockStoragePublisherPlugin(),
new ProductOfferAvailabilityStockStoreStoragePublisherPlugin(),
];
}

Expand Down
15 changes: 15 additions & 0 deletions src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<database xmlns="spryker:schema-01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="zed" xsi:schemaLocation="spryker:schema-01 https://static.spryker.com/schema-01.xsd" namespace="Orm\Zed\Stock\Persistence" package="src.Orm.Zed.Stock.Persistence">

<table name="spy_stock">
<behavior name="event">
<parameter name="spy_stock_is_active" column="is_active"/>
</behavior>
</table>

<table name="spy_stock_store">
<behavior name="event">
<parameter name="spy_stock_store_all" column="*"/>
</behavior>
</table>
</database>

0 comments on commit 1e8d741

Please sign in to comment.