-
Couldn't load subscription status.
- Fork 0
IBX-6602: Used Content::getThumbnail directly for obtaining thumbnails #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
21d1e95 to
07f69fc
Compare
07f69fc to
2a66c5a
Compare
|
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA approved on IbexaDXP 4.5 commerce.
|
Looks good to me. Great PR description 10/10 :) |








https://issues.ibexa.co/browse/IBX-6602
Dropped
ContentThumbnailresolver usageThere is no need for it, as thumbnails can be obtained directly from Content::getThumbnail or User::getThumbnail.
Done this way, instead of doing user.getContent(), as accessing
contentfrom user object is deprecated.Fixed UserItem (and UserGroupItem)
As it had
type: "UserItem"but it was resolved tovalueit was not UserItem, but actual User object.Added Thumbnail for user object
As it is possible now, to obtain thumbnails by accessing content on user object like this:
{ content { folder(contentId: 81) { _contentInfo { owner { id content { _thumbnail { uri } } } } } } }accessing content on user is deprecated (since 6,10 ;) ), so new property was added to match php API
{ content { folder (contentId: 81) { id, _contentInfo { owner{ thumbnail { uri, }, } } } } }Fixed unpacking object to array:
resolve: "@=resolver('ContentTypesFromGroup', {'groupId': value.id})"This was just not working, and can be tested with
{ _repository { contentTypes { groups { contentTypes { name } } } } }