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

image_scales in serializer are returned as json_compatible format #1772

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

cekk
Copy link
Member

@cekk cekk commented Apr 3, 2024

This lead to problems when for example we have a custom service that serialize some blocks and do not force a json_compatible formatting to the returned data.

I have a service that take some blocks, serialize them and return the result.
But image_scales are a PersistentMapping instance and breaks json formatting.

For content-types serialization or other services like @search this is not a problem because there is something that force json compatibility.

@cekk cekk requested a review from davisagli April 3, 2024 08:51
@mister-roboto
Copy link

@cekk 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!

Copy link

netlify bot commented Apr 3, 2024

Deploy Preview for plone-restapi canceled.

Name Link
🔨 Latest commit 586fbaa
🔍 Latest deploy log https://app.netlify.com/sites/plone-restapi/deploys/660d18dc382fe40008efc143

@cekk
Copy link
Member Author

cekk commented Apr 3, 2024

@jenkins-plone-org please run jobs

Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cekk Thanks, LGTM

@davisagli davisagli merged commit 848dff0 into main Apr 4, 2024
25 checks passed
@davisagli davisagli deleted the json_compatible_image_scales branch April 4, 2024 03:47
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.

4 participants