Commit Graph

14604 Commits

Author SHA1 Message Date
Jeremy Stretch 17429c4257 Clean up obsolete code 2025-11-03 15:56:45 -05:00
Jeremy Stretch 40b114c0bb Add rack layout 2025-11-03 15:21:45 -05:00
Jeremy Stretch 1cffbb21bb Restore original object templates 2025-11-03 15:04:29 -05:00
Jeremy Stretch ed3dd019a7 Move some panels to extras 2025-11-03 14:59:54 -05:00
Jeremy Stretch 17cffd7860 Add rack role & type layouts 2025-11-03 13:33:39 -05:00
Jeremy Stretch 21bb734dcb Define layouts for regions, site groups, locations 2025-11-03 11:51:49 -05:00
Jeremy Stretch c392988212 Replace EmbeddedTablePanel with ObjectsTablePanel 2025-11-03 10:41:13 -05:00
Jeremy Stretch 37bea1e98e Introduce panel actions 2025-11-03 09:55:56 -05:00
github-actions cbf9b62f12 Update source translation strings 2025-11-01 05:02:02 +00:00
Martin Hauser c429cc3638
Closes #14171: Add VLAN-related fields to import forms (#20730) 2025-10-31 16:17:58 -05:00
Jeremy Stretch da68503a19 Remove panels from get_extra_context() 2025-10-31 16:47:26 -04:00
Jeremy Stretch e9b15436c4 Add EmbeddedTablePanel 2025-10-31 16:27:26 -04:00
Jeremy Stretch 4d5f8e9460 Add PluginContentPanel 2025-10-31 14:50:21 -04:00
Jeremy Stretch 77613b37b2 Add panels for common inclusion templates 2025-10-31 14:38:33 -04:00
Jeremy Stretch 3fd4664a76 Implement layout declaration under view 2025-10-31 13:50:25 -04:00
Jeremy Stretch 032ed4f11c
Closes #20715: Remove OpenAPI schema check from pre-commit (#20716) 2025-10-31 09:29:56 -07:00
Jason Novinger 7ca4342c15
Fixes #20721: Fix breadcrumb link on task detail page (#20724) 2025-10-31 09:29:28 -07:00
Martin Hauser 70bc1c226a fix(utilities): Ensure unique signal handlers for counter models
Updates `connect_counters` to prevent duplicate signal handlers by
using consistent `dispatch_uid` values per sender. Adds a check to
avoid reconnecting models already processed during registration.

Fixes #20697
2025-10-31 10:12:41 -04:00
Jeremy Stretch eef9db5e5a Cleanup 2025-10-31 09:05:20 -04:00
Robin Schneider 6a21459ccc docs(configuration): close Markdown inline code, "`" was forgotten
https://netboxlabs.com/docs/netbox/configuration/security/#csrf_trusted_origins
2025-10-31 08:17:48 -04:00
github-actions 635de4af2e Update source translation strings 2025-10-31 05:03:42 +00:00
Robin Gruyters df96f7dd0f
Closes #20647: add cleanup for interface import (#20702)
Co-authored-by: Robin Gruyters <2082795+rgruyters@users.noreply.github.com>
Co-authored-by: Martin Hauser <git@pheus.dev>
2025-10-30 20:08:24 -05:00
Arthur 90712fa865 20645 CSVChoiceField use default if blank 2025-10-30 15:34:27 -07:00
Jeremy Stretch 90874adf14 Add rack panel 2025-10-30 16:53:00 -04:00
Jeremy Stretch 2a629d6f74 Enable panel inheritance; add location panel 2025-10-30 16:25:42 -04:00
Jeremy Stretch 83de784196 Add region & site group panels 2025-10-30 15:47:55 -04:00
Jeremy Stretch 1acd567706 Add site panel 2025-10-30 15:29:23 -04:00
Jeremy Stretch 7d993cc141 WIP 2025-10-30 15:05:00 -04:00
Jeremy Stretch d4783b7fbd Refactor 2025-10-30 10:57:10 -04:00
Jeremy Stretch 3890043b06 Change approach for declaring object panels 2025-10-30 10:46:22 -04:00
Marko Hauptvogel fbe76ac98a Fix non-existent-id error message
Change this one special case to also use the same communication channel
(toast notification) and message format as all other validation errors.

The error message is kept mostly the same, just the index prefix is
removed. This allowed keeping and easily adjusting the existing
localizations of it.
2025-10-30 14:08:15 +01:00
Jeremy Stretch 0b61d69e05
Fixes #20713: Record pre-change snapshots on VC members being added/removed (#20714) 2025-10-30 07:50:10 -05:00
Marko Hauptvogel 1245a9f99d Validate related object is dictionary
Elements of the "related objects list" are passed to the
`prep_related_object_data` function before any validation takes place,
with the potential of failing with a hard error. Similar to the "related
objects not list" case explicitly validate the elements general type,
and raise a normal validation error if it isn't a dictionary.

The word "dictionary" is used here, since it is python terminology, and
is close enough to yaml's "mapping". While json calls them "objects",
their key-value syntax should make it obvious what "dictionary" means
here.
2025-10-30 13:33:34 +01:00
Marko Hauptvogel 78223cea03 Validate related object field is list
The related object fields are not covered by the form, so don't pass
any validation before trying to iterate over them and accessing their
elements. Instead of allowing a hard technical error to be raised,
explicitly check that it is indeed a list, and raise a normal validation
error if not.

The error message is chosen to be similar in format and wording to the
other existing validation errors. The used word "list" is quite
universal, and conveys the wanted meaning in the context of python,
json and yaml.
2025-10-30 13:33:34 +01:00
Marko Hauptvogel 8452222761 Fix record index for related objects
Use the parent object index as record index, and its own index only on
the field name.
2025-10-30 13:33:34 +01:00
Marko Hauptvogel 8a59fc733c Fix related object index
Index related objects from 1 and not from 0, just like top-level objects.
2025-10-30 13:33:34 +01:00
github-actions df688ce064 Update source translation strings 2025-10-30 05:03:02 +00:00
Jeremy Stretch fd3a9a0c37 Initial work on #20204 2025-10-29 19:44:44 -04:00
bctiemann 1a1ab2a19d
Merge pull request #20708 from netbox-community/20699-changelog-ordering
Fixes #20699: Ensure proper ordering of changelog entries resulting from cascading deletions
2025-10-29 14:13:21 -04:00
Jeremy Stretch 068d493cc6 Merge branch 'main' into feature 2025-10-29 13:47:01 -04:00
Jo 80f03daad6
Improved docs on background jobs on instances (#20489) 2025-10-29 10:15:49 -07:00
Jeremy Stretch d04c41d0f6 Add test for ordering of cascading deletions 2025-10-29 09:22:17 -04:00
github-actions 1fc849eb40 Update source translation strings 2025-10-29 05:02:12 +00:00
Jeremy Stretch bbf1f6181d Extend custom collector to force expected ordering of cascading deletions 2025-10-28 16:37:21 -04:00
Jeremy Stretch 729b0365e0 Fix errant update of objects being deleted via cascade 2025-10-28 15:13:03 -04:00
Jeremy Stretch 43cb476223 Release v4.4.5 2025-10-28 14:34:18 -04:00
Martin Hauser d6f756d315 feat(tables): Add ContactsColumnMixin to multiple tables
Integrate `ContactsColumnMixin` into various IPAM and VPN tables to
improve contact management. Updates table fields to include `contacts`.

Fixes #20700
2025-10-28 13:34:27 -04:00
Martin Hauser afc62b6ffd fix(ipam): Correct VLAN ID range calculation logic
Adjust VLAN ID range calculation to use half‑open intervals for
consistency. Add a test to validate `_total_vlan_ids`.

Fixes #20610
2025-10-28 13:14:34 -04:00
bctiemann 3d4841f17f
Merge pull request #20612 from pheus/20301-add-clear-all-option-to-user-notifications-dropdown
Closes #20301: Add "Dismiss all" action to notifications dropdown
2025-10-28 12:08:53 -04:00
Alexander Zimin 2aefb3af73 Add contacts field to ip addresses table view #20692 2025-10-28 08:48:36 -04:00