You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
basically, normalization doesn't descend into collections of maps where the maps are not entities. The map inside of the vector doesn't contain a key whose name is id, which is why it's not considered an entity. This means normalization misses the entity identified by :d/id.
However, we do a second pass to replace entities with their references. This does descend into collections of maps even if they are not entities
I think what I'd like to do is replace these two functions with a single pass process that both adds entities to the db and replaces them with references, so that we can ensure the way that each collection is visited is the same so that we don't run into issues like this where we lose data.
Thank you for the report! I've added a failing test here: 972eceb
Hi,
I've noticed that in some cases pyramid normalisation replaces an entity with a reference but losses data of this entity.
Example:
The text was updated successfully, but these errors were encountered: