Skip to content

Commit

Permalink
Merge pull request #1678 from spryker-shop/bugfix/acp-4499-message-br…
Browse files Browse the repository at this point in the history
…oker-conditional-channels-handling

Auto-merge based on green CI result.
  • Loading branch information
spryker-release-bot authored Jan 22, 2025
2 parents 5595b08 + 267bd7a commit 0e8a0e2
Show file tree
Hide file tree
Showing 19 changed files with 109 additions and 79 deletions.
2 changes: 1 addition & 1 deletion acp-toolbox
Submodule acp-toolbox updated from 4e1466 to 5d3835
93 changes: 47 additions & 46 deletions composer.lock

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

2 changes: 1 addition & 1 deletion data/import/common/common/marketplace/product_stock.csv
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ concrete_sku,name,quantity,is_never_out_of_stock,is_bundle
195_25904159,Video King MER000002 Warehouse 1,10,0,0
196_23120327,Video King MER000002 Warehouse 1,10,0,0
196_23120327,Spryker MER000001 Warehouse 1,10,0,0
197_21421718,Video King MER000002 Warehouse 1,10,0,0
197_21421718,Video King MER000002 Warehouse 1,10,1,0
198_19692589,Video King MER000002 Warehouse 1,10,0,0
199_7016823,Video King MER000002 Warehouse 1,10,0,0
199_24788780,Video King MER000002 Warehouse 1,10,0,0
Expand Down
10 changes: 5 additions & 5 deletions deploy.acp-dev.franken.dms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ image:
"APP_DOMAINS": ["apps.spryker.local", "*.bazaarvoice.com"],
"STORE_NAME_REFERENCE_MAP": {},
"APP_CATALOG_SCRIPT_URL": "",
"PAYONE_APP_IDENTIFIER": "app-098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "app-b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "app-804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "app-12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "app-7ff8d24e-4ea1-4440-b760-0aa92e60405b"
"PAYONE_APP_IDENTIFIER": "098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "7ff8d24e-4ea1-4440-b760-0aa92e60405b"
}'
SPRYKER_AOP_AUTHENTICATION: '{
"AUTH0_CUSTOM_DOMAIN": "",
Expand Down
10 changes: 5 additions & 5 deletions deploy.acp-dev.franken.mb1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ image:
"APP_DOMAINS": ["apps.spryker.local", "*.bazaarvoice.com"],
"STORE_NAME_REFERENCE_MAP": {},
"APP_CATALOG_SCRIPT_URL": "",
"PAYONE_APP_IDENTIFIER": "app-098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "app-b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "app-804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "app-12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "app-7ff8d24e-4ea1-4440-b760-0aa92e60405b"
"PAYONE_APP_IDENTIFIER": "098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "7ff8d24e-4ea1-4440-b760-0aa92e60405b"
}'
SPRYKER_AOP_AUTHENTICATION: '{
"AUTH0_CUSTOM_DOMAIN": "",
Expand Down
10 changes: 5 additions & 5 deletions deploy.acp-dev.franken.mb2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ image:
"APP_DOMAINS": ["apps.spryker.local", "*.bazaarvoice.com"],
"STORE_NAME_REFERENCE_MAP": {},
"APP_CATALOG_SCRIPT_URL": "",
"PAYONE_APP_IDENTIFIER": "app-098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "app-b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "app-804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "app-12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "app-7ff8d24e-4ea1-4440-b760-0aa92e60405b"
"PAYONE_APP_IDENTIFIER": "098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "7ff8d24e-4ea1-4440-b760-0aa92e60405b"
}'
SPRYKER_AOP_AUTHENTICATION: '{
"AUTH0_CUSTOM_DOMAIN": "",
Expand Down
10 changes: 5 additions & 5 deletions deploy.acp-dev.standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ image:
"APP_DOMAINS": ["apps.spryker.local", "*.bazaarvoice.com"],
"STORE_NAME_REFERENCE_MAP": {},
"APP_CATALOG_SCRIPT_URL": "",
"PAYONE_APP_IDENTIFIER": "app-098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "app-b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "app-804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "app-12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "app-7ff8d24e-4ea1-4440-b760-0aa92e60405b"
"PAYONE_APP_IDENTIFIER": "098aa300-2e3d-5a32-89c6-d79c45f15cd4",
"BAZAARVOICE_APP_IDENTIFIER": "b72fa702-7d8e-5d14-92b9-b8c9ad9c7066",
"USERCENTRICS_APP_IDENTIFIER": "804ebe5b-00f5-5121-9f90-29301d033dbb",
"ALGOLIA_APP_IDENTIFIER": "12470c65-13c1-4e1f-b48a-711196a22511",
"VERTEX_APP_IDENTIFIER": "7ff8d24e-4ea1-4440-b760-0aa92e60405b"
}'
SPRYKER_AOP_AUTHENTICATION: '{
"AUTH0_CUSTOM_DOMAIN": "",
Expand Down
15 changes: 15 additions & 0 deletions src/Pyz/Zed/MessageBroker/MessageBrokerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ public function getDefaultWorkerChannels(): array
];
}

/**
* {@inheritDoc}
* - The list below is used strictly recommended to leave as is.
*
* @api
*
* @return list<string>
*/
public function getSystemWorkerChannels(): array
{
return [
'app-events',
];
}

/**
* {@inheritDoc}
*
Expand Down
11 changes: 11 additions & 0 deletions src/Pyz/Zed/MessageBroker/MessageBrokerDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Pyz\Zed\MessageBroker;

use Spryker\Zed\Asset\Communication\Plugin\MessageBroker\AssetMessageHandlerPlugin;
use Spryker\Zed\KernelApp\Communication\Plugin\MessageBroker\ActiveAppFilterMessageChannelPlugin;
use Spryker\Zed\KernelApp\Communication\Plugin\MessageBroker\AppConfigMessageHandlerPlugin;
use Spryker\Zed\MerchantApp\Communication\Plugin\MessageBroker\MerchantAppOnboardingMessageHandlerPlugin;
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\CorrelationIdMessageAttributeProviderPlugin;
Expand Down Expand Up @@ -133,4 +134,14 @@ public function getExternalValidatorPlugins(): array
new StoreReferenceMessageValidatorPlugin(),
];
}

/**
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\FilterMessageChannelPluginInterface>
*/
public function getFilterMessageChannelPlugins(): array
{
return [
new ActiveAppFilterMessageChannelPlugin(),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function testCheckAttributesBeforeSendingMessage(): void
// Arrange
$messageSenderPlugin = $this->createMock(MessageSenderPluginInterface::class);

$this->tester->setupMessageBrokerValidationPlugins();
$this->tester->setupMessageBrokerPlugins();
$this->tester->setMessageToSenderChannelNameMap(MessageBrokerTestMessageTransfer::class, static::CHANNEL_NAME);
$this->tester->setChannelToTransportMap(static::CHANNEL_NAME, $messageSenderPlugin->getTransportName());

Expand Down
Loading

0 comments on commit 0e8a0e2

Please sign in to comment.