Skip to content

NetBox 4.7 support (2.6.0) - #18

Merged
Kani999 merged 2 commits into
masterfrom
feature/netbox-4.7-support
Sep 4, 2026
Merged

NetBox 4.7 support (2.6.0)#18
Kani999 merged 2 commits into
masterfrom
feature/netbox-4.7-support

Conversation

@Kani999

@Kani999 Kani999 commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Widens NetBox compat to 4.5.2 – 4.7.99 and releases 2.6.0.

  • max_version 4.7.99. No code changes needed for 4.7 itself — every NetBox API/template used is unchanged; none of the 4.7 removals apply.
  • On NetBox 4.7 you need netbox-custom-objects>=0.6.1 (0.6.0 caps at 4.6.99 and is skipped). New startup guard raises ImproperlyConfigured with that hint instead of the opaque isn't in INSTALLED_APPS RuntimeError.
  • Fix: combined/typed tab never rendered active on CO detail pages except for the first-registered CO type (ViewTab identity mismatch from the generic injected URL). plugin_extra_tabs now falls back to (label, weight).

Verified on local NetBox 4.7.0: combined + typed tabs on Device and CO pages, HTMX partials, search/sort/paging → 200, CO combined tab now active. pytest 62 pass, ruff clean.

Jan Krupa added 2 commits September 4, 2026 11:38
- max_version 4.7.99. All NetBox APIs and templates the plugin uses are
  unchanged in 4.7; verified against a local 4.7.0 instance.
- Raise ImproperlyConfigured at startup when netbox_custom_objects is not
  loaded (NetBox 4.7 skips netbox-custom-objects 0.6.0, whose max_version
  is 4.6.99), instead of an opaque 'isn't in INSTALLED_APPS' RuntimeError.
- Fix combined/typed tab never rendered active on Custom Object detail
  pages for all but the first-registered CO type: the generic CO-page URL
  is bound to the first model's view class, so its ViewTab instance never
  equals the registry entry for the page's model. plugin_extra_tabs now
  falls back to (label, weight) equality.
@Kani999
Kani999 merged commit c8b23be into master Sep 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant