Skip to content

Commit

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

Auto-merge based on green CI result.
  • Loading branch information
spryker-release-bot authored Jul 25, 2023
2 parents ec5cbb0 + 5e2dd98 commit 10a7232
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 51 deletions.
102 changes: 51 additions & 51 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 @@ -113,6 +113,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\ProductOfferServicePointStorage\Communication\Plugin\Publisher\ProductOffer\ProductOfferWritePublisherPlugin as ProductOfferServiceProductOfferWritePublisherPlugin;
use Spryker\Zed\ProductOfferServicePointStorage\Communication\Plugin\Publisher\ProductOfferService\ProductOfferServiceWriteByPublishPublisherPlugin;
use Spryker\Zed\ProductOfferServicePointStorage\Communication\Plugin\Publisher\ProductOfferService\ProductOfferServiceWritePublisherPlugin;
Expand Down Expand Up @@ -542,6 +544,8 @@ protected function getProductOfferAvailabilityStoragePlugins(): array
{
return [
new ProductOfferAvailabilityProductOfferStoreStoragePublisherPlugin(),
new ProductOfferAvailabilityStockStoragePublisherPlugin(),
new ProductOfferAvailabilityStockStoreStoragePublisherPlugin(),
];
}

Expand Down
10 changes: 10 additions & 0 deletions src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
<?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="\Spryker\Zed\AclEntity\Persistence\Propel\Behavior\AclEntityBehavior"/>

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

<table name="spy_stock_product">
Expand Down

0 comments on commit 10a7232

Please sign in to comment.