networktocode/diffsync

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

Kircheneer opened this issue · 1 comments

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.

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