fluree / db

Fluree database library
https://fluree.github.io/db/
Other
333 stars 21 forks source link

fix flake meta json serialization #720

Closed dpetran closed 5 months ago

dpetran commented 5 months ago

Fixes https://github.com/fluree/core/issues/91

Serializing a flake with meta would incorrectly override the op value of the flake. This fixes that.

old, incorrect: (serialize-flake #Flake [211106232533006 1008 "two" 1 -4 true {:i 2}]) [211106232533006 1008 "two" 1 -4 {"i" 2} {:i 2}]

new, correct: (serialize-flake #Flake [211106232533006 1008 "two" 1 -4 true {:i 2}]) [211106232533006 1008 "two" 1 -4 true {"i" 2}]

This was causing list values to be materialized on load in an arbitrary order, which was sometimes correct, sometimes not.

dpetran commented 5 months ago

This may fix https://github.com/fluree/core/issues/75 as well.

dpetran commented 5 months ago

This may fix https://github.com/fluree/core/issues/74 as well