Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create/Delete/Rename Nested reference attribute #209

Open
Zorin95670 opened this issue Aug 11, 2023 · 0 comments
Open

Create/Delete/Rename Nested reference attribute #209

Zorin95670 opened this issue Aug 11, 2023 · 0 comments
Labels
Bug Something isn't working

Comments

@Zorin95670
Copy link
Member

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.

@Zorin95670 Zorin95670 added the Bug Something isn't working label Aug 11, 2023
@Zorin95670 Zorin95670 changed the title Create/Delete/Rename Nested attribute container Create/Delete/Rename Nested reference attribute Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant