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:
1 parent
b947df022b
commit
5fd246edb8
5 files changed
+226
-14
No files matched your search
@@ -160,6 +160,12 @@ conflict strategy **Update** first uses the stored mapping of source instance,
|
||||
model and source ID; on a first import, existing objects are matched by their
|
||||
unique natural keys.
|
||||
|
||||
**Force mode** skips objects whose import fails (database errors, unresolvable
|
||||
references, failing plugin validation) instead of rolling back the whole
|
||||
import. Each failing object is rolled back individually via a savepoint and
|
||||
listed as a warning in the import report; references to it are omitted. The
|
||||
conflict strategy **Abort import** still aborts on existing objects.
|
||||
|
||||
### Behaviour and limits
|
||||
|
||||
- User accounts and permissions are not exported. Missing or ambiguous user and
|
||||
|
||||
Reference in new issue
Block a user