An element is missing its ancestors in new ElementPaths
@Chaza_Abdelwahab used arkindex upload iiif
to create a folder hierarchy from IIIF images (cli#33 (closed)). This is the expected folder structure:
@startmindmap
- mcit-data
-- HWR_annotation_set_2021_07
++ Complex
++ Regular
++ Simple
@endmindmap
However, when listing the children elements of mcit-data
, only Regular
and Simple
were visible. Complex
was only visible with the recursive filter. When opening Complex
in the frontend, the path was missing HWR_annotation_set_2021_07
:
Those are the ElementPaths found in the DB:
name | path | ordering |
---|---|---|
Complex | mcit-data | 0 |
Regular | HWR_annotation_set_2021_07, mcit-data | 1 |
Simple | HWR_annotation_set_2021_07, mcit-data | 2 |
This might be a stale read where mcit-data
's own paths were not yet replicated, causing add_parent
to not prepend anything to the paths of Complex
. But Element.add_parent
is wrapped in a transaction that forces the use of the primary DB, so something fishier than usual is going on.