Skip to content

why does the RelationValue serializer not add the UID of the item? #1585

@fredvd

Description

@fredvd

in tnis part of the Serializer ISerializeToJsonSummary is looked up. the problem for me with the default implementation is that it only serializes the absolute_url in the json response, not the UID()

This is probably fine for the volto frontend.. But on deserialisation it has to do a restrictedtraverse to the target item, and it has the full url with the website domain embedded in the id. I am trying to add support for restoring relationValues better in collecfive. importexport and the UID is much better suited there.

The funny thing is that the deserializer already supports just uids and relative paths from the site root in the id key.

(value.to_object, getRequest()), ISerializeToJsonSummary

@sneridagh @avoinea may I ask your advice? just add it to the ISerializeToJsonSummary ?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions