Using "relationships" within "parents" in a hierarchy builder fails when there is more than one level

Description

In the data importer, in a hierarchy builder, using refinery options with "relationships" on specific "parents" where there's more than one parent, results in improper application of relationships due to misalignment of options with parent entries. An example configuration exhibiting the issue is:

"{""matchOn"":[""label"",""idno""],
""parents"": [{
""idno"": ""%"",
""name"": ""^24"",
""type"": ""folder"",
""attributes"": {
""description"": ""^26""
},
""relationships"": [{
""relatedTable"": ""ca_storage_locations"",
""type"": ""location"",
""relationshipType"": ""current"",
""idno"": ""^25"",
""preferred_labels"": ""Box ^25""
}]
}, {
""idno"": ""^20"",
""name"": ""^21"",
""type"": ""subsubseries"",
""attributes"": {
""scopecontent"": ""^22""
}
},
{
""idno"": ""^8"",
""name"": ""^9"",
""type"": ""subseries"",
""attributes"": {
""adminbiohist"": ""^10"",
""scopecontent"": ""^11"",
""coverageDates"": ""^12"",
""arrangement"": ""^13"",
""internal_notes"": ""^14"",
""keywords"": ""^16"",
""see_also"":

}
},
{
""idno"": ""^4"",
""name"": ""^5"",
""type"": ""series"",
""attributes"": {
""see_also"":

}

},

{
""idno"": ""^2"",
""name"": ""^3"",
""type"": ""recordgrp""
},
{
""idno"": ""%"",
""name"": ""^1"",
""type"": ""collection""
}
]
}"

Environment

None
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Seth

Reporter

Talya Cooper