(Issue described in abstract below, sceenshot below that)
I have a tree of objects I want users to be able to path through in the viewer UI. I’m using the “elements” array item field, so my understanding is the viewer should read this as a tree that you expand in the viewer.
As some of this data are simple enums, the objects within this tree resolve into the same hash when serialised.
collection/
├─ element1/
│ ├─ hash1
│ ├─ hash2
├─ element2/
│ ├─ hash1
│ ├─ hash3
├─ element3/
│ ├─ hash1
│ ├─ hash4
When the child objects (element1, etc) are viewed in isolation, I can see both their children. However, when viewed from the commit root, objects with an identical hash are only rendered once:
collection/
├─ element1/
│ ├─ hash1
│ ├─ hash2
├─ element2/
│ ├─ hash3
├─ element3/
│ ├─ hash4
This isn’t ideal as it means that in order to render the tree like my users would expect, with all child elements, I’d need to add some arbitrary data to each object to enforce a unique hash.
Image below: