Skip to content

Commit

Permalink
FRW-9607: Merged master
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-gnusov committed Feb 12, 2025
2 parents 7adda6b + c6e97a5 commit b8d16fc
Show file tree
Hide file tree
Showing 17 changed files with 171 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: B2C-CI

on:
pull_request:
types: [ labeled, synchronize ]
types: [ labeled, unlabeled, synchronize ]
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/robot-ui-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "[b2c][master] Robot Regression UI E2E"

on:
pull_request:
types: [ labeled, synchronize ]
types: [ labeled, unlabeled, synchronize ]
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
Expand Down
108 changes: 55 additions & 53 deletions composer.lock

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

32 changes: 32 additions & 0 deletions src/Pyz/Service/Synchronization/SynchronizationConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/**
* This file is part of the Spryker Commerce OS.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/

declare(strict_types = 1);

namespace Pyz\Service\Synchronization;

use Spryker\Service\Synchronization\SynchronizationConfig as SprykerSynchronizationConfig;

class SynchronizationConfig extends SprykerSynchronizationConfig
{
/**
* Specification:
* - Used for backward compatibility to switch to the new single-key format.
* - Defaults to `false`, using the `key:` name format.
* - When set to `true`, the single-key format is `key`.
*
* @api
*
* @deprecated Will be removed in the next major without replacement. Will be switched to normalized format.
*
* @return bool
*/
public function isSingleKeyFormatNormalized(): bool
{
return true;
}
}
15 changes: 15 additions & 0 deletions src/Pyz/Zed/MessageBroker/MessageBrokerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,19 @@ public function getDefaultWorkerChannels(): array
'tax-commands',
];
}

/**
* Specification:
* - Returns system worker channels used to retrieve service messages.
*
* @api
*
* @return list<string>
*/
public function getSystemWorkerChannels(): array
{
return [
'app-events',
];
}
}
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\MessageBroker\Communication\Plugin\MessageBroker\CorrelationIdMessageAttributeProviderPlugin;
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\TenantActorMessageAttributeProviderPlugin;
use Spryker\Zed\MessageBroker\Communication\Plugin\MessageBroker\TimestampMessageAttributeProviderPlugin;
Expand Down Expand Up @@ -91,4 +92,14 @@ public function getMiddlewarePlugins(): array
new ValidationMiddlewarePlugin(),
];
}

/**
* @return array<\Spryker\Zed\MessageBrokerExtension\Dependency\Plugin\FilterMessageChannelPluginInterface>
*/
public function getFilterMessageChannelPlugins(): array
{
return [
new ActiveAppFilterMessageChannelPlugin(),
];
}
}
Loading

0 comments on commit b8d16fc

Please sign in to comment.