Commit Graph

15264 Commits

Author SHA1 Message Date
Martin Hauser f66e6f360a feat(ipam): Allow single-address IP Ranges
Allow IP ranges where start_address equals end_address to model
single-IP pools like DHCP or NAT reservations. Add validation tests,
filterset coverage, and display logic to render both endpoints.

Fixes #21993
2026-05-14 08:05:51 -04:00
Laurent Stéphenne df5bc85b48
Closes #20808: Show occupying Device in Rack Position Selector (#21744)
Add a description field to the rack unit serializer containing the
occupying Device, allowing the Rack position dropdown to show Device
context while keeping the existing display value unchanged.

Co-authored-by: Martin Hauser <mhauser@netboxlabs.com>
2026-05-14 13:22:56 +02:00
github-actions 9b5f29af23 Update source translation strings 2026-05-14 06:05:35 +00:00
bctiemann 77dc7104c7
Merge pull request #22147 from netbox-community/22146-modulebay-mptt-improvements
Closes #22146: Avoid renumbering MPTT trees when creating module bays
2026-05-13 20:52:43 -04:00
Arthur Hanson 7a3397798a
Fixes #16851: Add missing Aria Labels (#22178)
* #16851 - Add missing Aria Labels

* #16851 - Add missing Aria Labels

* #16851 - Add missing Aria Labels

* fixes for form field labels

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup
2026-05-13 16:38:30 -05:00
Martin Hauser e60ba2859d
test(signals): Add signal handler test coverage
Add comprehensive test coverage for signal handlers in circuits, core,
dcim, extras, ipam, users, virtualization, and wireless, including
cable path rebuilding, change logging, data source sync, scope
propagation, and notification dispatch logic.

Fixes #22098
2026-05-13 18:06:07 +02:00
Jeremy Stretch eeca184cb8
Closes #22057: Add GraphQL filters for notifications and subscriptions (#22175) 2026-05-13 08:45:59 -07:00
Jeremy Stretch 0ee59d7371
Closes #22081: Include plaintext when creating v2 tokens via REST API (#22160) 2026-05-13 08:38:17 -07:00
Jeremy Stretch b1412514f1
Closes #22104: Avoid retracing paths when deleting Cables (#22167) 2026-05-13 15:50:32 +02:00
Jeremy Stretch baeead1718 Closes #22146: Avoid renumbering MPTT trees when creating module bays 2026-05-12 10:05:31 -04:00
bctiemann b2a1e94508
Merge pull request #22157 from netbox-community/22061-graphql-hints
Closes #22061: Add prefetch hints for GraphQL types
2026-05-12 09:19:13 -04:00
bctiemann 1eeb54d052
Merge pull request #22145 from netbox-community/more-claude-skills
Introduce additional Claude skills
2026-05-12 09:03:00 -04:00
github-actions 7b948af4b6 Update source translation strings 2026-05-12 06:01:27 +00:00
Jeremy Stretch c27c470499
Closes #19971: Expand test coverage for config & export templates (#22164) 2026-05-11 23:29:51 +02:00
Martin Hauser 963306f338 refactor(tests): Standardize test class naming to TestCase suffix
Rename all test classes from `*Test` to `*TestCase` for consistency with
Django conventions.

Fixes #22097
2026-05-11 16:42:05 -04:00
Jeremy Stretch 2e9c3119ce
Closes #22060: Introduce a config parameter to enforce GraphQL maximum query depth (#22162) 2026-05-11 19:54:07 +02:00
Jeremy Stretch da9568b548 Closes #22061: Add prefetch hints for GraphQL types 2026-05-11 08:33:19 -04:00
Martin Hauser 3e4ad4a5da chore(ci): Collect static files before running tests
Copy frontend-generated files into STATIC_ROOT before tests run so SVG
rendering tests can read their CSS directly.
Also add pull-requests read permission to the workflow.

Fixes #22150
2026-05-11 08:28:01 -04:00
Martin Hauser cd56523cc5 chore(ci): Limit CI push trigger to main and feature
Restrict the CI workflow's push trigger to the main and feature branches
while preserving the existing paths-ignore filters.

This avoids unnecessary push-triggered CI runs on topic branches without
changing pull request workflow behavior.

Fixes #19324
2026-05-08 08:06:34 -04:00
Arthur Hanson bf23a0b3fd
Fixes #22055: Report API exceptions to Monitoring Services (#22106)
Ensure CoreMiddleware emits Django's got_request_exception signal before
returning handled 500 responses for API requests and custom error templates.

This allows integrations such as Sentry to report exceptions that would
otherwise be hidden when middleware returns a custom error response.
2026-05-08 13:59:44 +02:00
Jeremy Stretch 523ecba867
Closes #22114: Split CI into conditional jobs (#22126) 2026-05-08 09:35:46 +02:00
github-actions 6926580124 Update source translation strings 2026-05-08 05:41:23 +00:00
Martin Hauser 770c3647fb feat(ui): Add nested breadcrumb display for GenericForeignKey attrs
Add `nested` and `max_depth` params to GenericForeignKeyAttr to render
hierarchical objects as breadcrumbs when they expose `get_ancestors()`.
Applied to scope fields in IPAM/wireless and circuit termination points.

Fixes #21938
2026-05-07 14:35:59 -04:00
Arthur Hanson c45482c4af
#21934 allow highlight override table stripping (#22018) 2026-05-07 14:33:03 -04:00
Jeremy Stretch 670386ed72 Address PR feedback 2026-05-07 14:26:43 -04:00
Jeremy Stretch 9db8c207a2 Add Claude skills to add and removing config parameters 2026-05-07 13:39:05 -04:00
Jeremy Stretch 3d0308a95f Add Claude skills for removing models & fields 2026-05-07 13:28:38 -04:00
Jason Novinger c20e6dd2ee
Closes #20776: Add changelog message to bulk rename process (#22100)
Add changelog message support to BulkRenameView for models that support
change logging. Introduce NetBoxModelBulkRenameForm as a changelog-aware
wrapper around the existing utilities.forms.BulkRenameForm, preserving the
existing import path while avoiding circular imports.

Set _changelog_message before saving renamed objects in both MPTT and
non-MPTT rename paths, and add a regression test to verify that the
submitted message is recorded on the resulting ObjectChange records.

Remove unused VMInterfaceBulkRenameForm and VirtualDiskBulkRenameForm,
along with their unused view references, since BulkRenameView constructs
its form dynamically.
2026-05-07 18:23:00 +02:00
Jeremy Stretch f2187ceb8f
Closes #22102: Add a GIN index on CablePath to optimize filtering of cable paths by node (#22144) 2026-05-07 11:22:14 -05:00
Jeremy Stretch 088de70b10
Remove prohibition on AI-generated PRs and add guidance to AGENTS.md (#22133) 2026-05-07 18:13:02 +02:00
Jeremy Stretch 2703ff98a3
Closes #22128: Deprecate v1 API tokens (#22143)
Display a warning in the UI whenever a user goes to provision a v1
token (both via the admin token form and the user profile token form).
Update documentation to note that v1 tokens are deprecated and will be
removed in NetBox v5.0.
2026-05-07 08:48:25 -07:00
Jeremy Stretch 734a69c9a7
Closes #22141: Deprecate support for PostgreSQL 14 (#22142) 2026-05-07 17:14:02 +02:00
Jeremy Stretch e50aff8736
Documentation cleanup (#22127) 2026-05-06 16:58:08 -05:00
Jeremy Stretch b3bc4f8ef2
Closes CAP-100: Adopt AI best practices (#22120) 2026-05-06 13:04:23 -07:00
Martin Hauser 4407505f87 chore(ci): Collect coverage from parallel test workers
Configure coverage.py for multiprocessing so Django's parallel test
workers are included in the coverage data.

Move coverage source and report settings into pyproject.toml,
and combine per-process coverage data before generating the report.

Fixes #22118
2026-05-06 09:55:46 -04:00
github-actions 30f9d3ed60 Update source translation strings 2026-05-06 05:59:55 +00:00
Martin Hauser 7e9eac5b87
Closes #22093: Run coverage only on a single matrix entry (#22117)
Add explicit CI job names showing the Python and Node versions, with the
coverage job clearly marked in the GitHub Actions UI.

Run coverage only for the designated coverage matrix entry to avoid
redundant coverage collection and reporting across the full test matrix.

Also add the YAML document marker and clean up trailing whitespace.
2026-05-05 19:06:26 +02:00
Martin Hauser f3c5b00932
Closes #22056: Clean up obsolete .gitignore entries and add comments (#22116) 2026-05-05 11:25:06 -05:00
Martin Hauser 589169f860 chore(ruff): Consolidate tool config into pyproject.toml
Move Ruff configuration from ruff.toml into pyproject.toml and remove
obsolete Black, isort, and Pylint sections.
Consolidates all Python tooling config in a single file following
modern Python packaging standards.

Fixes #22099
2026-05-05 10:54:55 -04:00
Jeremy Stretch 93176be707
Prohibit AI-generated issues (#22101) 2026-05-05 15:29:57 +02:00
Jeremy Stretch d81c2cb739
Closes #21951: Add convenience scripts for database management (#22113) 2026-05-05 15:28:05 +02:00
Jeremy Stretch 00791344e6 Release v4.6.0 2026-05-05 08:55:05 -04:00
Jeremy Stretch 1e1548edd1
Merge pull request #22111 from netbox-community/feature
Merge `feature` into `main` ahead of v4.6.0 release
2026-05-05 08:22:18 -04:00
Jeremy Stretch 28a5c7d882 Merge branch 'main' into feature 2026-05-04 13:02:42 -04:00
Jeremy Stretch b78bd71329 Release v4.5.10 2026-05-04 12:48:34 -04:00
Martin Hauser 05dcf02dbe fix(dcim): Mark cable_end as nullable in CabledObject Serializer
Use DRF's ChoiceField for `cable_end` to preserve the existing raw
"A"/"B" API output while documenting the allowed values and nullability
in the generated schema.

Fixes #22084
2026-05-04 11:51:25 -04:00
Arthur Hanson 364953edc5
Closes #22034: Fix rack group migration from very old netbox installation (#22063)
* #22034 fix rack group migation from very old netbox installation

* #22034 fix rack group migation from very old netbox installation

* #22034 fix rack group migation from very old netbox installation

* fix after loading old database

* simplify

* fix index name
2026-05-01 14:38:59 -04:00
Jeremy Stretch 8830519da2
Closes #22062: Display API token ID & plaintext one time immediately upon creation (#22064) 2026-05-01 16:04:35 +02:00
Jeremy Stretch 92c5aff713
Closes #22048: Deprecate `expand_ipaddress_pattern()` (#22051) 2026-04-30 16:50:12 +02:00
Jeremy Stretch 1452d57f38
Closes #22047: Deprecate ExpandableIPAddressField (#22050) 2026-04-30 16:49:39 +02:00