mysterious-king-59256
12/20/2021, 12:29 PMlittle-secretary-81579
12/22/2021, 7:36 AM<transfer name="Foo" strict="true">
<property name="bar" type="Bar">
</transfer>
<transfer name="Bar" strict="true">
</transfer>
It will create a transfer Foo
containing a property bar
, that can be of type Bar|null
. This is as expected.
However Foo::fromArray
will do Foo::assertInstanceOfTransfer
on property bar
, which will throw an exception, if bar
is null. This is not expected.
Does somebody know, whether there is a bug or we use this feature in a wrong way?
Thanks in advance.clean-salesmen-47464
12/22/2021, 1:19 PMbumpy-football-42265
12/22/2021, 2:24 PMpurple-coat-90835
12/22/2021, 3:38 PM@import '~bootstrap-sass/assets/stylesheets/bootstrap';
^
File to import not found or unreadable: ~bootstrap-sass/assets/stylesheets/bootstrap.
in /data/vendor/spryker/gui/assets/Zed/sass/main.scss (line 11, column 1)
...
@import '~jstree/dist/themes/default/style';
^
File to import not found or unreadable: ~jstree/dist/themes/default/style.
in /data/vendor/spryker/file-manager-gui/assets/Zed/sass/main.scss (line 6, column 1)
These are dependencies that are included in the core module's package.json (like https://github.com/spryker/gui/blob/master/assets/Zed/package.json)
From my understanding they should install automatically by running
docker/sdk console frontend:project:install-dependencies
This could be solved by adding the dependencies to our root package.json but I guess this is not how it is supposed to work. 🙂
Any ideas where to look at for this?
We're using:
webpack v4.27.1
spryker/oryx v1.4.0
spryker/oryx-for-zed v2.11.3
spryker/setup-frontend v1.7.0
spryker/gui v3.41.2best-furniture-89489
12/22/2021, 4:13 PMlittle-secretary-81579
12/23/2021, 9:56 AMPyz/Zed/IndexGenerator/Persistence/Propel/Schema
where missing indices will be defined.
However when you run the IndexGenerator once again, it will delete those files. I assume this happens, because IndexGenerator will find the indices already exist in the database and hence no additional files are required.
So far we used to put the generated files under version control, but I think there is a misunderstanding on our end.
How is the intended way to use the IndexGenerator? Would it be the intended way to copy the schema files or their content into the specific module folders the files belong to?
Happy about any advice 🙂mammoth-painting-63509
12/28/2021, 3:07 PMspryker/discount
module and therefore need also to upgrade the spryker/gui
module. The command to build the frontend is failing now after the upgrade:
$ docker/sdk cli npm run zed:build
[...]
♈ @spryker/oryx 1.4.0
♈ @spryker/oryx 1.4.0
♈ @spryker/oryx-for-zed 2.8.1
[...]
build
● using webpack 4.41.6
● building assets...
● webpack output:
ERROR in ./vendor/spryker/discount/assets/Zed/js/modules/main.js 64:53
Module parse failed: Unexpected token (64:53)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
| var $inputTo = $('#discount_discountGeneral_valid_to');
| var defaultDateFormat = 'd.m.Y H:i';
> var inputFromFormat = $inputFrom.data('format') ?? defaultDateFormat;
| var inputToFormat = $inputTo.data('format') ?? defaultDateFormat;
|
@ ./vendor/spryker/discount/assets/Zed/js/spryker-zed-discount-main.entry.js 8:0-25
✘ build failed
I didn't find anything in the docs regarding this. What is the best solution for this problem? Do we need to upgrade our nodejs version? Or use a babel plugin like babel/plugin-proposal-nullish-coalescing-operator
(docs) in our project?mysterious-alarm-44228
12/29/2021, 8:34 AMfuture-park-14208
12/30/2021, 1:08 PMjolly-night-88032
01/03/2022, 11:52 AMlimited-electrician-1458
01/04/2022, 11:57 AMlimited-electrician-1458
01/04/2022, 12:28 PMripe-librarian-883
01/05/2022, 2:12 PM{
"data": [],
"links": {
"self": "http://glue.de.spryker.local/guest-carts?include=guest-cart-items"
}
}
$ curl -X POST "http://glue.de.spryker.local/guest-cart-items" -H "accept: application/json" -H "X-Anonymous-Customer-Unique-Id: 164b-5708-8531" -H "Content-Type: application/json" -d "{\"data\":{\"type\":\"guest-cart-items\",\"attributes\":{\"sku\":\"055_29406184\",\"quantity\":1}}}"
{
"data": {
"type": "guest-carts",
"id": "c70df0e4-78e7-5b0a-a390-1a94e5752923",
"attributes": {
"priceMode": "GROSS_MODE",
"currency": "EUR",
"store": "DE",
"totals": {
"expenseTotal": 0,
"discountTotal": 1914,
"taxTotal": 2750,
"subtotal": 19137,
"grandTotal": 17223,
"priceToPay": 17223
},
"discounts": [
{
"displayName": "10% Discount for all orders above",
"amount": 1914,
"code": null
}
]
},
"links": {
"self": "http://glue.de.spryker.local/guest-carts/c70df0e4-78e7-5b0a-a390-1a94e5752923"
}
}
}
$ curl -X GET "http://glue.de.spryker.local/guest-carts/?include=guest-cart-items" -H "accept: application/json" -H "X-Anonymous-Customer-Unique-Id: 164b-5708-8531"
{
"data": [
{
"type": "guest-carts",
"id": "c70df0e4-78e7-5b0a-a390-1a94e5752923",
"attributes": {
"priceMode": "GROSS_MODE",
"currency": "EUR",
"store": "DE",
"totals": {
"expenseTotal": 0,
"discountTotal": 1914,
"taxTotal": 2750,
"subtotal": 19137,
"grandTotal": 17223,
"priceToPay": 17223
},
"discounts": [
{
"displayName": "10% Discount for all orders above",
"amount": 1914,
"code": null
}
]
},
"links": {
"self": "http://glue.de.spryker.local/guest-carts/c70df0e4-78e7-5b0a-a390-1a94e5752923?include=guest-cart-items"
},
"relationships": {
"guest-cart-items": {
"data": [
{
"type": "guest-cart-items",
"id": "055_29406184"
}
]
}
}
}
],
"links": {
"self": "http://glue.de.spryker.local/guest-carts?include=guest-cart-items"
},
"included": [
{
"type": "guest-cart-items",
"id": "055_29406184",
"attributes": {
"sku": "055_29406184",
"quantity": 1,
"groupKey": "055_29406184",
"abstractSku": "055",
"amount": null,
"calculations": {
"unitPrice": 19137,
"sumPrice": 19137,
"taxRate": 19,
"unitNetPrice": 0,
"sumNetPrice": 0,
"unitGrossPrice": 19137,
"sumGrossPrice": 19137,
"unitTaxAmountFullAggregation": 2750,
"sumTaxAmountFullAggregation": 2750,
"sumSubtotalAggregation": 19137,
"unitSubtotalAggregation": 19137,
"unitProductOptionPriceAggregation": 0,
"sumProductOptionPriceAggregation": 0,
"unitDiscountAmountAggregation": 1914,
"sumDiscountAmountAggregation": 1914,
"unitDiscountAmountFullAggregation": 1914,
"sumDiscountAmountFullAggregation": 1914,
"unitPriceToPayAggregation": 17223,
"sumPriceToPayAggregation": 17223
},
"selectedProductOptions": []
},
"links": {
"self": "http://glue.de.spryker.local/guest-carts/c70df0e4-78e7-5b0a-a390-1a94e5752923/guest-cart-items/055_29406184"
}
}
]
}
B2B - NOT OK:
$ curl -X GET "http://glue.de.spryker.local/guest-carts/" -H "accept: application/json" -H "X-Anonymous-Customer-Unique-Id: 164b-5708-8531"
{
"data": [],
"links": {
"self": "http://glue.de.spryker.local/guest-carts"
}
}
$ curl -X POST "http://glue.de.spryker.local/guest-cart-items" -H "accept: application/json" -H "X-Anonymous-Customer-Unique-Id: 164b-5708-8531" -H "Content-Type: application/json" -d "{\"data\":{\"type\":\"guest-cart-items\",\"attributes\":{\"sku\":\"M24637\",\"quantity\":1}}}"
{
"errors": [
{
"detail": "Missing access token.",
"status": 403,
"code": "002"
}
]
}
$ curl -X GET "http://glue.de.spryker.local/guest-carts/" -H "accept: application/json" -H "X-Anonymous-Customer-Unique-Id: 164b-5708-8531"
{
"data": [],
"links": {
"self": "http://glue.de.spryker.local/guest-carts"
}
}
numerous-kitchen-79937
01/07/2022, 10:27 AMgentle-vegetable-74963
01/10/2022, 8:54 AMextendCookieLifetime
does not exist in the new application plugin https://github.com/spryker/session/blob/master/src/Spryker/Yves/Session/Plugin/ServiceProvider/SessionServiceProvider.php#L76numerous-kitchen-79937
01/10/2022, 2:48 PMsilly-potato-43576
01/12/2022, 3:44 PMfast-crayon-59764
01/14/2022, 4:29 AMbrave-greece-35840
01/14/2022, 9:50 AMPropel\Runtime\ActiveQuery\QueryExecutor\QueryExecutionException thrown with message "Unable to execute statement [SELECT FROM `spy_cms_slot` INNER JOIN spy_cms_slot_to_cms_slot_template ON (`spy_cms_slot`.`id_cms_slot`=spy_cms_slot_to_cms_slot_template.fk_cms_slot) WHERE spy_cms_slot_to_cms_slot_template.fk_cms_slot_template=:p1 ORDER BY `spy_cms_slot`.`id_cms_slot` ASC LIMIT 10]"
Stacktrace:
#18 Propel\Runtime\ActiveQuery\QueryExecutor\QueryExecutionException in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/QueryExecutor/AbstractQueryExecutor.php:136
#17 Propel\Runtime\ActiveQuery\QueryExecutor\AbstractQueryExecutor:handleStatementException in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/QueryExecutor/AbstractQueryExecutor.php:105
#16 PDOException in /data/vendor/propel/propel/src/Propel/Runtime/Connection/StatementWrapper.php:215
#15 PDOStatement:execute in /data/vendor/propel/propel/src/Propel/Runtime/Connection/StatementWrapper.php:215
#14 Propel\Runtime\Connection\StatementWrapper:execute in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/QueryExecutor/AbstractQueryExecutor.php:103
#13 Propel\Runtime\ActiveQuery\QueryExecutor\AbstractQueryExecutor:executeStatement in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/QueryExecutor/SelectQueryExecutor.php:49
#12 Propel\Runtime\ActiveQuery\QueryExecutor\SelectQueryExecutor:runSelect in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/QueryExecutor/SelectQueryExecutor.php:37
#11 Propel\Runtime\ActiveQuery\QueryExecutor\SelectQueryExecutor:execute in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/Criteria.php:2322
#10 Propel\Runtime\ActiveQuery\Criteria:doSelect in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php:2211
#9 Propel\Runtime\ActiveQuery\ModelCriteria:doSelect in /data/vendor/propel/propel/src/Propel/Runtime/ActiveQuery/ModelCriteria.php:1243
#8 Propel\Runtime\ActiveQuery\ModelCriteria:find in /data/vendor/spryker/gui/src/Spryker/Zed/Gui/Communication/Table/AbstractTable.php:964
#7 Spryker\Zed\Gui\Communication\Table\AbstractTable:runQuery in /data/vendor/spryker/cms-slot-gui/src/Spryker/Zed/CmsSlotGui/Communication/Table/SlotTable.php:200
#6 Spryker\Zed\CmsSlotGui\Communication\Table\SlotTable:prepareData in /data/vendor/spryker/gui/src/Spryker/Zed/Gui/Communication/Table/AbstractTable.php:1026
#5 Spryker\Zed\Gui\Communication\Table\AbstractTable:fetchData in /data/vendor/spryker/cms-slot-gui/src/Spryker/Zed/CmsSlotGui/Communication/Controller/SlotListController.php:31
#4 Spryker\Zed\CmsSlotGui\Communication\Controller\SlotListController:tableAction in /data/vendor/symfony/http-kernel/HttpKernel.php:152
#3 Symfony\Component\HttpKernel\HttpKernel:handleRaw in /data/vendor/symfony/http-kernel/HttpKernel.php:74
#2 Symfony\Component\HttpKernel\HttpKernel:handle in /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:132
#1 Spryker\Shared\Application\Application:handle in /data/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:110
#0 Spryker\Shared\Application\Application:run in /data/public/Backoffice/index.php:22
happy-addition-42792
01/14/2022, 9:56 AMancient-apartment-59274
01/14/2022, 1:43 PMCartOperationPostSavePluginInterface
which is described as
* Specification:
* - This plugin stack is executed after add and remove operations.
* - Returned modified quote is ready to be stored on Client side.Unfortunately this doesn’t seem to be true since on
Operation
class beside removeFromCart()
and addToCart()
it is also called in reloadItemsInQuote()
which does not match the promised behaviour in the specification of the interface. reloadItemsInQuote()
therefore is also called when there was no change on quote (like on login).
public function reloadItemsInQuote(QuoteTransfer $quoteTransfer):
QuoteResponseTransfer
{
...
$quoteTransfer = $this->executePostSavePlugins($quoteTransfer);
...
}
However we found also a QuoteChangeObserverPluginInterface
where we could compare the new and the old QuoteTransfer by ourself but this becomes really unnecessary overhead since in our case we would have to compare all existing items against each other to detect a quantity change for example …
Do we miss something here? So basically we want to react whenever a new item was added, an existing was removed or the quantity of any item was changed.
Best regardsmysterious-ambulance-11183
01/14/2022, 3:26 PMsilly-lawyer-82804
01/17/2022, 7:36 AM<link type="image/png" rel="shortcut icon" href="/assets/static/images/favicon.png">
<link type="image/png" rel="mask-icon" color="white" href="/assets/static/images/favicon.png">
<link type="image/png" rel="icon" href="/assets/static/images/favicon.png">
<link type="image/png" rel="apple-touch-icon" sizes="57x57" href="/assets/static/images/favicon_57.png">
<link type="image/png" rel="apple-touch-icon" sizes="60x60" href="/assets/static/images/favicon_60.png">
<link type="image/png" rel="apple-touch-icon" sizes="114x114" href="/assets/static/images/favicon_114.png"><link type="image/png" rel="apple-touch-icon" sizes="120x120" href="/assets/static/images/favicon_120.png"><link type="image/png" rel="apple-touch-icon" sizes="180x180" href="/assets/static/images/favicon_180.png">
Does anybody know how to make it work on Safari?boundless-controller-44328
01/17/2022, 11:17 AMsquare-bear-35946
01/18/2022, 12:33 PMdata/import/common/common/navigation_node.csv
. After running docker/sdk console data:import:navigation-node
it says that it loaded the file. I do not see the changes however on the frontend (http://yves.de.spryker.local/). I there a cache to clear, or am I missing something else?square-bear-35946
01/18/2022, 2:45 PMfrontend/static/images
but am not able to access it in the frontend via http://yves.de.spryker.local/assets/static/images/34514543.png▾
docker/sdk console sync:data
and docker/sdk console cache:empty-all
but still are unable to see my asset. Can anyone help me please?square-bear-35946
01/18/2022, 2:46 PMTHE REQUEST SEEMS TO WRONG AND CANNOT BE PROCESSED!
W W W
W W W W
'. W
.-""-._ \ \.--|
/ "-..__) .-'
| _ /
\'-.__, .__.,'
`'----'._\--'
VVVVVVVVVVVVVVVVVVVVV
numerous-kitchen-79937
01/18/2022, 4:48 PMmysterious-ambulance-11183
01/21/2022, 10:20 AM