Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

202410.0 Release. #468

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
55c06db
CC-34568: Enabled the DMS for the b2bmp env.
abitskil Oct 11, 2024
3d290d7
CC-34568: Enabled the DMS for the b2bmp env.
abitskil Oct 15, 2024
eaa4111
CC-34568: Update the docker/sdk.
abitskil Oct 16, 2024
0dc45bf
Merge branch 'feature/frw-7213/master-enabled-ds-on-by-default' into …
abitskil Oct 16, 2024
ba798db
CC-34568: Explicitly enabled the OAUTH_CLIENT_CONFIGURATION.
abitskil Oct 16, 2024
d1c568f
FRW-6475 Integration
olhalivitchuk Oct 18, 2024
2c8adcd
202410.0 release: updated composer.
asmarovydlo Oct 18, 2024
57ba73a
Merge pull request #467 from spryker-shop/bugfix/frw-6475/fixed-produ…
asmarovydlo Oct 18, 2024
a77c61c
202410.0 release: locked dependencies.
asmarovydlo Oct 18, 2024
007e012
Merge remote-tracking branch 'origin/release-202410.0' into release-2…
asmarovydlo Oct 18, 2024
2cdc0e0
202410.0 release: fixed ci.
asmarovydlo Oct 18, 2024
57768a2
202410.0 release: fixed ci.
asmarovydlo Oct 21, 2024
b962f4f
CC-34696: CC-34695: Integrations
vol4onok Oct 22, 2024
ef9479f
Update composer.
Oct 22, 2024
34b0f93
Merge pull request #470 from spryker-shop/bugfix/cc-34707-state-machi…
tolerants Oct 23, 2024
63a5c0e
CC-34696: CC-34695: Integrations
vol4onok Oct 23, 2024
b8442a4
CC-34696: CC-34695: reverted SF generation
vol4onok Oct 23, 2024
3c0a227
CC-34696: CC-34695: reverted SF generation
vol4onok Oct 23, 2024
db79f93
Merge pull request #469 from spryker-shop/bugfix/cc-34696/cc-34695/ma…
vol4onok Oct 23, 2024
9dce795
202410.0 release: updated composer.
asmarovydlo Oct 23, 2024
4896584
add b2b_mp deploy file
pyvovarov-s Oct 23, 2024
bfa9d6f
add b2b_mp deploy file
pyvovarov-s Oct 23, 2024
1e9b023
Merge pull request #472 from spryker-shop/add-b2b-mp-deploy-file
pyvovarov-s Oct 23, 2024
8a7bce6
CC-34126 integration.
asmarovydlo Oct 24, 2024
960d9ca
Merge pull request #474 from spryker-shop/feature/cc-34126/dev-added-…
asmarovydlo Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,542 changes: 1,416 additions & 126 deletions composer.json

Large diffs are not rendered by default.

6,705 changes: 3,726 additions & 2,979 deletions composer.lock

Large diffs are not rendered by default.

395 changes: 395 additions & 0 deletions composer_back.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions config/install/docker.ci.functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ sections:
propel-migration-cleanup:
command: 'vendor/bin/console propel:migration:delete'

init-database:
command: 'vendor/bin/console setup:init-db'

demodata:
queue-setup:
command: 'vendor/bin/console queue:setup'

init-database:
command: 'vendor/bin/console setup:init-db'

import-eu-region-demodata:
command: 'vendor/bin/console data:import --config=data/import/local/full_EU.yml'

Expand All @@ -75,7 +75,7 @@ sections:

publish-and-sync:
command: 'vendor/bin/console queue:worker:start --stop-when-empty'
timeout: 2000
timeout: 4000

controller-cache-warmup:
command: 'vendor/bin/glue glue-api:controller:cache:warm-up'
Expand Down
6 changes: 2 additions & 4 deletions data/import/common/common/glossary.csv
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,6 @@ customer.error.confirm_email_link.invalid_or_used,This email verification link i
customer.error.confirm_email_link.invalid_or_used,Dieser E-Mail-Verifizierungslink ist ungültig oder wurde bereits verwendet.,de_DE
customer.authorization.validate_email_address,"Almost there! We send you an email to validate your email address. Please confirm it to be able to log in.",en_US
customer.authorization.validate_email_address,"Fast dort! Wir senden Ihnen eine E-Mail, um Ihre E-Mail-Adresse zu bestätigen. Bitte bestätigen Sie dies, um sich anmelden zu können.",de_DE
customer.authorization.invalid_account,"If this E-mail address is already in use, you will receive a password reset link. Otherwise, you must first validate your E-mail address to finish registration. Please check your E-mail.",en_US
customer.authorization.invalid_account,"Wenn die E-Mail bereits genutzt wird, werden Sie einen Passwortresetlink erhalten. Wenn nicht dann müssen Sie erst Ihre Emailadresse verifizieren. Bitte prüfen Sie ihre Email.",de_DE
customer.profile.change.success,Profile was successfully saved,en_US
customer.profile.change.success,Profil wurde erfolgreich gespeichert,de_DE
customer.password.invalid_password,Current password is wrong,en_US
Expand Down Expand Up @@ -777,8 +775,8 @@ newsletter.subscription.already_subscribed,You are already subscribed to the new
newsletter.subscription.already_subscribed,Sie sind bereits für den Newsletter angemeldet,de_DE
newsletter.subscription.email_format_invalid,Invalid Email address format,en_US
newsletter.subscription.email_format_invalid,Ungültiges E-Mail-Adressformat,de_DE
customer.authentication.failed,Authentication failed,en_US
customer.authentication.failed,Authentifizierung fehlgeschlagen,de_DE
customer.authentication.failed,Please check that your E-mail address and password are correct and that you have confirmed your E-mail address by clicking the link in the registration message,en_US
customer.authentication.failed,"Bitte stelle sicher, dass deine E-Mail-Adresse und Passwort richtig sind und dass du deine E-Mail-Adresse durch Klicken auf den Link in der Bestätigungsnachricht bestätigt" hast,de_DE
customer.email.invalid,Email address is invalid,en_US
customer.email.invalid,E-Mail Adresse ist ungültig,de_DE
customer.email.format.invalid,Invalid Email address format,en_US
Expand Down
115 changes: 41 additions & 74 deletions deploy.scos2-b2bmp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ environment: docker.production
image:
tag: spryker/php:8.3
environment:
SPRYKER_DEFAULT_STORE: "DE"
SPRYKER_ACTIVE_STORES: "DE,AT"
SPRYKER_HOOK_BEFORE_DEPLOY: "vendor/bin/install -r EU/pre-deploy.dynamic-store-off -vvv"
SPRYKER_HOOK_AFTER_DEPLOY: "true"
SPRYKER_HOOK_INSTALL: "vendor/bin/install -r EU/production.dynamic-store-off --no-ansi -vvv"
SPRYKER_HOOK_DESTRUCTIVE_INSTALL: "vendor/bin/install -r EU/destructive.dynamic-store-off --no-ansi -vvv"
SPRYKER_PRODUCT_CONFIGURATOR_HOST: dtc.spryker-b2bmp.cloud.spryker.toys
SPRYKER_PRODUCT_CONFIGURATOR_PORT: 443
SPRYKER_YVES_HOST_DE: www.de.spryker-b2bmp.cloud.spryker.toys
SPRYKER_YVES_HOST_AT: www.at.spryker-b2bmp.cloud.spryker.toys
SPRYKER_YVES_HOST_EU: yves.eu.spryker-b2bmp.cloud.spryker.toys
SPRYKER_YVES_HOST_US: yves.us.spryker-b2bmp.cloud.spryker.toys
SPRYKER_HOOK_BEFORE_DEPLOY: "vendor/bin/install -r pre-deploy -vvv"
SPRYKER_HOOK_AFTER_DEPLOY: "true"
SPRYKER_HOOK_INSTALL: "vendor/bin/install -r dynamic-store --no-ansi -vvv"
SPRYKER_HOOK_DESTRUCTIVE_INSTALL: "vendor/bin/install -r destructive --no-ansi -vvv"
SPRYKER_DYNAMIC_STORE_MODE: true
SPRYKER_PUSH_NOTIFICATION_WEB_PUSH_PHP_VAPID_PUBLIC_KEY: 'BGqNWbv0hWM5CQ1-KwAfSQBMC6TMVFyrnh3vQp37oGCNvQ6eG_HyMjxBFJRWeCPTbzDoxcjhxLJS8Ck8r1G2oFw'
SPRYKER_PUSH_NOTIFICATION_WEB_PUSH_PHP_VAPID_PRIVATE_KEY: 'UK6DywwjKITPpRHBSY9TLPIXm6BPrHX40sseIoXT9c8'
SPRYKER_PUSH_NOTIFICATION_WEB_PUSH_PHP_VAPID_SUBJECT: 'https://spryker.com'
Expand All @@ -35,7 +34,6 @@ assets:
brotli:
static: on
level: 5

regions:
EU:
services:
Expand All @@ -47,28 +45,12 @@ regions:
database: scos2_b2bmp
username: spryker
password: secret

stores:
DE:
services:
broker:
namespace: de_queue
key_value_store:
namespace: 1
search:
namespace: de_search
session:
namespace: 2
AT:
services:
broker:
namespace: at_queue
key_value_store:
namespace: 1
search:
namespace: at_search
session:
namespace: 2
broker:
namespace: eu-docker
key_value_store:
namespace: 1
search:
namespace: eu_search

groups:
EU:
Expand All @@ -79,83 +61,71 @@ groups:
endpoints:
dtc.spryker-b2bmp.cloud.spryker.toys:
entry-point: Configurator
www.de.spryker-b2bmp.cloud.spryker.toys:
store: DE
www.at.spryker-b2bmp.cloud.spryker.toys:
store: AT
yves.eu.spryker-b2bmp.cloud.spryker.toys:
region: EU
services:
session:
namespace: 1
boffice:
application: backoffice
endpoints:
backoffice.de.spryker-b2bmp.cloud.spryker.toys:
store: DE
backoffice.at.spryker-b2bmp.cloud.spryker.toys:
store: AT
backoffice.eu.spryker-b2bmp.cloud.spryker.toys:
region: EU
primal: true
services:
session:
namespace: 3
backgw:
application: backend-gateway
endpoints:
backend-gateway.de.spryker-b2bmp.cloud.spryker.toys:
store: DE
backend-gateway.at.spryker-b2bmp.cloud.spryker.toys:
store: AT
backend-gateway.eu.spryker-b2bmp.cloud.spryker.toys:
region: EU
primal: true

glue:
application: glue
endpoints:
glue.de.spryker-b2bmp.cloud.spryker.toys:
store: DE
cors-allow-origin: '*'
glue.at.spryker-b2bmp.cloud.spryker.toys:
store: AT
glue.eu.spryker-b2bmp.cloud.spryker.toys:
cors-allow-origin: '*'
region: EU
gluestorefront:
application: glue-storefront
endpoints:
glue-storefront.de.spryker-b2bmp.cloud.spryker.toys:
store: DE
cors-allow-origin: '*'
glue-storefront.at.spryker-b2bmp.cloud.spryker.toys:
store: AT
glue-storefront.eu.spryker-b2bmp.cloud.spryker.toys:
region: EU
cors-allow-origin: '*'
gluebackend:
application: glue-backend
endpoints:
glue-backend.de.spryker-b2bmp.cloud.spryker.toys:
store: DE
cors-allow-origin: '*'
glue-backend.at.spryker-b2bmp.cloud.spryker.toys:
store: AT
glue-backend.eu.spryker-b2bmp.cloud.spryker.toys:
region: EU
cors-allow-origin: '*'
mportal:
application: merchant-portal
endpoints:
mp.de.spryker-b2bmp.cloud.spryker.toys:
mp.eu.spryker-b2bmp.cloud.spryker.toys:
entry-point: MerchantPortal
store: DE
region: EU
primal: true
services:
session:
namespace: 7
mp.at.spryker-b2bmp.cloud.spryker.toys:
entry-point: MerchantPortal
store: AT
services:
session:
namespace: 8
services:
database:
engine: mysql
version: mariadb-10.4
root:
username: "root"
password: "secret"
username: 'root'
password: 'secret'
endpoints:
localhost:3306:
protocol: tcp
broker:
engine: rabbitmq
version: '3.9'
api:
username: "spryker"
password: "secret"
username: 'spryker'
password: 'secret'
endpoints:
queue.spryker-b2bmp.cloud.spryker.toys:
localhost:5672:
Expand All @@ -176,7 +146,6 @@ services:
scheduler:
engine: jenkins
version: '2.442'
csrf-protection-enabled: false
endpoints:
scheduler.spryker-b2bmp.cloud.spryker.toys:
mail_catcher:
Expand All @@ -197,9 +166,7 @@ docker:
enabled: false
xdebug:
enabled: false

testing:
store: DE

region: EU
mount:
baked:
15 changes: 15 additions & 0 deletions src/Pyz/Client/Permission/PermissionDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@

use Pyz\Zed\CompanyUser\Communication\Plugin\Permission\SeeCompanyMenuPermissionPlugin;
use Spryker\Client\CompanyBusinessUnitSalesConnector\Plugin\Permission\SeeBusinessUnitOrdersPermissionPlugin;
use Spryker\Client\CompanyRole\Plugin\Permission\CreateCompanyRolesPermissionPlugin;
use Spryker\Client\CompanyRole\Plugin\Permission\DeleteCompanyRolesPermissionPlugin;
use Spryker\Client\CompanyRole\Plugin\Permission\EditCompanyRolesPermissionPlugin;
use Spryker\Client\CompanyRole\Plugin\Permission\SeeCompanyRolesPermissionPlugin;
use Spryker\Client\CompanyRole\Plugin\PermissionStoragePlugin;
use Spryker\Client\CompanySalesConnector\Plugin\Permission\SeeCompanyOrdersPermissionPlugin;
use Spryker\Client\CompanyUser\Plugin\CompanyUserStatusChangePermissionPlugin;
use Spryker\Client\CompanyUser\Plugin\Permission\DeleteCompanyUsersPermissionPlugin;
use Spryker\Client\CompanyUser\Plugin\Permission\EditCompanyUsersPermissionPlugin;
use Spryker\Client\CompanyUser\Plugin\Permission\SeeCompanyUsersPermissionPlugin;
use Spryker\Client\CustomerAccessPermission\Plugin\CustomerAccessPermissionStoragePlugin;
use Spryker\Client\CustomerAccessPermission\Plugin\SeeAddToCartPermissionPlugin;
Expand Down Expand Up @@ -80,6 +86,15 @@ protected function getPermissionPlugins(): array
new SeeBusinessUnitOrdersPermissionPlugin(),
new SeeCompanyUsersPermissionPlugin(),
new CreateMerchantRelationRequestPermissionPlugin(),
new CreateCompanyRolesPermissionPlugin(),
new DeleteCompanyRolesPermissionPlugin(),
new EditCompanyRolesPermissionPlugin(),
new SeeCompanyRolesPermissionPlugin(),
new CompanyUserStatusChangePermissionPlugin(),
new DeleteCompanyUsersPermissionPlugin(),
new EditCompanyUsersPermissionPlugin(),
new AddCompanyUserPermissionPlugin(),
new ManageCompanyUserInvitationPermissionPlugin(),
];
}
}
2 changes: 2 additions & 0 deletions src/Pyz/Zed/Publisher/PublisherDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
use Spryker\Zed\ProductConfigurationStorage\Communication\Plugin\Publisher\ProductConfiguration\ProductConfigurationWritePublisherPlugin;
use Spryker\Zed\ProductConfigurationStorage\Communication\Plugin\Publisher\ProductConfigurationPublisherTriggerPlugin;
use Spryker\Zed\ProductDiscontinuedStorage\Communication\Plugin\Publisher\ProductDiscontinuedPublisherTriggerPlugin;
use Spryker\Zed\ProductLabel\Communication\Plugin\Publisher\ProductLabelLocalizedAttributesWritePublisherPlugin;
use Spryker\Zed\ProductLabel\Communication\Plugin\Publisher\ProductLabelProductUpdatedEventTriggerPlugin;
use Spryker\Zed\ProductLabelSearch\Communication\Plugin\Publisher\ProductLabel\ProductLabelWritePublisherPlugin as ProductLabelSearchWritePublisherPlugin;
use Spryker\Zed\ProductLabelSearch\Communication\Plugin\Publisher\ProductLabelProductAbstract\ProductLabelProductAbstractWritePublisherPlugin as ProductLabelProductAbstractSearchWritePublisherPlugin;
Expand Down Expand Up @@ -283,6 +284,7 @@ protected function getProductLabelStoragePlugins(): array
new ProductLabelProductAbstractStorageWritePublisherPlugin(),
new ProductLabelDictionaryStorageWritePublisherPlugin(),
new ProductLabelDictionaryStorageDeletePublisherPlugin(),
new ProductLabelLocalizedAttributesWritePublisherPlugin(),
];
}

Expand Down
23 changes: 16 additions & 7 deletions tests/PyzTest/Yves/Checkout/Process/Steps/SuccessStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,23 @@ class SuccessStepTest extends Unit
*/
public function testExecuteShouldEmptyQuoteTransfer(): void
{
// Arrange
$customerClientMock = $this->createCustomerClientMock();
$customerClientMock->expects($this->once())->method('markCustomerAsDirty');

$successStep = $this->createSuccessStep($customerClientMock);
$cartClientMock = $this->createCartClientMock();

// Assert
$cartClientMock->expects($this->once())->method('clearQuote');

// Arrange
$successStep = $this->createSuccessStep($customerClientMock, $cartClientMock);

$quoteTransfer = new QuoteTransfer();
$quoteTransfer->addItem(new ItemTransfer());

$this->assertTrue($successStep->preCondition($quoteTransfer));
$quoteTransfer = $successStep->execute($this->createRequest(), $quoteTransfer);

$this->assertFalse($successStep->preCondition($quoteTransfer));
// Act
$successStep->execute($this->createRequest(), $quoteTransfer);
}

/**
Expand Down Expand Up @@ -74,16 +79,20 @@ public function testPostConditionsWhenOrderReferenceIsMissingShouldReturnFalse()

/**
* @param \SprykerShop\Yves\CheckoutPage\Dependency\Client\CheckoutPageToCustomerClientInterface|null $customerClientMock
* @param \SprykerShop\Yves\CheckoutPage\Dependency\Client\CheckoutPageToCartClientInterface|null $cartClientMock
*
* @return \SprykerShop\Yves\CheckoutPage\Process\Steps\SuccessStep
*/
protected function createSuccessStep($customerClientMock = null): SuccessStep
protected function createSuccessStep($customerClientMock = null, ?CheckoutPageToCartClientInterface $cartClientMock = null): SuccessStep
{
if ($customerClientMock === null) {
$customerClientMock = $this->createCustomerClientMock();
}

$cartClientMock = $this->createCartClientMock();
if ($cartClientMock === null) {
$cartClientMock = $this->createCartClientMock();
}

$checkoutPageConfigMock = $this->createCheckoutPageConfigMock();

return new SuccessStep(
Expand Down
Loading