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

Allow children models to be moved between parents without deletion/creation #122

Open
Kircheneer opened this issue Jul 6, 2022 · 1 comment
Labels
status: gathering feedback Further discussion is needed to determine this issue's scope and/or implementation type: enhancement

Comments

@Kircheneer
Copy link
Collaborator

Environment

  • DiffSync version: 1.4.3

Proposed Functionality

Currently, when a child model instance is moved from a parent model instance A to a parent model instance B, the child model instance will be deleted and re-created. This may cause problems, such as when the child model instance has further dependencies.

Use Case

Taking a single source of truth example with Nautobot specifically:

A tenant that has devices assigned moving between tenant group A and tenant group B, this will cause an exception currently, because the tenant cannot be deleted as long as it has devices or really anything assigned to it.

@Kircheneer Kircheneer added status: gathering feedback Further discussion is needed to determine this issue's scope and/or implementation type: minor feature labels Jul 6, 2022
@Kircheneer
Copy link
Collaborator Author

This would be solved if we simply remove the parent-child relationship as described in #255 as pointed out by @jamesharr in that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: gathering feedback Further discussion is needed to determine this issue's scope and/or implementation type: enhancement
Projects
None yet
Development

No branches or pull requests

1 participant