Fix denormalisation of single map (like) property fields

Created on 5 November 2021, about 3 years ago
Updated 21 April 2023, over 1 year ago

Problem/Motivation

I am working on a feature that denormalizes entity_type_behavior field, which turns out is problematic.

Steps to reproduce

Normalise and denormalise entity_type_behavior field or one that has a single property of type map.
I've provided automated test with existing test field.
This was painful for quite some time and various workarounds have been introduced, such as Compatibility with paragraph behaviors Fixed

Proposed resolution

Process the field value in the denormalisation method in a way that reverses the effects of the flatting done in the normalisation.
Do it in a safe way that avoids undesired effects.

Remaining tasks

Review

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

🐛 Bug report
Status

Needs work

Version

10.1

Component
JSON API 

Last updated 9 days ago

Created by

🇧🇬Bulgaria SimeonKesmev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024