From 31bfcf120963be14e760869f739fd397b4b893b4 Mon Sep 17 00:00:00 2001 From: Artem Siminenko Date: Tue, 25 Jul 2023 14:56:10 +0200 Subject: [PATCH 1/2] CC-24108 Added publishers to recalculate product offer availability when stock is updated (#7996) CC-24108 Added publishers to recalculate product offer availability when stock is updated --- composer.lock | 42 +++++++++---------- .../Publisher/PublisherDependencyProvider.php | 4 ++ .../Propel/Schema/spy_stock.schema.xml | 10 +++++ 3 files changed, 35 insertions(+), 21 deletions(-) diff --git a/composer.lock b/composer.lock index 581b10f24e..97eafc28b5 100644 --- a/composer.lock +++ b/composer.lock @@ -246,16 +246,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.276.3", + "version": "3.276.4", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "c8b38cfab677a3ec98e3f40bccd1a2bf851a014f" + "reference": "80509b932c7e8e917a5026a89bd7af1f2b34ed59" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/c8b38cfab677a3ec98e3f40bccd1a2bf851a014f", - "reference": "c8b38cfab677a3ec98e3f40bccd1a2bf851a014f", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/80509b932c7e8e917a5026a89bd7af1f2b34ed59", + "reference": "80509b932c7e8e917a5026a89bd7af1f2b34ed59", "shasum": "" }, "require": { @@ -335,9 +335,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.276.3" + "source": "https://github.com/aws/aws-sdk-php/tree/3.276.4" }, - "time": "2023-07-21T18:30:18+00:00" + "time": "2023-07-24T18:15:58+00:00" }, { "name": "brick/math", @@ -5590,12 +5590,12 @@ "source": { "type": "git", "url": "https://github.com/spryker-sdk/evaluator.git", - "reference": "dd5d598238a38b99fcb6c9d5978628606d58ed62" + "reference": "3a4b3c85c00aea0514a98367317b4929ad7f6318" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker-sdk/evaluator/zipball/dd5d598238a38b99fcb6c9d5978628606d58ed62", - "reference": "dd5d598238a38b99fcb6c9d5978628606d58ed62", + "url": "https://api.github.com/repos/spryker-sdk/evaluator/zipball/3a4b3c85c00aea0514a98367317b4929ad7f6318", + "reference": "3a4b3c85c00aea0514a98367317b4929ad7f6318", "shasum": "" }, "require": { @@ -5655,9 +5655,9 @@ "description": "The tool for evaluating Spryker shops", "support": { "issues": "https://github.com/spryker-sdk/evaluator/issues", - "source": "https://github.com/spryker-sdk/evaluator/tree/0.1.2" + "source": "https://github.com/spryker-sdk/evaluator/tree/0.1.3" }, - "time": "2023-07-18T13:16:58+00:00" + "time": "2023-07-25T09:03:46+00:00" }, { "name": "spryker-sdk/security-checker", @@ -6153,7 +6153,7 @@ "source": { "type": "git", "url": "git@github.com:spryker/spryker.git", - "reference": "3177d697e932efcf736fd04c37b603e460ff3e69" + "reference": "b3909abe981514a004d83a1f102eed10b07a5624" }, "require": { "php": ">=8.0" @@ -7173,7 +7173,7 @@ "proprietary" ], "description": "Spryker Framework", - "time": "2023-07-24T13:36:15+00:00" + "time": "2023-07-25T12:51:44+00:00" }, { "name": "spryker/spryker-shop", @@ -17235,16 +17235,16 @@ }, { "name": "slevomat/coding-standard", - "version": "8.13.2", + "version": "8.13.4", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "83fb531a75950b6c6c7c37d7813836c3df8fc8d1" + "reference": "4b2af2fb17773656d02fbfb5d18024ebd19fe322" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/83fb531a75950b6c6c7c37d7813836c3df8fc8d1", - "reference": "83fb531a75950b6c6c7c37d7813836c3df8fc8d1", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/4b2af2fb17773656d02fbfb5d18024ebd19fe322", + "reference": "4b2af2fb17773656d02fbfb5d18024ebd19fe322", "shasum": "" }, "require": { @@ -17284,7 +17284,7 @@ ], "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/8.13.2" + "source": "https://github.com/slevomat/coding-standard/tree/8.13.4" }, "funding": [ { @@ -17296,7 +17296,7 @@ "type": "tidelift" } ], - "time": "2023-07-24T10:09:44+00:00" + "time": "2023-07-25T10:28:55+00:00" }, { "name": "softcreatr/jsonpath", @@ -18120,7 +18120,7 @@ "source": { "type": "git", "url": "git@github.com:spryker/robotframework-suite-tests.git", - "reference": "cc7a1c1eac782560a1956d47d32a4ed77d55c2a5" + "reference": "f47b2e5eea6c023a97976398b0205bbc2868b74f" }, "default-branch": true, "type": "library", @@ -18128,7 +18128,7 @@ "MIT" ], "description": "Automated tests for the Robot Framework", - "time": "2023-07-24T13:35:10+00:00" + "time": "2023-07-25T08:28:48+00:00" }, { "name": "squizlabs/php_codesniffer", diff --git a/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php b/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php index 2d29cebbce..aa2b57b0c7 100644 --- a/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php +++ b/src/Pyz/Zed/Publisher/PublisherDependencyProvider.php @@ -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; @@ -542,6 +544,8 @@ protected function getProductOfferAvailabilityStoragePlugins(): array { return [ new ProductOfferAvailabilityProductOfferStoreStoragePublisherPlugin(), + new ProductOfferAvailabilityStockStoragePublisherPlugin(), + new ProductOfferAvailabilityStockStoreStoragePublisherPlugin(), ]; } diff --git a/src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml b/src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml index 069318a5b7..f3863a2e76 100644 --- a/src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml +++ b/src/Pyz/Zed/Stock/Persistence/Propel/Schema/spy_stock.schema.xml @@ -1,8 +1,18 @@ + + + + +
+ + + + +
From 5e2dd98aa67e1aefb40fe82481a6957b06e04b19 Mon Sep 17 00:00:00 2001 From: Spryker Bot Date: Tue, 25 Jul 2023 13:04:40 +0000 Subject: [PATCH 2/2] CC-24108 Merge nonsplit/master. --- composer.lock | 68 +++++++++++++++++++++++++-------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/composer.lock b/composer.lock index f56ff6d386..9f3122cc32 100644 --- a/composer.lock +++ b/composer.lock @@ -49890,16 +49890,16 @@ }, { "name": "spryker/product-offer-availability", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/spryker/product-offer-availability.git", - "reference": "af45c57b57c14c3b36df18e0c239aaddd321bf17" + "reference": "14f3541e025f872f716483f69d17af1bf0a5af1f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/product-offer-availability/zipball/af45c57b57c14c3b36df18e0c239aaddd321bf17", - "reference": "af45c57b57c14c3b36df18e0c239aaddd321bf17", + "url": "https://api.github.com/repos/spryker/product-offer-availability/zipball/14f3541e025f872f716483f69d17af1bf0a5af1f", + "reference": "14f3541e025f872f716483f69d17af1bf0a5af1f", "shasum": "" }, "require": { @@ -49909,7 +49909,7 @@ "spryker/kernel": "^3.33.0", "spryker/oms": "^11.7.0", "spryker/product-offer": "^1.8.0", - "spryker/product-offer-stock": "^1.1.0", + "spryker/product-offer-stock": "^1.3.0", "spryker/transfer": "^3.27.0" }, "require-dev": { @@ -49937,22 +49937,22 @@ ], "description": "ProductOfferAvailability module", "support": { - "source": "https://github.com/spryker/product-offer-availability/tree/1.2.0" + "source": "https://github.com/spryker/product-offer-availability/tree/1.3.0" }, - "time": "2023-05-15T10:55:04+00:00" + "time": "2023-07-25T12:51:44+00:00" }, { "name": "spryker/product-offer-availability-storage", - "version": "1.1.0", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/spryker/product-offer-availability-storage.git", - "reference": "bd444d2c9262bd36a1d3792da852bcda46aa4dc9" + "reference": "4a2059cf30e27c6fd91c00271b367a0145743726" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/product-offer-availability-storage/zipball/bd444d2c9262bd36a1d3792da852bcda46aa4dc9", - "reference": "bd444d2c9262bd36a1d3792da852bcda46aa4dc9", + "url": "https://api.github.com/repos/spryker/product-offer-availability-storage/zipball/4a2059cf30e27c6fd91c00271b367a0145743726", + "reference": "4a2059cf30e27c6fd91c00271b367a0145743726", "shasum": "" }, "require": { @@ -49962,16 +49962,17 @@ "spryker/kernel": "^3.33.0", "spryker/oms-product-offer-reservation": "^1.0.0", "spryker/product-offer": "^1.0.0", - "spryker/product-offer-availability": "^1.0.0", + "spryker/product-offer-availability": "^1.3.0", "spryker/product-offer-stock": "^1.0.0", "spryker/propel-orm": "^1.3.0", "spryker/publisher-extension": "^1.0.0", + "spryker/stock": "^8.8.3", "spryker/storage": "^3.0.0", - "spryker/store": "^1.0.0", + "spryker/store": "^1.19.0", "spryker/synchronization": "^1.0.0", "spryker/synchronization-behavior": "^1.0.0", "spryker/synchronization-extension": "^1.1.0", - "spryker/transfer": "^3.18.0", + "spryker/transfer": "^3.27.0", "spryker/util-encoding": "^2.0.0" }, "require-dev": { @@ -49982,7 +49983,6 @@ "spryker/product": "*", "spryker/propel": "*", "spryker/queue": "*", - "spryker/stock": "*", "spryker/testify": "*" }, "suggest": { @@ -50005,9 +50005,9 @@ ], "description": "ProductOfferAvailabilityStorage module", "support": { - "source": "https://github.com/spryker/product-offer-availability-storage/tree/1.1.0" + "source": "https://github.com/spryker/product-offer-availability-storage/tree/1.2.0" }, - "time": "2023-05-15T10:55:04+00:00" + "time": "2023-07-25T12:51:44+00:00" }, { "name": "spryker/product-offer-extension", @@ -51093,16 +51093,16 @@ }, { "name": "spryker/product-offer-stock", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/spryker/product-offer-stock.git", - "reference": "2898084b76757fb298b84fef4a74e8819984f7a8" + "reference": "ecfd3e5536b32c71fc502d9f3f5193236857585a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/product-offer-stock/zipball/2898084b76757fb298b84fef4a74e8819984f7a8", - "reference": "2898084b76757fb298b84fef4a74e8819984f7a8", + "url": "https://api.github.com/repos/spryker/product-offer-stock/zipball/ecfd3e5536b32c71fc502d9f3f5193236857585a", + "reference": "ecfd3e5536b32c71fc502d9f3f5193236857585a", "shasum": "" }, "require": { @@ -51114,7 +51114,7 @@ "spryker/product-offer-extension": "^1.0.0", "spryker/propel-orm": "^1.0.0", "spryker/stock": "^7.0.0 || ^8.0.0", - "spryker/transfer": "^3.25.0" + "spryker/transfer": "^3.27.0" }, "require-dev": { "spryker/code-sniffer": "*", @@ -51141,9 +51141,9 @@ ], "description": "ProductOfferStock module", "support": { - "source": "https://github.com/spryker/product-offer-stock/tree/1.2.0" + "source": "https://github.com/spryker/product-offer-stock/tree/1.3.0" }, - "time": "2023-03-10T14:11:16+00:00" + "time": "2023-07-25T12:51:44+00:00" }, { "name": "spryker/product-offer-stock-data-import", @@ -62473,16 +62473,16 @@ }, { "name": "spryker/stock", - "version": "8.8.2", + "version": "8.8.3", "source": { "type": "git", "url": "https://github.com/spryker/stock.git", - "reference": "7255d93e4ec1f640bd3d3d8f16e7baaf02c236f8" + "reference": "5261ab0f27009e6e3bae8d9edc44b83f52353138" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/stock/zipball/7255d93e4ec1f640bd3d3d8f16e7baaf02c236f8", - "reference": "7255d93e4ec1f640bd3d3d8f16e7baaf02c236f8", + "url": "https://api.github.com/repos/spryker/stock/zipball/5261ab0f27009e6e3bae8d9edc44b83f52353138", + "reference": "5261ab0f27009e6e3bae8d9edc44b83f52353138", "shasum": "" }, "require": { @@ -62521,9 +62521,9 @@ ], "description": "Stock module", "support": { - "source": "https://github.com/spryker/stock/tree/8.8.2" + "source": "https://github.com/spryker/stock/tree/8.8.3" }, - "time": "2023-05-05T18:20:59+00:00" + "time": "2023-07-25T12:51:44+00:00" }, { "name": "spryker/stock-address", @@ -76188,12 +76188,12 @@ "source": { "type": "git", "url": "https://github.com/spryker/robotframework-suite-tests.git", - "reference": "cc7a1c1eac782560a1956d47d32a4ed77d55c2a5" + "reference": "f47b2e5eea6c023a97976398b0205bbc2868b74f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/robotframework-suite-tests/zipball/cc7a1c1eac782560a1956d47d32a4ed77d55c2a5", - "reference": "cc7a1c1eac782560a1956d47d32a4ed77d55c2a5", + "url": "https://api.github.com/repos/spryker/robotframework-suite-tests/zipball/f47b2e5eea6c023a97976398b0205bbc2868b74f", + "reference": "f47b2e5eea6c023a97976398b0205bbc2868b74f", "shasum": "" }, "default-branch": true, @@ -76207,7 +76207,7 @@ "issues": "https://github.com/spryker/robotframework-suite-tests/issues", "source": "https://github.com/spryker/robotframework-suite-tests/tree/master" }, - "time": "2023-07-24T13:35:10+00:00" + "time": "2023-07-25T08:28:48+00:00" }, { "name": "spryker/silex",