feat: add force mode to skip failing objects during import

- Force mode rolls back each failing object via a savepoint, skips it
  with a warning and continues instead of aborting the whole import.
  Unresolvable references and deferred phases (relations, custom field
  values, rack placements, many-to-many, cable paths) are guarded too.
- Skip records with dangling generic references instead of writing NULL
  into non-nullable columns (e.g. NetBox Documentation assignments).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-19 13:59:45 +02:00
1 parent b947df022b
commit 5fd246edb8
5 files changed
+226 -14

No files matched your search

+1
View File
@@ -78,6 +78,7 @@ class DashboardView(UserPassesTestMixin, View):
parsed,
conflict_strategy=form.cleaned_data["conflict_strategy"],
dry_run=form.cleaned_data["dry_run"],
force=form.cleaned_data["force"],
)
except ExportImportError as exc:
form.add_error(None, str(exc))