Commit Graph
27 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 72e04fe086 feat(i18n): translate UI and import messages to English with German catalogue
English is now the source language for the dashboard, forms, menu, JavaScript progress texts and all import/export messages; a complete German catalogue ships as package data. Tenant-error detection also accepts the error code and the active-language message of netbox_utilities, and no longer imports netbox_utilities when it is installed but not enabled. A test keeps the README NetBox range in sync with min_version/max_version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 21:26:52 +01:00
MrBlakeandClaude Opus 5.5 409b239fca docs: add screenshots and generalise README
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 20:58:12 +01:00
MrBlakeandClaude Opus 5.5 5fd246edb8 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]>
2026-10-19 13:59:45 +02:00
MrBlake b947df022b Merge branch 'main' of https://git.mrblake.cc/MrBlake/NetBox-Export
# Conflicts:
#	README.md
2026-10-19 13:48:51 +02:00
MrBlakeandClaude Opus 5.5 ab4a6c8958 feat: support NetBox Utilities disk management
- Use conditional unique constraints as import identity only when the
  record matches the condition, and filter target candidates by it.
  Replaced disks no longer overwrite active disks in the same slot.
- Export disk bay templates together with their device type dependency.
- Skip records of the optional NetBox Utilities plugin with a warning
  when it is not installed on the target instead of aborting the import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-19 13:46:27 +02:00
MrBlakeandClaude Opus 5.5 44149acf16 Fix importing IP ranges
IPRange.save() computes its size from start_address.ip, but the importer assigned the archived addresses as plain strings, so every archive containing IP ranges failed with "'str' object has no attribute 'ip'". Convert values of NetBox IP fields with the field's to_python(). This also affects NetBox 4.6.

IP ranges also had no natural key, so importing into an instance that already contained the range created a duplicate. Match them by (vrf, start_address, end_address).

Verified with a real export and repeated imports on NetBox 4.7.2; the version stays 0.3.14 because Netbox-Utilities only enables its integration for known versions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 15:21:11 +02:00
MrBlakeandClaude Opus 5.5 0fdde044e1 Avoid deprecated select_related() call on Django 6.1
NetBox 4.7.2 ships Django 6.1, which deprecates select_related() without arguments (an error in Django 7). Only call it when the model has foreign keys; behaviour is unchanged. Verified with NetBox 4.7.2. Bump version to 0.3.14, the version Netbox-Utilities already expects for its rack width integration.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 14:14:49 +02:00
MrBlakeandClaude Opus 5.5 9a1e702099 docs: rewrite README in English with standard structure
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 13:36:42 +02:00
MrBlakeandClaude Sonnet 5 47e9192fda feat: support NetBox 4.7.x
Raise max_version to 4.7.99 and update README references from
NetBox 4.6.x-only to 4.6.x/4.7.x. No plugin API usage requires
changes for 4.7 compatibility (PluginConfig, PluginMenuItem,
get_plugin_config remain stable); full pytest suite passes.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-17 09:24:18 +02:00
MrBlake d183334104 fix: restore PostgreSQL range values during import 2026-09-02 11:11:43 +02:00
MrBlake e44e27d307 fix: preserve cable paths across export and import 2026-08-24 16:41:57 +02:00
MrBlake 05e33a87a9 fix: resize oversized image attachments during import 2026-08-05 15:56:09 +02:00
MrBlake 80469ede34 fix: derive image attachment dimensions during import 2026-08-05 15:43:15 +02:00
MrBlake 4ba41953c1 fix: reconcile rack placement conflicts during import 2026-08-05 15:01:28 +02:00
MrBlake d4ba5de2e7 fix: prevent module component duplication during import 2026-08-05 14:24:46 +02:00
MrBlake 8107e152d2 fix: reconcile component mappings by natural key 2026-08-05 14:05:40 +02:00
MrBlake f22276d68d fix: reassign unique imported relations atomically 2026-08-05 13:56:16 +02:00
MrBlake 3eb1729c93 fix: resolve constrained relations before insert 2026-08-05 13:46:59 +02:00
MrBlake 985b66c96f fix: assign fallback tenant during imports 2026-08-05 13:39:18 +02:00
MrBlake 7a018807d8 fix: honor tenant validation during plugin imports 2026-08-05 13:28:01 +02:00
MrBlake f558832cd2 fix: use form URL for progress requests 2026-08-05 13:13:46 +02:00
MrBlake e061c2b02d fix: tolerate missing external import references 2026-08-05 13:09:47 +02:00
MrBlake f5ad77b430 perf: batch export graph database queries 2026-08-05 12:55:37 +02:00
MrBlake 80ef1be239 feat: show export and import progress 2026-08-05 12:42:40 +02:00
MrBlake d78a8280e4 docs: fix plugin installation repository 2026-08-05 12:35:46 +02:00
MrBlake e331d14067 docu: update readme 2026-08-05 11:54:21 +02:00
MrBlake d0db98b690 feat: add scoped NetBox ZIP export and import plugin 2026-08-05 11:22:47 +02:00