Commit Graph

12222 Commits

Author SHA1 Message Date
Jeremy Stretch
8429f76ed7 Move utilities.api.rest_api_server_error() to utilities.error_handlers.handle_rest_api_exception() 2024-03-22 08:59:52 -04:00
Jeremy Stretch
8b348d30e1 Move choice sets from utilities.choices to netbox.choices 2024-03-22 08:59:52 -04:00
Jeremy Stretch
e5d1d7606e Refactor get_view_name() 2024-03-22 08:59:52 -04:00
Jeremy Stretch
a685035864 Closes #14279: Pass current request to custom validators (#15491)
* Closes #14279: Pass current request to custom validators

* Update custom validation docs

* Check that validator is a subclass of CustomValidator
2024-03-21 21:19:53 -04:00
Jeremy Stretch
4178fcd465 Closes #15339: Consume entire viewport (#15480)
* Closes #15339: Consume entire viewport, except for object detail views

* Use fluid containers for all views
2024-03-20 08:26:04 -04:00
Jeremy Stretch
8b74ddfec3 Update release notes 2024-03-19 14:18:15 -04:00
Jeremy Stretch
01ff314aca Fixes #15340: Fix flicker on page load with dark mode enabled (#15475) 2024-03-19 14:06:24 -04:00
Jeremy Stretch
8d2d0f0bc8 Misc cleanup & documentation for FieldSets 2024-03-19 13:34:13 -04:00
Jeremy Stretch
85972ab4bf Add form rendering utilities to plugins dev docs 2024-03-19 13:34:13 -04:00
Jeremy Stretch
d717cb0f07 Use render_fieldset() for bulk edit & filter forms 2024-03-19 13:34:13 -04:00
Jeremy Stretch
c928756396 Use FieldSet instances for all forms 2024-03-19 13:34:13 -04:00
Jeremy Stretch
2730bd5712 Refactor form rendering components & add docstrings 2024-03-19 13:34:13 -04:00
Jeremy Stretch
9834c6501b Replace custom form templates with TabbedFieldGroups 2024-03-19 13:34:13 -04:00
Jeremy Stretch
f28ea2d6f6 Introduce ObjectAttribute for displaying read-only instance attributes on forms 2024-03-19 13:34:13 -04:00
Jeremy Stretch
1f647540ab Ignore fields which are not included on the form (dynamic rendering) 2024-03-19 13:34:13 -04:00
Jeremy Stretch
6bc5eed79d Enable tabbed group fields in fieldsets 2024-03-19 13:34:13 -04:00
Jeremy Stretch
251688dca8 Introduce InlineFields for rendering fields side-by-side 2024-03-19 13:34:13 -04:00
Arthur
2c12f03ca1 15193 use psycopg compiled 2024-03-19 08:26:05 -04:00
Daniel Sheppard
32c08fc358 Closes: #13918 - Add facility field (#15456)
* Fixes: #13918 - Add facilities field to Location model.

* Stupidly forgot to `git add`

* Fix errant reference to site.

* Misc cleanup

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-03-18 10:09:50 -04:00
Jeremy Stretch
521735c400 Merge branch 'develop' into feature 2024-03-15 12:32:54 -04:00
Jeremy Stretch
92bae6d8a9 Merge pull request #15421 from netbox-community/15413-search-cache-attrs
Closes #15413: Enable caching of object attributes in search index
2024-03-15 11:38:06 -04:00
Jeremy Stretch
5d8feee8a2 PRVB 2024-03-13 19:37:28 -04:00
Jeremy Stretch
a9ce3f1575 Merge pull request #15423 from netbox-community/develop
Release v3.7.4
2024-03-13 19:36:44 -04:00
Jeremy Stretch
296b813104 Release v3.7.4 2024-03-13 19:23:51 -04:00
Jeremy Stretch
9112f064f3 Changelog for #13722, #14206, #14366, #14832, #15322, #15347, #15356 2024-03-13 19:15:35 -04:00
Jeremy Stretch
553121da76 Closes #14454: Include member devices for virtual chassis in REST API 2024-03-13 19:11:28 -04:00
Jeremy Stretch
dd66e29c70 Fixes #15322: Add description field to YAML export for device & module types 2024-03-13 19:10:49 -04:00
Jeremy Stretch
34d8c5a61d Fixes #15356: Fix assignment of front & rear images to device types via REST API 2024-03-13 19:10:30 -04:00
Jeremy Stretch
3a60ea4568 Fixes #15347: Fix querying virtual machine contacts via GraphQL 2024-03-13 19:09:52 -04:00
Jeremy Stretch
4ae438677b Closes #15413: Enable caching of object attributes in search index 2024-03-13 16:13:06 -04:00
Jeremy Stretch
b0b0ecd7f7 Closes #14366: Enable custom links on ConfigContexts and ConfigTemplates 2024-03-13 14:44:41 -04:00
Jeremy Stretch
e772c65124 Merge pull request #15369 from netbox-community/15237-audit-filtersets
Closes #15237: Add tests for missing filters
2024-03-12 13:09:14 -04:00
Jeremy Stretch
689b8fa938 Ensure all filter labels are translated 2024-03-12 12:14:13 -04:00
Jeremy Stretch
bc49f301d2 Declare FilterSet fields as a tuple 2024-03-12 12:08:11 -04:00
Jeremy Stretch
d3632ed426 Closes #15401: Rename PostgreSQL tables & indexes for L2VPN models (#15405)
* Closes #15401: Rename PostgreSQL tables & indexes for L2VPN models

* Account for alternate index name
2024-03-12 11:20:23 -04:00
Jeremy Stretch
f3af6b12a9 Add NetBox Enterprise deployment type 2024-03-12 10:57:14 -04:00
Jeremy Stretch
f58313fe97 Closes #14459: Update coverage report 2024-03-12 10:51:29 -04:00
Markku Leiniö
656ce82049 Closes #14206: Add FC SFP types 2024-03-12 09:03:42 -04:00
Jeremy Stretch
458a80244a Clean up exemption logic 2024-03-11 15:54:35 -04:00
Jeremy Stretch
8c40f937b7 Extend logic for validating filter class 2024-03-11 15:35:40 -04:00
Jeremy Stretch
d3bf6c838d Validate filter class for foreign key fields 2024-03-11 14:39:34 -04:00
Jeremy Stretch
69f370fddc Add missing filters for reverse many-to-many relationships 2024-03-11 14:39:34 -04:00
Jeremy Stretch
a547155241 Test for missing ManyToManyField filters 2024-03-11 14:39:34 -04:00
Jeremy Stretch
135cf9a885 Inspect many-to-many fields 2024-03-11 14:39:34 -04:00
Jeremy Stretch
4f863af698 Fix remaining tests 2024-03-11 14:39:34 -04:00
Jeremy Stretch
813ec0c7f3 Add missing filters 2024-03-11 14:39:34 -04:00
Jeremy Stretch
411862a55e Add tests for missing FilterSet filters 2024-03-11 14:39:34 -04:00
Jeremy Stretch
28dbb0872a Closes #15383: Standardize filtering logic for the parents of recursively-nested models 2024-03-11 13:27:57 -04:00
Jeremy Stretch
768e0245d6 #15357: Rename CustomField object_type to related_object_type 2024-03-11 11:49:04 -04:00
Daniel Sheppard
19c17568a4 Fixes: #13722 - Correct range expansion code when a numeric set is used (#15301)
* Fixes: #13722 - Correct range expansion code when a numeric set is used

* Correct to my own suggestion

* Clean up logic

* Simplify range detection

---------

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-03-11 10:50:10 -04:00