melodic-machine-2956
06/16/2020, 6:32 AMancient-apartment-59274
06/16/2020, 7:51 AMfull-motorcycle-97796
06/16/2020, 9:21 AMloud-rainbow-44827
06/17/2020, 3:28 PMdocker/sdk cli
? thanks.loud-rainbow-44827
06/17/2020, 6:21 PMspryker/navigation-gui (2.5.0 => 2.6.0)
and now all ZED is broken because you changed vendor/spryker/navigation-gui/src/Spryker/Zed/NavigationGui/Communication/navigation.xml
and we have error. Please fix this ASAP.purple-coat-90835
06/18/2020, 2:01 PMSpryker\Zed\Router\Communication\Plugin\EventDispatcher\RequestAttributesEventDispatcherPlugin
to our EventDispatcherDependencyProvider
. This Plugin does not exist and it looks like this is causing \Spryker\Zed\Auth\Communication\Plugin\EventDispatcher\AuthorizationEventDispatcherPlugin::onKernelRequest
to fail with endless redirects.
Any chance to provide the plugin source directly until the module is fixed?acoustic-businessperson-27970
06/19/2020, 7:48 AMResolvableClassCacheConsole
2. ENV variable SPRYKER_CODE_BUCKET
The question is, does this mean that I have to register the new command and create the new ENV variable ? is it mandatory for the app to work?
Can someone please elaborate on this ?
thanksloud-rainbow-44827
06/19/2020, 11:04 AMspryker-shop/cart-page (3.16.0 => 3.18.2)
and I see that you've changed the \SprykerShop\Yves\CartPage\Controller\CartController::addAction
functionality.
You've added this lines
$form = $this->getFactory()->createCartPageFormFactory()->getAddToCartForm()->handleRequest($request);
if (!$form->isSubmitted() || !$form->isValid()) {
$this->addErrorMessage(static::MESSAGE_FORM_CSRF_VALIDATION_ERROR);
return $this->redirectResponseInternal(CartControllerProvider::ROUTE_CART);
}
When in goes to \Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler::handleRequest
it checks if the form name add_to_cart_form
is present in \Symfony\Component\HttpFoundation\InputBag::$parameters
property. But it doesn't. Therefore method \Symfony\Component\Form\Form::isSubmitted
always returns false
and it shows error message.
Am I doing smth wrong? Or is it a bug again?aloof-electrician-43662
06/19/2020, 11:34 AMSubscriber:
$eventCollection->addListenerQueued(ProductEvents::PRODUCT_ABSTRACT_AFTER_CREATE, new KacperListener('my argument'));
Listener:
public function __construct($URL_TO_API) {
$this->URL_TO_API = $URL_TO_API;
}
give me an error:
Too few arguments to function Pyz\Zed\....\KacperListener::__construct(), 0 passed in
loud-rainbow-44827
06/19/2020, 12:55 PMDummyPayment01.xml
i mean. I need to add only few commands to events. I don't need the new OMSancient-apartment-59274
06/19/2020, 7:11 PMdocker/sdk testing codecept -x run -c codeception.functional.yml --coverage
But i always get an error for the PyzTests
file_get_contents(/c3/report/clear): failed to open stream: No such file or directory
I see that some additional spryker modules like the webdriverhelper are hooking in here and do some magic, but it seems that the error occurs before the webdriverhelper can react to anything. The suite.before event is causing the error already on the localserver subscriber …
Does anybody has a hint for me? How do you generate coverage reports? Do you and when yes how do you run the spryker pyz tests in general for your CI?
Generally I find this topic not too much documented in spryker …
Best regardsacoustic-businessperson-27970
06/22/2020, 8:43 AMIn FactoryResolver.php line 38:
Spryker Kernel Exception
Can not resolve ModuleBusinessFactory in Business layer for your module "Module"
You can fix this by adding the missing Factory to your module.
E.g. Pyz\Zed\Module\Business\ModuleBusinessFactory
The thing is that this class exists Pyz\Zed\Module\Business\ModuleBusinessFactory
What am I missing?aloof-electrician-43662
06/23/2020, 6:47 AMZed.CRITICAL: Spryker\Zed\Kernel\ClassResolver\Factory\FactoryNotFoundException - Spryker Kernel Exception
Can not resolve pluginZedFactory in Zed layer for your module "plugin"
You can fix this by adding the missing Factory to your module.
E.g. Pyz\Zed\plugin\Zed\pluginZedFactory
Only one difference is that now plugin goes from vendor folder, and earlier (when create that) goes from Pyc\Zed\ folder how can i fix thatmany-continent-24692
06/23/2020, 2:21 PMshy-oxygen-97864
06/23/2020, 3:54 PMsparse-fall-78248
06/24/2020, 8:07 AMgetImporter()
simply used when running a full import?wide-flag-26835
06/24/2020, 8:42 AMwooden-dress-65386
06/24/2020, 3:25 PMDependencyProviders
and Factories
in Spryker: As far as I understood, the idea is that the DependencyProvider
is responsible for solving dependencies to external modules and injecting them into the Container
- the idea behind the Factory
is to 1) actually give access to those external dependencies (through get*
methods) and 2) create inner-module dependencies through create*
methods (e.g. creating new instances of business models, or creating plugin hook arrays, etc). As far as I understood, the DependencyProvider
should not instantiate new inner-module objects (e.g. business models), this is the job of the Factory
. Is this correct?
If yes: We have cases in our project, where the DependencyProvider
is actually instantiating new business objects (as an example, an array of PostProcessorHookPlugins
), setting them in the Container
, and the Factory
is just grabbing those from the Container
, instead of creating them himself. This has been done (as far as I can see) because we have integration tests which are overriding the Container
dependencies through the DependencyHelper
to change the behaviour of a Process
(so it overrides the array of PostProcessorHookPlugins
coming from the DependencyProvider
inside of the integrationtest). Now my question: From an architectural point of view, is this against the concept behind DependencyProviders
and Factories
? Would it be more correct to refactor this, so that the PostProcessorHookPlugins
actually are instantiated in the Factory
, and the integration-test is mocking the Factory
then instead of overriding the dependency?mammoth-autumn-37948
06/25/2020, 6:42 AMasync render(): Promise<void> {
debug(this.stepEngineCode, '...fetchOnLoad');
const response = await this.ajaxProviderRender.fetch();
if (!response) {
return;
}
if (this.ajaxContainerRender) {
this.ajaxContainerRender.innerHTML = response;
await mount();
this.stepEngineForm = <HTMLFormElement>this.getElementsByClassName(`${this.jsName}__form`)[0];
//this.stepEngineForm is here undefined -> why?
this.mapStepEngineFormEvents();
}
}
After put the response in container and re-mount the components my selector (this.stepEngineForm .....) just is always undefined
even if (i checked 1000times) the selector is correct and everything is fine... Due the undefined variable cannot be bind events to the form fetched...
This function render just render a form on-load of page... in the case i disable the fetchonLoad, the form is direclty rendered from twig and the same selector present in readyCallback
function works and the events are properly mapped..
I see that Spryker has in Core a similar case about quick-order-form (vendor/spryker-shop/quick-order-page/src/SprykerShop/Yves/QuickOrderPage/Theme/default/components/molecules/quick-order-form/quick-order-form.ts:95
) and it works as expected...
The code is very similar... but on my script just does not work..
Can anyone maybe help me? Thanks in advance.many-continent-24692
06/25/2020, 11:20 AMvendor/bin/console router:cache:warm-up
☝️ is that new or old? (https://documentation.spryker.com/docs/t-create-table-view)purple-coat-90835
06/26/2020, 1:32 PM<behavior name="synchronization">
<parameter name="resource" value="category_image"/>
<parameter name="locale" required="true"/>
<parameter name="key_suffix_column" value="fk_category"/>
<parameter name="queue_group" value="sync.storage.category"/>
</behavior>
fast-painter-64431
06/29/2020, 8:33 AMsearch:setup
.
Because I've done it on strage
its acceptable to delete index and create it once more.
But this is unacceptable for prod
.
So my questions are:
1. I tried create copy of index with command search:index:copy
, but get an 400 error. So what the right way of creating copy of existing index?
2. Is there a way, to run commands like event:trigger
on inactive index?
Thanks in advance.many-continent-24692
06/29/2020, 3:30 PMevent.error
containing the following JSON:
"retryMessage": "Retry on: Please enable the event logger in the config_* files to see the error message: `$config[EventConstants::LOGGER_ACTIVE] = true;`",
"errorMessage": "Please enable the event logger in the config_* files to see the error message: `$config[EventConstants::LOGGER_ACTIVE] = true;`"
}
many-continent-24692
06/29/2020, 3:30 PMmany-continent-24692
06/30/2020, 6:55 AMEventConstnats::ACTIVATE_LOGGING
be enabled on production ?salmon-river-59357
07/01/2020, 10:06 AMcopyTextToClipboard (text: string): boolean {
const elem = <HTMLTextAreaElement> document.createElement ('textarea');
elem.value = text;
document.body.appendChild (elem);
elem.select ();
const isCopied = document.execCommand ('copy');
document.body.removeChild (elem);
return isCopied;
}
That works in FireFox and Chrome. In Safari the method document.execCommand (‘copy’) returns false. What could be the problem?gray-engine-53418
07/01/2020, 1:52 PM\Spryker\Zed\Synchronization\Business\Message\BulkQueueMessageProcessor::runBulkWrite
), it adds the error to all the messages (containing all the errors from the failing messages - \Spryker\Zed\Synchronization\Business\Message\BulkQueueMessageProcessor::markEachMessageChunkAsFailed
). This will generate messages ~20MB in the error queue (the initial message had ~10KB), consuming a lot of resources (10k messages * 20MB each * number of chunks).
What’s the recommended way to solve this issue?rough-scientist-68683
07/03/2020, 7:42 AMloud-rainbow-44827
07/03/2020, 8:48 AM\Pyz\Zed\DataImport\Business\Model\ProductAbstract\ProductAbstractWriterStep
or here \Pyz\Zed\DataImport\Business\Model\Customer\CustomerWriterStep
. Actually everywhere. Was it any specific reason to do so? Why didn't you inject the appropriate query containers in constructor of writer steps classes? Because I'm implementing import steps for my custom entity and I'm confused with your approach. thanksquick-account-45953
07/03/2020, 10:16 AM