You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DiffSyncModel: Create/Update ordering and Delete ordering #97
This came up in internal conversations around usage and some potential improvements.
Potentially adding a flag that will set the create/update to process parents before children and then also the reverse, children are deleted before parents.
An example would be Nautobot and the dependencies of objects within Nautobot. Say you want to delete a site, but children objects exist such as devices, you need to delete the devices before deleting the site. This caused some intermittent and hard to troubleshoot scenarios.
It was brought up that some of these deletions would be deferred as well which may not be wanted.
Reacted by Glenn Matthews, brobare and Christian Adell
Activity
Kircheneer commentedon Mar 4, 2022
I had this scenario as well, for my use case (which might be generalizable) I have taken a approach similar to this:
I'll look into possibly contributing this once I have the approach fleshed out a little more.