orange-analyst-340
07/08/2021, 11:36 AMancient-apartment-59274
07/08/2021, 12:28 PMancient-apartment-59274
07/12/2021, 7:48 AMisUserAllowed($userID)
function which will just return if the user is allowed doing specific stuff or not. The chain would be
Yves->MyExternalServiceClient->isUserAllowed
My present opinion is, that whenever Zed has also to “know” about whats going on there, implement an API and everything on top (separate Zed client for this module etc). Because you have to call Zed anyway and do everything that is needed also in Zed backend.
Whenever it should be “lightweight” and fast and Zed don’t need to know about -> implement a client on client layer.
But then someone could argue: “Why not always implementing a client and use them in both, yves and zed?” This is a valid argument in my eyes since if you decide to implement a client on client layer first this would keep the door open for later changes. All other “consumers” are added around.
Especially when the external service is providing a mix of “lightweight” functions like “isAllowed” and more heavy ones where something in Zed has to be updated like “fetchUserInfo”.
However, is there a thumb rule / general recommendation when to go for which approach? I know, it depends heavily on the use case, but maybe there might be facts/thoughts that definitely would break the one or the other way.
Bestpurple-belgium-44879
07/12/2021, 9:16 AMacoustic-motherboard-16553
07/12/2021, 4:11 PMrough-egg-5359
07/13/2021, 8:43 AMfull-river-39179
07/14/2021, 6:37 AMmany-yacht-15129
07/14/2021, 3:26 PMastonishing-lamp-41374
07/14/2021, 5:58 PM╭─/data | Store: US | Env: docker.dev | Debug: (X) | Testing: (X)
╰─$ codecept run -c tests/PyzTest/Zed/SomeModule/
Codeception PHP Testing Framework v4.1.1
Powered by PHPUnit 7.5.20 by Sebastian Bergmann and contributors.
Running with seed:
PyzTest\Zed\SomeModule.Business Tests (1) -----------------------------------------------------------------------
E DoingAThingMapperTest: Whatever
-------------------------------------------------------------------------------------------------------------------------------------
In ConnectionFactory.php line 42:
Unable to open connection
In PdoAdapter.php line 72:
Unable to open PDO connection
In PdoConnection.php line 64:
SQLSTATE[HY000] [2002] Connection refused
.....
╭─/data | Store: US | Env: docker.dev | Debug: (X) | Testing: (X)
/**
* @var \PyzTest\Zed\Business\SomeModule
*/
public $tester;
/**
* @return void
*/
public function testWhatever()
{
What’s up here?wide-wolf-99519
07/15/2021, 9:32 AMfull-motorcycle-97796
07/15/2021, 10:41 AM// ---------- State machine (OMS)
$config[OmsConstants::ACTIVE_PROCESSES] = [
'Nopayment01',
];
$config[SalesConstants::PAYMENT_METHOD_STATEMACHINE_MAPPING] = [
GiftCardConfig::PROVIDER_NAME => 'DummyPayment01', // Order State Machine name of your choice
NopaymentConfig::PAYMENT_PROVIDER_NAME => 'Nopayment01',
];
full-motorcycle-97796
07/15/2021, 10:43 AMplain-house-98998
07/15/2021, 10:44 AMrough-egg-5359
07/15/2021, 1:19 PMancient-apartment-59274
07/16/2021, 7:09 AMrough-egg-5359
07/16/2021, 9:47 AMwitty-jordan-77597
07/16/2021, 11:33 AM{{ 'my.key.for.translation' | trans }}
which then looks at glossary store for a suitable translation to this key,
is there a possible way to use similar keys in JS/Typescript to translations via glossaries more dynamically?wide-wolf-99519
07/19/2021, 1:15 PM$this->getFactory()
->createSomeQuery()
->useRelatedEntity()
->filterByRelatedEntityColumn($someValue)
->endUse()
->delete(); // doesn't work for me
salmon-gold-17445
07/20/2021, 7:53 AMflaky-boots-28440
07/20/2021, 2:23 PMacoustic-motherboard-16553
07/21/2021, 8:03 AMacoustic-motherboard-16553
07/21/2021, 9:24 AMmicroscopic-spoon-7123
07/21/2021, 3:10 PMconsole translator:clean-cache
console translator:generate-cache
it didn't help. Can someone help me?quaint-midnight-78937
07/22/2021, 9:35 AMmarketplace
solution and I was recently updating the composer module zed-ui
from version 0.3.12
to 0.4.3
.
However, updating from version 0.3.x
to 0.4.x
came with those breaking changes according to the Github release:
• Removed index.ts
.
• Removed app.module.ts
.
• Removed environment.prod.ts
.
• Removed environment.ts
.
• Removed index.html
.
• Removed main.ts
.
• Removed polyfills.ts
.
These changes mess with the setup of tsconfig.mp.json
and with angular.json
. Is there a migration guide for this particular problem?famous-photographer-66091
07/23/2021, 9:50 AMflaky-boots-28440
07/23/2021, 11:01 AMconsole propel:model:build
will run into the exception: Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\Exception\InvalidConfigurationException - Exception: SpyProductLabelDictionaryStorage uses mutually exclusive "store" and "queue_pool" synchronization attributes.
Here's the section build log:
Section build
Command generate-transfers [vendor/bin/console transfer:generate] (7.72s)
Command twig-cache-warmup [vendor/bin/console twig:cache:warmer] (5.79s)
Command navigation-cache-warmup [vendor/bin/console navigation:build-cache] (5.62s)
Command rest-request-validation-cache-warmup [vendor/bin/console glue:rest:build-request-validation-cache] (5.54s)
Command propel-copy-schema [vendor/bin/console propel:schema:copy] (5.75s)
Command propel-build [vendor/bin/console propel:model:build] (In progress...)
Store: DE | Environment: docker
Store: DE | Environment: docker
Store: DE | Environment: docker
Store: DE | Environment: docker
Store: DE | Environment: docker
Clean schema directory
Copy and merge schema files
Store: DE | Environment: docker
Build Propel2 classes
Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\Exception\InvalidConfigurationException - Exception: SpyProductLabelDictionaryStorage uses mutually exclusive "store" and "queue_pool" synchronization attributes.
in /data/vendor/spryker/synchronization-behavior/src/Spryker/Zed/SynchronizationBehavior/Persistence/Propel/Behavior/SynchronizationBehavior.php (501)
Command: vendor/bin/console propel:model:build
Trace:
#0 /data/vendor/spryker/synchronization-behavior/src/Spryker/Zed/SynchronizationBehavior/Persistence/Propel/Behavior/SynchronizationBehavior.php(129): Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\SynchronizationBehavior->addSendToQueueMethod()
#1 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/AbstractOMBuilder.php(1023): Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\SynchronizationBehavior->objectMethods(Object(Spryker\Zed\PropelOrm\Business\Builder\ObjectBuilder))
#2 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/AbstractObjectBuilder.php(207): Propel\Generator\Builder\Om\AbstractOMBuilder->applyBehaviorModifierBase('objectMethods', Object(Spryker\Zed\SynchronizationBehavior\Persistence\Propel\Behavior\SynchronizationBehavior), '\n/**\n * Base cl...', ' ')
#3 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/ObjectBuilder.php(379): Propel\Generator\Builder\Om\AbstractObjectBuilder->applyBehaviorModifier('objectMethods', '\n/**\n * Base cl...', ' ')
#4 /data/vendor/propel/propel/src/Propel/Generator/Builder/Om/AbstractOMBuilder.php(72): Propel\Generator\Builder\Om\ObjectBuilder->addClassBody('\n/**\n * Base cl...')
#5 /data/vendor/propel/propel/src/Propel/Generator/Manager/ModelManager.php(178): Propel\Generator\Builder\Om\AbstractOMBuilder->build()
#6 /data/vendor/propel/propel/src/Propel/Generator/Manager/ModelManager.php(72): Propel\Generator\Manager\ModelManager->doBuild(Object(Spryker\Zed\PropelOrm\Business\Builder\ObjectBuilder))
#7 /data/vendor/propel/propel/src/Propel/Generator/Command/ModelBuildCommand.php(145): Propel\Generator\Manager\ModelManager->build()
#8 /data/vendor/spryker/propel-orm/src/Spryker/Zed/PropelOrm/Communication/Generator/Command/ModelBuildCommand.php(28): Propel\Generator\Command\ModelBuildCommand->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Command/Runner/PropelCommandRunner.php(64): Spryker\Zed\PropelOrm\Communication\Generator\Command\ModelBuildCommand->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /data/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Console/BuildModelConsole.php(47): Spryker\Zed\Propel\Communication\Command\Runner\PropelCommandRunner->runCommand(Object(Spryker\Zed\PropelOrm\Communication\Generator\Command\ModelBuildCommand), Object(Symfony\Component\Console\Input\InputDefinition), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /data/vendor/symfony/console/Command/Command.php(255): Spryker\Zed\Propel\Communication\Console\BuildModelConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /data/vendor/symfony/console/Application.php(1027): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /data/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\Propel\Communication\Console\BuildModelConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /data/vendor/spryker/console/src/Spryker/Zed/Console/Communication/Bootstrap/ConsoleBootstrap.php(111): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /data/vendor/symfony/console/Application.php(149): Spryker\Zed\Console\Communication\Bootstrap\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /data/vendor/spryker/console/bin/console(27): Symfony\Component\Console\Application->run()
#17 {main}
In CommandLineExecutable.php line 105:
Aborted install...
I did work through https://documentation.spryker.com/docs/mg-product-label as far as I could (since the dev environment is not running, I couldn't run the database modifications) and my guess is that the problem in fact comes from my configuration, but I am at a loss figuring out what causes it.
Comparing the generated SpyProductLabelDictionaryStorage
to the b2b-demo-shop, I can say that at least the used method coming from the generator is the same.
I'd appreciate any tips how to troubleshoot this issue. Thank you in advance!adorable-piano-19015
07/23/2021, 11:24 AMnutritious-angle-64267
07/26/2021, 8:05 AMastonishing-lamp-41374
07/26/2021, 6:54 PMadamant-oil-10501
07/27/2021, 1:13 AM