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

elasticsearch can't serialize 6.1 volto data as it contains sets #116

Open
instification opened this issue Oct 4, 2024 · 0 comments · May be fixed by #117
Open

elasticsearch can't serialize 6.1 volto data as it contains sets #116

instification opened this issue Oct 4, 2024 · 0 comments · May be fixed by #117

Comments

@instification
Copy link
Member

instification commented Oct 4, 2024

plone.volto creates a custom index for block_types which returns a set. This doesn't cause any issues for the portal catalog but the data can't be directly serialized to json.

see: https://github.com/plone/plone.volto/blob/63715cca4f6dc9129f1d9ab4d2f7d068620ec2e7/src/plone/volto/indexers.py#L39-L48

The data seems to just be a simple list, and possibly the best fix might be to question why it is a set.

I have a PR which I will link that serializes sets to lists when indexing to es and resolves the issue

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 a pull request may close this issue.

1 participant