Skip to content

Conversation

@aryan7081
Copy link

@aryan7081 aryan7081 commented Feb 7, 2026

Fixes #965

When a related item was deleted, the API returned relatedItems: [null] instead of [] because broken relations were still included. The fix filters by to_object so only resolvable relations are serialized and the API returns an empty list.


📚 Documentation preview 📚: https://plonerestapi--1979.org.readthedocs.build/

@mister-roboto
Copy link

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

@aryan7081
Copy link
Author

@jenkins-plone-org please run jobs

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.

null is returned for RelationList fields if the reference is gone

2 participants