Describe the bug
Add/Delete/Rename a container when we declare a nested attribute reference attribute won't work.
To reproduce the bug, add an Object attribute above reference attribute in the demo metadata and parser and can reproduce it.
Notes:
It's a complexe task, because we have to rework on finding container/children, create nested object if its not exists.
Partial list of method to rework:
DefaultData.getChildren: only check root attributes, need to find nested attributes.
Component.setReferenceAttribute: only check root attributes, need to find nested attributes and create parents if its not exists.
Component.removeAllReferenceAttributes only remove root attribute need to remove the wanted nested child attributes.
Component.getContainerId only look reference from root attributes, need to check children too.
⚠️ May be you have to change some call in DefaultDrawer to make it work.
Describe the bug
Add/Delete/Rename a container when we declare a nested attribute reference attribute won't work.
To reproduce the bug, add an Object attribute above reference attribute in the demo metadata and parser and can reproduce it.
Notes:
It's a complexe task, because we have to rework on finding container/children, create nested object if its not exists.
Partial list of method to rework:
DefaultData.getChildren: only check root attributes, need to find nested attributes.Component.setReferenceAttribute: only check root attributes, need to find nested attributes and create parents if its not exists.Component.removeAllReferenceAttributesonly remove root attribute need to remove the wanted nested child attributes.Component.getContainerIdonly look reference from root attributes, need to check children too.