silly-motherboard-93855
02/04/2021, 9:25 AM> node ./node_modules/@spryker/oryx-for-zed/build
♈ @spryker/oryx 1.4.0
♈ @spryker/oryx-for-zed 2.7.0
find
● looking for entry points...
✔ 80 found
find
● resolving core modules deps...
✔ 0 found
build
● using webpack 4.27.1
● building assets...
● webpack output:
ERROR in ./vendor/spryker/gui/assets/Zed/sass/main.scss
Module build failed (from ./node_modules/@spryker/oryx-for-zed/node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/@spryker/oryx-for-zed/node_modules/sass-loader/lib/loader.js):
@import '~bootstrap-sass/assets/stylesheets/bootstrap';
^
File to import not found or unreadable: ~bootstrap-sass/assets/stylesheets/bootstrap.
in vendor/spryker/gui/assets/Zed/sass/main.scss (line 8, column 1)
at node_modules/@spryker/oryx-for-zed/node_modules/webpack/lib/NormalModule.js:301:20
at node_modules/loader-runner/lib/LoaderRunner.js:367:11
at node_modules/loader-runner/lib/LoaderRunner.js:233:18
at context.callback (node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at Object.callback (node_modules/@spryker/oryx-for-zed/node_modules/sass-loader/lib/loader.js:67:13)
at Object.done [as callback] (node_modules/neo-async/async.js:8069:18)
at options.error (node_modules/node-sass/lib/index.js:294:32)
@ ./vendor/spryker/gui/assets/Zed/js/modules/commons.js 49:0-31
@ ./vendor/spryker/gui/assets/Zed/js/spryker-zed-gui-commons.entry.js
does anyone has the idea what might have been missing ?eager-beach-43647
02/04/2021, 10:23 AMwonderful-pizza-81714
02/04/2021, 1:27 PMdeploy.yml
. Also, how can I get to Jenkins?
Thank you.wide-wolf-99519
02/04/2021, 2:27 PM$order = new OrderTransfer();
$order->setEmail('<mailto:steve.rogers@example.org|steve.rogers@example.org>');
/** @var SalesFacadeInterface $salesFacade **/
$salesFacade->updateOrder($order, $orderId);
and I get
Call to a member function getTaxTotal() on null
because during this update OrderUpdater wants to create order totals
protected function createOrderTotals(OrderTransfer $orderTransfer, SpySalesOrder $orderEntity)
{
$taxTotal = 0;
if ($orderTransfer->getTotals()->getTaxTotal()) {
$taxTotal = $orderTransfer->getTotals()->getTaxTotal()->getAmount();
}
...
am I doing something wrong or missing something?astonishing-lamp-41374
02/04/2021, 10:25 PMnumerous-ghost-43588
02/05/2021, 7:33 AM#0 /data/vendor/spryker/error-handler/src/Spryker/Zed/ErrorHandler/Communication/Plugin/Application/ErrorHandlerApplicationPlugin.php(37): Spryker\Zed\ErrorHandler\Communication\Plugin\Application\ErrorHandlerApplicationPlugin->registerPrettyErrorHandler()
#1 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(81): Spryker\Zed\ErrorHandler\Communication\Plugin\Application\ErrorHandlerApplicationPlugin->provide(Object(Spryker\Shared\Kernel\Communication\Application))
#2 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(109): Spryker\Shared\Application\Application->registerApplicationPlugin(Object(Spryker\Zed\ErrorHandler\Communication\Plugin\Application\ErrorHandlerApplicationPlugin))
#3 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(119): Spryker\Zed\Application\Communication\ZedBootstrap->setupApplicationPlugins()
#4 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(100): Spryker\Zed\Application\Communication\ZedBootstrap->setupApplication()
#5 /data/vendor/spryker/application/src/Spryker/Zed/Application/Communication/ZedBootstrap.php(71): Spryker\Zed\Application\Communication\ZedBootstrap->setUp()
#6 /data/public/Zed/index.php(21): Spryker\Zed\Application\Communication\ZedBootstrap->boot()
#7 {main}
YVES Exception
Error - Class 'Whoops\Run' not found
in /data/vendor/spryker/error-handler/src/Spryker/Yves/ErrorHandler/Plugin/Application/ErrorHandlerApplicationPlugin.php (48)
*Url:*/
Trace:
#0 /data/vendor/spryker/error-handler/src/Spryker/Yves/ErrorHandler/Plugin/Application/ErrorHandlerApplicationPlugin.php(37): Spryker\Yves\ErrorHandler\Plugin\Application\ErrorHandlerApplicationPlugin->registerPrettyErrorHandler()
#1 /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(81): Spryker\Yves\ErrorHandler\Plugin\Application\ErrorHandlerApplicationPlugin->provide(Object(Spryker\Yves\Kernel\Application))
#2 /data/vendor/spryker-shop/shop-application/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php(95): Spryker\Shared\Application\Application->registerApplicationPlugin(Object(Spryker\Yves\ErrorHandler\Plugin\Application\ErrorHandlerApplicationPlugin))
#3 /data/vendor/spryker-shop/shop-application/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php(60): SprykerShop\Yves\ShopApplication\YvesBootstrap->setupApplication()
#4 /data/public/Yves/index.php(21): SprykerShop\Yves\ShopApplication\YvesBootstrap->boot()
#5 {main}
full-rocket-52349
02/05/2021, 10:28 AMhallowed-coat-68810
02/05/2021, 12:40 PM$config[TranslatorConstants::TRANSLATION_ZED_FILE_PATH_PATTERNS] = [
APPLICATION_ROOT_DIR . '/vendor/test/payment/data/translation/Zed/[a-z][a-z]_[A-Z][A-Z].csv',
];
Anyone, please share your valuable feedback here.
Thanks in advance.hallowed-coat-68810
02/05/2021, 3:33 PMsilly-motherboard-93855
02/09/2021, 10:05 AM$blockNames = ['Test Block Name'];
$rendererPlugin = new CmsBlockContentWidgetPlugin(new CmsContentWidgetCmsBlockConnectorConfigurationProvider());
$renderedContent = $rendererPlugin->contentWidgetFunction($this->getTwig(),['cmsContent' => []],$blockNames);
Can anyone help me understand what is missing here to reuse the cms_block
widget renderer?wonderful-pizza-81714
02/09/2021, 1:44 PMspryker.sh
which only task is to run curl <http://cli:9000/console>
just to run cli.sh
as far as I understand just to run queue:worker:start
.
What's the reason for such cumbersome approach?wonderful-pizza-81714
02/09/2021, 2:00 PMmailcatcher
I see a lot of records like this:
[services] [mailcatcher] - 2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Starting session 2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] [PROTO: INVALID] Started session, switching to ESTABLISH state
2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Sent 35 bytes: '220 mailhog.example ESMTP MailHog\r\n'
2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Connection closed by remote host
2021/02/09 13:54:40 [SMTP 127.0.0.1:34439] Session ended
But there're no messages in mail.spryker.local
(inbox: 0)
Is it supposed to be so? Is INVALID
in the quote above ok?mysterious-pencil-76046
02/11/2021, 9:16 AMrun_on_non_production
in cronjob definitions. But this does not work anymore with scheduler module shipped by spryker. vendor/spryker/setup/src/Spryker/Zed/Setup/Business/Model/Cronjobs.php
is marked to be deprecated meanwhile and is still not used anymore.
Of course, i could check APPLICATION_ENV in config/Zed/cronjobs/jenkins.php
and set enable
accordingly. Should this be the "right" way?gentle-journalist-88390
02/12/2021, 11:28 AMwide-wolf-99519
02/12/2021, 11:47 AMSpryker\Zed\Oms\Dependency\Plugin\Command\CommandByOOrder
contain?
Docs and docblock seem to omit that piece of information
https://documentation.spryker.com/docs/t-oms-and-state-machines-spryker-commerce-osmammoth-painting-63509
02/12/2021, 2:26 PMsubprocess
it fails: http://spryker.local/oms/index/draw?process=subprocess&format=svg&font=14&state=
Call to a member function draw() on null
wide-wolf-99519
02/15/2021, 9:51 AMbrief-vegetable-71114
02/15/2021, 4:08 PMbrash-lifeguard-38692
02/16/2021, 3:51 PMtestcafe
locally?blue-engine-990
02/16/2021, 4:27 PMmammoth-painting-63509
02/17/2021, 3:43 PMrapid-night-92661
02/17/2021, 4:32 PMpolite-lunch-97479
02/18/2021, 6:53 AMssl
option. What's the recommended way to make the filesystem use port 22?polite-lunch-97479
02/18/2021, 7:15 AMCould not connect to host: <http://foo.host.com|foo.host.com>, port:22
Does the filesystem support SFTP at all? Or is it always FTPS?mammoth-painting-63509
02/18/2021, 12:42 PMorder_nr,position,article_numer
123,1,article1
123,2,article2
123,3,article3
What's the best way to solve this?astonishing-lamp-41374
02/19/2021, 3:09 AMpublic function getMap(): array
{
return [
static::ROOT_PRODUCT_CONCRETE_KEY => [
'item',
'itemMap' => [
ProductConcreteHydratorStep::COLUMN_CONCRETE_SKU => '@sku', // here
...
],
];
}
Which in turn has an execute function
public function execute(DataSetInterface $dataSet): void
{
$this->importProduct($dataSet);
...
}
Which in turn has this import product function
protected function importProduct(DataSetInterface $dataSet): void
{
$productEntityTransfer = new SpyProductEntityTransfer();
$productEntityTransfer->setSku($dataSet[static::COLUMN_CONCRETE_SKU]);
$productEntityTransfer->setFkProductAbstract($dataSet[static::COLUMN_ABSTRACT_SKU]); // I added this...
$productEntityTransfer
->setIsActive($dataSet[static::KEY_IS_ACTIVE] ?? true)
->setAttributes(json_encode($dataSet[static::KEY_ATTRIBUTES]));
...
$dataSet[static::DATA_PRODUCT_CONCRETE_TRANSFER] = $productEntityTransfer;
}
I added this setFKProductAbstract, but I'm guessing there is more here... I was originally thinking I would need to create another function... say addProductAbstractRelation
and within that function create a Relation Spy that could transfer data to the concrete product... question is which of these methods is closer to what I actually need to do? Let me know if anyone has an insight there or if you need more information. Cheerspolite-lunch-97479
02/19/2021, 10:43 AMpolite-lunch-97479
02/19/2021, 12:34 PMambitious-alligator-61938
02/19/2021, 4:09 PMPyz/Shared/Search/Schema/page.json
When I try to run command:
console search:setup:sources
i get following error
Exception: analyzer [synonym_analyzer] not found for field [full-synonym]
page.json file looks as follows:
{
"settings": {
"analysis": {
"analyzer": {
"fulltext_index_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase",
"fulltext_index_ngram_filter"
]
},
"fulltext_search_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase"
]
},
"synonym_analyzer": {
"tokenizer": "standard",
"filter": [
"synonym"
]
}
},
"filter": {
"fulltext_index_ngram_filter": {
"type": "edge_ngram",
"min_gram": 2,
"max_gram": 20
},
"synonym": {
"type": "synonym",
"synonyms": [
"sahne, schlagsahne",
"sahne, h-schlagsahne",
"sahne, schlagrahm",
"apfel, äpfel",
"küchenrolle, küchenrollen",
"küchenrolle, haushaltstücher"
]
}
}
}
},
"mappings": {
"page": {
"properties": {
"full-text": {
"analyzer": "fulltext_index_analyzer",
"search_analyzer": "fulltext_search_analyzer"
},
"full-text-boosted": {
"analyzer": "fulltext_index_analyzer",
"search_analyzer": "fulltext_search_analyzer"
},
"full-synonym": {
"type": "text",
"analyzer": "synonym_analyzer",
"search_analyzer": "fulltext_search_analyzer"
}
}
}
}
}
Also do I need to create new plugin for synonyms and expand search query?ancient-apartment-59274
02/22/2021, 11:26 AMgetCustomerOrderByOrderReference()
in SalesFacadeInterface
will always return an OrderTransfer
even it is has not found a corresponding entity in the database… does this have a deeper meaning? Is the transfer object also responsible for representing the abscent of the data by just omitting the data?
I ask because i never found a counter example that returns null instead. For me its a bit misleading when asking a client or what else for data that can be abscent in fact but the corresponding method will in any case return a transfer object but it is empty. The clients “client” has to look now if the data in it is empty instead of just checking that the return value was null … i could imagine that some developer is not aware of that. Is there a spryker convention on that that we can/should follow?
Best regards