Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/main Date: 2024-12-16T20:56:01-08:00 Author: Maurits van Rees (mauritsvanrees) <[email protected]> Commit: plone/plone.restapi@93ceb88 Make primary field target adapter return early. (#1851) * Make primary field target adapter return early. When there is no primary field, do not go through all fields. First compare the field name, then the permission: comparing two strings is cheaper. If the field name matches, stop iterating over other fields: you have already found the field. * Update news/1851.bugfix * Primary field target: get primary_field_name directly instead of iterating over all fields. * Run tests on ubuntu-22.04. This was ubuntu-latest until last week. With ubuntu-24.04 on Python 3.12 Pillow is not installed correctly. See plone/plone.restapi#1851 (comment) * Update src/plone/restapi/serializer/dxcontent.py --------- Co-authored-by: David Glick <[email protected]> Files changed: A news/1851.bugfix M .github/workflows/tests.yml M src/plone/restapi/serializer/dxcontent.py
- Loading branch information