What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Quick question - we're looking at upgrading our Wishlist Rest API module to 1.6.0 from 1.4.3 and we'
Quick question - we're looking at upgrading our Wishlist Rest API module to 1.6.0 from 1.4.3 and we've noticed that in the src/Spryker/Zed/WishlistsRestApi/Business/WishlistItem/WishlistItemDeleter.php
on line 53 we're requiring the UUID of a Wishlist item - but wishlist items don't seem to have a UUID.
I believe previously this was checking whether a SKU had been provided which seems correct. Just wondering if this is a bug (I don't see any table schema changes related to this in this diff - https://github.com/spryker/wishlists-rest-api/compare/1.4.3...1.6.0 that would add a UUID column to the spy_wishlist_item
table)?
Comments
-
It seems the Uuid it was already in that earlier version. There is a console command (WishlistsUuidWriterConsole.php) which will generate and add uuid where missing
0 -
That command is deprecated in favour of using
UuidGeneratorConsole
which when run against that table returns an error to say there is no field in the table for UUID? π€0 -
(exact message -
Table spy_wishlist_item does not contain uuid field
)0 -
Perhaps thereβs a missing schema change in the Wishlist module (for context iβm working with @U017Y69D9U4 π )
0 -
the uuid behavior is added to the spy_wishlist table, not the spy_wishlist_item table
0 -
Yes that's correct - but in
WishlistItemDeleter
in the latest version Spryker seems to be checking for a UUID on the wishlist item0 -
src/Spryker/Zed/WishlistsRestApi/Business/WishlistItem/WishlistItemDeleter.php:53
0 -
$wishlistItemRequestTransfer->requireIdCustomer() ->requireUuidWishlist() ->requireUuid();
0 -
Whereas in the previous version of this module, it was:
$wishlistItemRequestTransfer->requireIdCustomer() ->requireUuidWishlist() ->requireSku();
0 -
Perhaps this was added erroneously if it's not meant to be on the wishlist item π :
0 -
Yes, that seems a bug then
0 -
Cool, I'll submit a bug report π
0 -
Which might lead me to the next question - this seems to have changed since I last raised a bug report - where do I now need to go to raise a bug ticket? π
0 -
@UQKSAARKN can you confirm please if this is really an issue?
0 -
It looks like it was this commit which introduced it (at least on the transfer object):
https://github.com/spryker/wishlists-rest-api/commit/08743e00c118aba94334a05b4d678f55da385f69
And instead of using a UUID, we're just setting a SKU string into it
0 -
Yep, wanted to ask @U0140NZMDTN as well but he looks like offline.
0 -
Hey, Guys!
It's not real UUID, it is identifier (for wishlist item = SKU)
Check GLUE layer:\Spryker\Glue\WishlistsRestApi\Processor\WishlistItems\WishlistItemDeleter::createWishlistItemRequest
$wishlistUuid = $resource->getId(); return (new WishlistItemRequestTransfer()) ->setUuid($idResource) ->setUuidWishlist($wishlistUuid) ->setIdCustomer($surrogateIdentifier);
0 -
Isn't that a bit misleading? Wouldn't it read better as SKU which is what is expected, rather than a UUID?
0 -
Yes, I totally agreed, but we have to support some related features (and SKU can't be unique reference):
β’ InProduct Offer
feature we concatenateSKU+offer-reference
and set it toUUID
β’ InConfigurable product
feature we concatenateSKU+configurable_product_hash
and set it toUUID
But for other cases (concrete products) - we setSKU
toUUID
0 -
Seems then that we are therefore mis-using the term UUID elsewhere - perhaps a field called
uniqueIdentifier
would be better thanUUID
? π0 -
Yes, you are right π
But for now, we couldn't rename it in order to keep BC0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random