doxa icon indicating copy to clipboard operation
doxa copied to clipboard

normalisation suppressed if 1 entity is missing :id

Open stevebuik opened this issue 4 years ago • 0 comments

this works as expected

(->> {:id   "100"
            :name "Steve"
            :cars [{:id          "123"
                    :name        "Audi"}
                   {
                    :id          "124" ; <<<<< comment/remove this line
                    :name        "Ford"}
                   {:id          "125"
                    :name        "Tesla"}]}
           dx/normalize)

but if one of the cars has no id, the none of the cars are normalised.

is this intentional?

it would be better for dev/debug if the valid cars were still normalised.

maybe a log msg could indicate that one was skipped? not sure how log tooling works and if that's something you consider desirable?

stevebuik avatar Jan 19 '22 05:01 stevebuik