Skip to content

Create/Delete/Rename Nested reference attribute #209

Description

@Zorin95670

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions