Skip to content
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

Add image_scales support for RealContentListingObject #64

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

davisagli
Copy link
Sponsor Member

Fixes plone/plone.volto#141

Sometimes an IContentListingObject adapter is looked up for a full content object instead of a catalog brain. This gets the RealContentListingObject adapter. For example, this happens in plone.restapi when serializing a relation field value.

RealContentListingObject was missing support for the image_scales field. This adds it, by calling the same adapter that is used to get the value for the catalog indexer.

@davisagli davisagli requested a review from sneridagh April 2, 2024 00:00
@mister-roboto
Copy link

@davisagli thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@davisagli
Copy link
Sponsor Member Author

@jenkins-plone-org please run jobs

@davisagli davisagli merged commit c99c7f8 into master Apr 2, 2024
13 checks passed
@davisagli davisagli deleted the image-scales branch April 2, 2024 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

volto.preview_image_link does not work OOTB
3 participants