Arthur
d027a1c26d
9856 review changes
2024-03-22 07:48:56 -07:00
Arthur
be522467ab
Merge branch 'feature' into 9856-strawberry-2
2024-03-22 07:29:45 -07:00
Arthur
6f9f1d9d43
14799 dont cache report member names
2024-03-22 10:27:33 -04:00
Jeremy Stretch
423c9813a2
Fix import statement
2024-03-22 09:32:57 -04:00
Jeremy Stretch
eb3aa7cb36
Move utilities.utils.get_related_models() to utilities.relations
2024-03-22 08:59:52 -04:00
Jeremy Stretch
b86c8a9524
Remove utilities.utils.dynamic_import()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
7b1a08a187
Move local_now() to utilities.datetime
2024-03-22 08:59:52 -04:00
Jeremy Stretch
6ac700e43f
Move object_type_identifier() & object_type_name() to utilities.object_types
2024-03-22 08:59:52 -04:00
Jeremy Stretch
8ad73e3f90
Rename content_type_identifier() and content_type_name()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
ae8df77cc8
Move count_related() & dict_to_filter_params() to utilities.query
2024-03-22 08:59:52 -04:00
Jeremy Stretch
3b4898adea
Move prepare_cloned_fields() to utilities.querydict
2024-03-22 08:59:52 -04:00
Jeremy Stretch
a49eb80f9e
Move dict_to_querydict() and normalize_querydict() to utilities.querydict
2024-03-22 08:59:52 -04:00
Jeremy Stretch
81ca455fef
Move array_to_range(), array_to_string(), deepmerge(), drange(), flatten_dict(), and shallow_compare_dict() to utilities.data
2024-03-22 08:59:52 -04:00
Jeremy Stretch
1d3efc90c0
Move utilities.utils.render_jinja2() to utilities.jinja2
2024-03-22 08:59:52 -04:00
Jeremy Stretch
c30d22335a
Move extras.jinja2.ConfigTemplateLoader to utilities.jinja2.DataFileLoader
2024-03-22 08:59:52 -04:00
Jeremy Stretch
b2e03805ab
Remove obsolete function utilities.utils.csv_format()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
2a3b85a32f
Move clean_html() & foreground_color() to utilities.html
2024-03-22 08:59:52 -04:00
Jeremy Stretch
b92d3245c8
Move serialize_object() & deserialize_object() to utilities.serialization
2024-03-22 08:59:52 -04:00
Jeremy Stretch
bbb8b7d010
Move to_grams() & to_meters() from utilities.utils to utilities.conversion
2024-03-22 08:59:52 -04:00
Jeremy Stretch
ef774319f4
Move NetBoxFakeRequest and copy_safe_request() from utilities.utils to utilities.request
2024-03-22 08:59:52 -04:00
Jeremy Stretch
3547ea376c
Move utilities.utils.get_viewname() to utilities.views
2024-03-22 08:59:52 -04:00
Jeremy Stretch
2719fa3b5a
Move utilities.utils.highlight_string() to utilities.html.highlight()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
950954a3db
Move title() from utilities.utils to utilities.string
2024-03-22 08:59:52 -04:00
Jeremy Stretch
73bb175afa
Rename resolve_permission_ct() to resolve_permission_type()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
f48d1c9410
custom_deconstruct() should not ignore TimeZoneField
2024-03-22 08:59:52 -04:00
Jeremy Stretch
f49819ebc2
Move ConfigTemplateLoader from utilities.jinja2 to extras.jinja2
2024-03-22 08:59:52 -04:00
Jeremy Stretch
aa9a40f268
Remove unused MACAddressFilter
2024-03-22 08:59:52 -04:00
Jeremy Stretch
d924eaf4da
Remove the sha256_hash() utility function
2024-03-22 08:59:52 -04:00
Jeremy Stretch
19bb808936
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
a9bb4c5c3e
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
Jeremy Stretch
99144031b7
Refactor get_view_name()
2024-03-22 08:59:52 -04:00
Jeremy Stretch
78b4fa5196
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
Arthur
bbccb8787d
9856 remove old graphiql debug toolbar
2024-03-20 14:01:55 -07:00
Arthur
f456731929
9856 add wrapper to graphiql
2024-03-20 13:54:26 -07:00
Jeremy Stretch
a83b233341
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
849a9d32d1
Fixes #15340 : Fix flicker on page load with dark mode enabled ( #15475 )
2024-03-19 14:06:24 -04:00
Jeremy Stretch
32edb8dfe6
Misc cleanup & documentation for FieldSets
2024-03-19 13:34:13 -04:00
Jeremy Stretch
708d93c9e0
Use render_fieldset() for bulk edit & filter forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
72d3c17b48
Use FieldSet instances for all forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
3b28e8e615
Refactor form rendering components & add docstrings
2024-03-19 13:34:13 -04:00
Jeremy Stretch
2aaa552067
Replace custom form templates with TabbedFieldGroups
2024-03-19 13:34:13 -04:00
Jeremy Stretch
8f03a19b5f
Introduce ObjectAttribute for displaying read-only instance attributes on forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
33b9ebb201
Ignore fields which are not included on the form (dynamic rendering)
2024-03-19 13:34:13 -04:00
Jeremy Stretch
4c7b6fcec0
Enable tabbed group fields in fieldsets
2024-03-19 13:34:13 -04:00
Jeremy Stretch
f585c36d86
Introduce InlineFields for rendering fields side-by-side
2024-03-19 13:34:13 -04:00
Arthur
783c4f2edc
9856 review changes
2024-03-19 10:11:13 -07:00
Arthur
908150f9a1
9856 review changes
2024-03-19 10:10:36 -07:00
Arthur
b75b9e01eb
9856 review changes
2024-03-19 10:04:33 -07:00
Jeremy Stretch
9c29f45c1a
Merge branch 'feature' into 9856-strawberry-2
2024-03-18 10:12:06 -04:00
Daniel Sheppard
19f577ccaf
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
78bd7dec48
Merge branch 'develop' into feature
2024-03-15 12:32:54 -04:00
Jeremy Stretch
b58c85cdb0
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
4adb44f60d
PRVB
2024-03-13 19:37:28 -04:00
Jeremy Stretch
06bdfdc9e8
Release v3.7.4
2024-03-13 19:23:51 -04:00
Jeremy Stretch
9062d99bfa
Closes #14454 : Include member devices for virtual chassis in REST API
2024-03-13 19:11:28 -04:00
Jeremy Stretch
8bdbb49a27
Fixes #15322 : Add description field to YAML export for device & module types
2024-03-13 19:10:49 -04:00
Jeremy Stretch
7ac21690e5
Fixes #15356 : Fix assignment of front & rear images to device types via REST API
2024-03-13 19:10:30 -04:00
Jeremy Stretch
7350950e88
Fixes #15347 : Fix querying virtual machine contacts via GraphQL
2024-03-13 19:09:52 -04:00
Arthur
3b30aa965f
9856 cleanup
2024-03-13 15:21:18 -07:00
Arthur
6090d41b34
9856 cleanup
2024-03-13 14:50:41 -07:00
Arthur
da0c23bc0c
9856 cleanup
2024-03-13 14:21:02 -07:00
Arthur
9c53f76d9e
9856 fix tenancy, ipam filter definitions
2024-03-13 13:37:17 -07:00
Arthur
b47c5ee1b8
9856 fix tests
2024-03-13 13:13:20 -07:00
Jeremy Stretch
7357f953eb
Closes #15413 : Enable caching of object attributes in search index
2024-03-13 16:13:06 -04:00
Arthur
151717545a
9856 temp fix tests
2024-03-13 11:51:37 -07:00
Jeremy Stretch
8fe3f5e3fd
Closes #14366 : Enable custom links on ConfigContexts and ConfigTemplates
2024-03-13 14:44:41 -04:00
Arthur
1da5219563
9856 fix counter fields and merge feature
2024-03-13 11:37:13 -07:00
Arthur
2b7c1d1845
Merge branch 'feature' into 9856-strawberry-2
2024-03-13 11:20:33 -07:00
Arthur
634f35a972
9856 fix graphiql test
2024-03-13 11:19:54 -07:00
Arthur
347e453b7d
9856 filter types
2024-03-13 10:48:46 -07:00
Arthur
21b585e5e3
9856 filter types
2024-03-13 10:39:08 -07:00
Arthur
2c9bea9ab9
9856 filter types
2024-03-13 10:07:28 -07:00
Arthur
fe3f2c8958
9856 working auto filter generation
2024-03-12 16:35:17 -07:00
Arthur
960f3407f5
9856 fix tests
2024-03-12 10:52:20 -07:00
Arthur
d6fd0b88af
9856 fix tests
2024-03-12 10:39:00 -07:00
Arthur
c2a3275c79
9856 merge feature
2024-03-12 10:12:09 -07:00
Jeremy Stretch
2d4295e2ed
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
Arthur
8aca8f84b4
9856 first filterset
2024-03-12 10:01:34 -07:00
Arthur
a36cc0abb6
9856 first filterset
2024-03-12 09:35:53 -07:00
Jeremy Stretch
572efeb987
Ensure all filter labels are translated
2024-03-12 12:14:13 -04:00
Jeremy Stretch
bea32aef71
Declare FilterSet fields as a tuple
2024-03-12 12:08:11 -04:00
Jeremy Stretch
52bda9c0e6
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
Markku Leiniö
51b2bcf264
Closes #14206 : Add FC SFP types
2024-03-12 09:03:42 -04:00
Jeremy Stretch
f8744a6659
Clean up exemption logic
2024-03-11 15:54:35 -04:00
Jeremy Stretch
313e63622b
Extend logic for validating filter class
2024-03-11 15:35:40 -04:00
Jeremy Stretch
a136030094
Validate filter class for foreign key fields
2024-03-11 14:39:34 -04:00
Jeremy Stretch
b36a70d236
Add missing filters for reverse many-to-many relationships
2024-03-11 14:39:34 -04:00
Jeremy Stretch
6085e0bb0b
Test for missing ManyToManyField filters
2024-03-11 14:39:34 -04:00
Jeremy Stretch
0a0dae3d35
Inspect many-to-many fields
2024-03-11 14:39:34 -04:00
Jeremy Stretch
5cb7af88d4
Fix remaining tests
2024-03-11 14:39:34 -04:00
Jeremy Stretch
16b422cbac
Add missing filters
2024-03-11 14:39:34 -04:00
Jeremy Stretch
6af12b1814
Add tests for missing FilterSet filters
2024-03-11 14:39:34 -04:00
Jeremy Stretch
d6acc18c29
Closes #15383 : Standardize filtering logic for the parents of recursively-nested models
2024-03-11 13:27:57 -04:00
Arthur
be2a814b38
9856 temp fix tests
2024-03-11 09:17:58 -07:00
Arthur
916722780c
9856 fix docs
2024-03-11 08:50:56 -07:00
Jeremy Stretch
21de3f954f
#15357 : Rename CustomField object_type to related_object_type
2024-03-11 11:49:04 -04:00
Arthur
f960d5a482
9856 fix plugin schema
2024-03-11 08:33:32 -07:00
Daniel Sheppard
1ff4e1287f
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
Leo Chen
f0e137133f
Fixes : #14832 Extend GraphQL FHRPGroupType with IPAddressesMixin
2024-03-11 10:32:31 -04:00
Arthur
ccc81e73d1
9856 cleanup graphene
2024-03-11 07:31:38 -07:00
Jeremy Stretch
78dd65219f
Closes #15357 : Rename CustomField.object_type to related_object_type ( #15366 )
2024-03-09 06:16:17 -05:00
Jeremy Stretch
eeb732d96e
Fixes #15336 : Correct label for recurring scheduled jobs
2024-03-08 17:03:18 -05:00
Jeremy Stretch
8bb49d2296
Closes #15291 : Add tunnel termination buttons to VM interfaces table
2024-03-08 16:58:04 -05:00
Jeremy Stretch
6629c94148
Closes #15297 : Linkify platform column in device & virtual machine tables
2024-03-08 16:48:39 -05:00
Arthur
7fa36cada5
9856 fix test imagefield
2024-03-07 12:59:56 -08:00
Arthur
7b6a603111
9856 fix tests / remove debug code
2024-03-07 12:48:57 -08:00
Arthur
133d6bfcb3
9856 fix virtualization FK
2024-03-07 11:55:35 -08:00
Arthur
a32f4b82e9
9856 fix dcim FK
2024-03-07 11:40:50 -08:00
Arthur
676764a661
9856 fix partial dcim FK
2024-03-07 10:48:50 -08:00
Arthur
e53475a63f
9856 fix ipam FK
2024-03-07 10:11:28 -08:00
Arthur
5f56e2daff
9856 fix wireless FK
2024-03-07 09:58:26 -08:00
Arthur
38c7d76646
9856 fix vpn FK
2024-03-07 09:53:11 -08:00
Arthur
26c8ee36fa
9856 fix virtualization FK
2024-03-07 09:42:52 -08:00
Arthur
4b56f0b000
9856 fix tenancy FK
2024-03-07 09:07:31 -08:00
Arthur
12cca5d0a0
9856 fix extas FK
2024-03-07 08:58:56 -08:00
Arthur Hanson
663bd32464
10587 script pagination ( #15343 )
...
* 10587 temp commit
* 10587 temp commit
* 10587 fix migrations
* 10587 pagination
* 10587 pagination
* 10587 pagination
* 10587 review changes
2024-03-07 11:41:34 -05:00
Arthur
005a339745
9856 temp checkin
2024-03-07 07:39:15 -08:00
Arthur
4784829477
9856 core test sans DjangoModelType
2024-03-06 15:48:02 -08:00
Arthur
28ac66b0fb
9856 circuits test sans DjangoModelType
2024-03-06 15:44:40 -08:00
Arthur
7c66a6aba8
9856 test fixes
2024-03-06 15:25:06 -08:00
Arthur
77eb1018e8
9856 test fixes
2024-03-06 15:00:48 -08:00
Arthur
5ff2c1806d
9856 test fixes
2024-03-06 14:34:51 -08:00
Arthur
1052ea5dd4
9856 test fix vpn
2024-03-06 14:00:53 -08:00
Arthur
0ca46e349f
9856 test fixes
2024-03-06 13:43:40 -08:00
Arthur
888d9ecec6
9856 test fixes
2024-03-06 13:27:01 -08:00
Jeremy Stretch
e5ee8523ef
Misc cleanup
2024-03-06 16:16:29 -05:00
Jeremy Stretch
0c22e38006
Re-enable error handling in middleware (disabled for testing)
2024-03-06 16:16:29 -05:00
Jeremy Stretch
40a654b21e
Use singular names for M2M field filters
2024-03-06 15:43:33 -05:00
Jeremy Stretch
5552f2a7dd
Rename ContentTypes REST API endpoint & resources
2024-03-06 15:30:59 -05:00
Arthur
a5aad5359d
9856 test fixes
2024-03-06 10:35:44 -08:00
Arthur
aa7c00ec32
9856 circuits graphql tests working
2024-03-06 10:21:23 -08:00
Arthur
2f719269e8
9856 single item query for schema
2024-03-06 09:53:46 -08:00
Arthur
7c289aebc7
9856 fix OrganizationalObjectType
2024-03-06 07:52:42 -08:00
Arthur
0312ec3249
Merge branch 'feature' into 9856-strawberry-2
2024-03-06 07:43:16 -08:00
Arthur
f8748011f3
9856 GraphQLView
2024-03-05 16:27:34 -08:00
Arthur
14f04453bb
9856 GraphQLView
2024-03-05 08:30:34 -08:00
Jeremy Stretch
6f6d483ca5
Merge branch 'feature' into 15277-object-types
2024-03-05 08:52:07 -05:00
Arthur
13bf2c1940
9856 merge feature
2024-03-04 14:18:58 -08:00
Jeremy Stretch
cd74e040c1
Merge branch 'feature' into 15278-primary-nested-serializers
2024-03-04 16:42:36 -05:00
Jeremy Stretch
239d21870b
Closes #14871 : Complete work on UI cleanup ( #15341 )
...
* Fix left padding of login button in top menu
* Relocate "add" buttons for embedded object tables
* Remove unused data template block & getNetboxData() utility function
* Remove bottom margin from last <p> element in rendered Markdown inside a table cell
* Prevent TomSelect from initializing on <select> elements with a size
* Fix styling of dropdown menu button for circuit commit rate
* Change .color-block to display: inline-block
* Delete unused static asset
* Improve contrast between menu group headings & items
* Remove custom color for attr-table row headings
* Fix border color of copy-to-clipboard button
* Fix toast text color in dark mode
* Fix rack elevation label/image toggles
* Increase border radius for small buttons
* Fix object selector
2024-03-04 15:55:01 -05:00
Jeremy Stretch
4533c8dae0
Rename sequences for ObjectType M2M tables
2024-03-04 12:17:32 -05:00
Jeremy Stretch
0e89f46601
#15277 : Clean up references to object types in templates
2024-03-04 11:49:39 -05:00
Jeremy Stretch
0419a69ae8
Clean up outdated references to ContentType
2024-03-04 10:46:34 -05:00
Jeremy Stretch
d538010069
Add GraphQL type for ObjectType
2024-03-04 10:06:28 -05:00
Jeremy Stretch
01ee9c87b8
Update ObjectPermission.object_types to reference ObjectType
2024-03-04 09:52:45 -05:00
Jeremy Stretch
570f64784f
Update Tag.object_types to reference ObjectType
2024-03-04 09:51:32 -05:00
Jeremy Stretch
5f43eabab1
Rename ContactAssignment.content_type to object_type
2024-03-04 08:33:44 -05:00
Jeremy Stretch
e0165539b3
Rename ImageAttachment.content_type to object_type
2024-03-04 08:33:44 -05:00
Jeremy Stretch
ce6b2666a9
Rename SavedFilter.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
bef17e5a95
Rename ExportTemplate.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
e51d71d7e6
Rename EventRule.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
ba514aceac
Rename CustomLink.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
54b9d1b3f2
Disconnect search backend during test to avoid discrepancy with ContentTypes on transaction rollback
2024-03-04 08:33:44 -05:00
Jeremy Stretch
aeeec284a5
Rename CustomField.content_types to object_types & use ObjectType proxy
2024-03-04 08:33:44 -05:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Jeremy Stretch
c6a3fc2407
#12795 : Introduce a custom Group model ( #15304 )
...
* Rename sequences & indexes after renaming users table
* Migrate from auth.Group to a custom group model
* Delete original groups from auth_group table
* Update object & multi-object custom fields referencing the Group model
* Fix ContentType resolution
* Clean up obsolete logic for view/serializer resolution
2024-03-04 08:29:53 -05:00
Jeremy Stretch
709eac6b98
Closes #15292 : Remove obsolete device_role attribute from Device model
2024-03-01 11:31:47 -05:00
Jeremy Stretch
bdcf4c4154
Fixes #15220 : Move IP mask validation logic from form to model
2024-03-01 11:28:48 -05:00
Jeremy Stretch
3bd28e2efe
Improve serializer initialization performance
2024-03-01 10:18:58 -05:00
Arthur
8afbb4421b
15232 fix inventory item template permission
2024-02-29 15:30:51 -05:00
Jeremy Stretch
55ef24d56d
Fixes #15316 : Fix selection of 3DES encryption for IKE & IPSec proposals
2024-02-29 14:54:41 -05:00
Jeremy Stretch
7008ffe6d8
Rename 'requested_fields' kwarg to 'fields' on BaseSerializer
2024-02-27 17:01:29 -05:00
Jeremy Stretch
78e284c14f
Initialize dynamically-resolved serializers with nested=True
2024-02-27 14:56:36 -05:00
Jeremy Stretch
ca56c8b9ef
Add dynamic nesting support to SerializedPKRelatedField
2024-02-27 14:00:42 -05:00
Jeremy Stretch
c382ba0ae0
Refactor REST API serializers to avoid circular imports
2024-02-27 13:26:43 -05:00
Arthur
497de46ad9
9856 update types
2024-02-26 14:13:44 -08:00
Jeremy Stretch
c146f5e1b5
Replace nested serializers with primary serializers where possible
2024-02-26 16:49:30 -05:00
Arthur
44f4d60f5d
9856 update types
2024-02-26 12:57:53 -08:00
Arthur
3e284c59d8
9856 update types
2024-02-26 11:26:50 -08:00
Arthur
4d0d19bb76
9856 update types
2024-02-26 11:18:03 -08:00
Arthur
0387cb0a48
9856 update types
2024-02-26 11:04:29 -08:00
Arthur
82c08d9820
9856 update types
2024-02-26 09:46:03 -08:00
Jeremy Stretch
d042e6f69d
Closes #15238 : Include description field in brief mode
2024-02-26 11:39:31 -05:00
Arthur
ce003b2b1c
9856 update types
2024-02-26 08:20:32 -08:00
Arthur
6bb9d68f60
9856 update types
2024-02-23 15:56:21 -08:00
Arthur
69134dbb50
9856 update types
2024-02-23 14:36:41 -08:00
Abhimanyu Saharan
edb7d24b45
Added installed_module on NestedModuleBaySerializer ( #15245 )
...
* added installed_module on NestedModuleBaySerializer #15243
* Update test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-23 15:54:47 -05:00
Abhimanyu Saharan
17ec264f3a
added display on virtual disk api #15241
2024-02-23 15:33:35 -05:00
Jeremy Stretch
3f3bcc5eb5
Closes #15235 : Use primary serializers for REST API "brief" mode ( #15246 )
...
* Use primary serializers for brief mode
* Remove BriefModeMixin
* Correct ModuleBayTest brief_fields (see #15243 )
2024-02-23 14:21:25 -05:00
Jeremy Stretch
c21ec2139d
Delete obsolete file
2024-02-23 10:15:14 -05:00
Arthur Hanson
ca2ee436a0
Closes #14438 : Database representation of scripts
...
- Introduces the Script model to represent individual Python classes within a ScriptModule file
- Automatically migrates jobs & event rules
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-23 08:27:37 -05:00
Arthur
a5445bb61a
9856 _name to types
2024-02-22 16:56:54 -08:00
Arthur
d4812b28fd
9856 type updates
2024-02-22 16:35:24 -08:00
Jeremy Stretch
7e7e5d5eb0
#14917 : Nullify maxOptions for static select fields
2024-02-22 15:49:41 -05:00
Jeremy Stretch
3ddacf4b88
Merge branch 'develop' into feature
2024-02-21 16:24:23 -05:00
Jeremy Stretch
d7e7137582
PRVB
2024-02-21 16:04:04 -05:00
Jeremy Stretch
503c78b0db
Release v3.7.3
2024-02-21 15:46:41 -05:00
Jeremy Stretch
cb05288c4d
Update translations
2024-02-21 15:24:50 -05:00
Jeremy Stretch
0373b8aade
Update translation strings
2024-02-21 14:49:09 -05:00
Jeremy Stretch
5f159795dd
Closes #15042 : Move model registration logic to AppConfigs ( #15203 )
...
* Closes #15042 : Move model registration logic to AppConfigs
* Refactor register_model() to accept multiple models
2024-02-21 14:22:13 -05:00
Abhimanyu Saharan
8571f428b1
fixed location import #14064
2024-02-21 14:10:10 -05:00
Jeremy Stretch
276a73f820
#15094 : Fix missing format variable
2024-02-21 14:06:01 -05:00
Abhimanyu Saharan
d8fb5a819f
fixed json field save issue #14689
2024-02-21 14:00:34 -05:00
Abhimanyu Saharan
f14eac58e4
Fixed error display on parent import form ( #15213 )
...
* fixed error display on parent import form #15185
* Rename parent_form; handle errors assigned to __all__
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-21 13:50:09 -05:00
Abhimanyu Saharan
1780acc8a6
Fixes the rackelevation api schema ( #15214 )
...
* fixes the rackelevation api schema #15101
* fixes the rackelevation api schema #15101
2024-02-21 13:39:32 -05:00
Abhimanyu Saharan
a3b8262ab0
Added index on cachevalue ( #15199 )
...
* added index on cachevalue #14966
* Update netbox/extras/models/search.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* fixed migration
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-21 13:20:55 -05:00
Arthur
a1ee02cdf0
15211 fix typo on DeviceType detail view
2024-02-21 12:10:35 -05:00
Arthur Hanson
17a321a340
14405 render link_peer to CSV ( #15201 )
...
* 14405 render link_peer to csv
* 14405 review changes
2024-02-20 16:24:14 -05:00
Zacho
cf3969bc6c
Added Last Login to user/profile GUI views and the /users/user API output ( #15198 )
...
* Added Last Login to user/profile GUI and user api output
* Update netbox/templates/account/profile.html
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/templates/account/profile.html
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/templates/users/user.html
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 15:43:49 -05:00
Arthur
9b9afdcf79
15192 fix config revision if no revisions
2024-02-20 14:28:04 -05:00
Abhimanyu Saharan
50e5bb9717
added validation error for script and report constraint #15174
2024-02-20 14:15:27 -05:00
Abhimanyu Saharan
a063b5563c
Added oidc to auth list ( #15204 )
...
* added oidc to auth list #14587
* Alphabetic ordering
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 14:11:50 -05:00
Abhimanyu Saharan
8678d1a577
removed associate_by_email #14946
2024-02-20 14:10:47 -05:00
Abhimanyu Saharan
839609d101
Added allow_null for front and rear image on api ( #15200 )
...
* added allow_null for front and rear image on api #15184
* added allow_null for front and rear image on api #15184
2024-02-20 13:53:56 -05:00
Jeremy Stretch
dbcd713fe7
Fixes #15090 : Run deletion protection rules prior to enqueueing events
2024-02-20 13:22:55 -05:00
Arthur Hanson
af27bf5eff
15094 Add missing gettext to error strings for internationalization ( #15155 )
...
* 15049 add missing gettext to error strings
* 15049 add missing gettext to error strings
* 15094 review change
* 15094 review change
* Formatting cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:44:02 -05:00
Daniel Sheppard
29f029d480
Fixes : #14058 - Limits platform selection to manufacturer and platforms with no manufacturer ( #15183 )
...
* Fixes : #14058 - Limits platform selection to manufacturer and platforms with no manufacturer
* Apply suggestions from code review
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:28:15 -05:00
Jeremy Stretch
bd7d4a3f34
Fixes #14079 : Explicitly remove M2M assignments to objects being deleted to ensure change logging
2024-02-16 11:42:27 -05:00
Jeremy Stretch
de5c5aeb2a
Fixes #14952 : Update existing AutoSyncRecord when changing the data file of an auto-synced object
2024-02-16 11:38:47 -05:00
Arthur
3c24cf97b6
Merge branch 'feature' into 9856-strawberry-2
2024-02-15 16:04:45 -08:00
Arthur
a0d0ab1e78
9856 misc fixes
2024-02-15 16:03:47 -08:00
Arthur
ff03abf23e
9856 _name
2024-02-15 15:33:51 -08:00
Arthur
c3cbefc625
9856 GFK working
2024-02-15 14:54:29 -08:00
Arthur
1aa5b0d5a1
9856 GFK working
2024-02-15 14:54:04 -08:00
Abhimanyu Saharan
2e74952ac6
added missing import #15058
2024-02-16 01:20:54 +05:30
Jeremy Stretch
7abb2b2ab5
Closes #15131 : Dynamic queryset annotations for REST API endpoints ( #15152 )
...
* Introduce RelatedObjectCountField
* Introduce get_annotations_for_serializer() and enable dynamic annotations
* Add RelatedObjectCountFields to serializers; remove static annotations from querysets
* Remove annotations cleanup logic from BriefModeMixin
* Annotate type for RelatedObjectCountField
* Remove redundant field on TagSerializer
* Add missing reverse relationship for power feeds to rack
* Refactor RelatedObjectCountField to take a single relationship name
2024-02-15 14:49:27 -05:00
Arthur
d37414d69a
9856 update types
2024-02-15 11:06:41 -08:00
Arthur
cc5703c9dd
Merge branch 'feature' into 9856-strawberry-2
2024-02-14 10:43:21 -08:00
Jeremy Stretch
b3f25a400b
Closes #15087 : Support for specifying a subset of API serializer fields ( #15122 )
...
* Enable dynamic field inclusion for REST API serializers
* Recurse through nested serializer when resolving prefetches
* Remove obsolete calls to prefetch_related() for API views
* Remove support for brief_prefetch_fields viewset attribute
* Rename query parameter
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode (#15134 )
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode
* Update API test
* Restore get_queryset() on BriefModeMixin, minus prefetch logic
* get_prefetches_for_serializer() should reference serializer field source if set
2024-02-14 09:28:37 -05:00
Jeremy Stretch
7cc215437f
Fixes #15127 : Add missing group column on tunnels table
2024-02-14 09:27:01 -05:00
Jeremy Stretch
20824ceb25
Closes #13283 : Add context to dropdown options ( #15104 )
...
* Initial work on #13283
* Enable passing TomSelect HTML template attibutes on DynamicModelChoiceField
* Merge disabled_indicator into option_attrs
* Add support for annotating a numeric count on dropdown options
* Annotate parent object on relevant fields
* Improve rendering of color options
* Improve rendering of color options
* Rename option_attrs to context
* Expose option context on ObjectVar for custom scripts
* Document dropdown context variables
2024-02-13 16:31:17 -05:00
Arthur
4fab68a138
9856 fixes to circuits type specifiers
2024-02-13 10:28:26 -08:00
Jeremy Stretch
2d70b50286
Fixes #15059 : Correct IP address count link in VM interfaces table
2024-02-13 12:16:11 -05:00
Jeremy Stretch
01fa2710eb
Fixes #15067 : Fix uncaught exception when attempting invalid device bay import
2024-02-13 12:15:15 -05:00
Arthur
99b01981d4
9856 fixes to circuits type specifiers
2024-02-13 08:32:21 -08:00
Jeremy Stretch
12d830bcf2
Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode ( #15134 )
...
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode
* Update API test
2024-02-13 11:29:53 -05:00
Jeremy Stretch
c37dfdc150
Fixes #15091 : Fix initial active tab when editing an L2VPN termination
2024-02-13 11:27:50 -05:00
Jeremy Stretch
df910928f2
Fixes #15126 : group field should be optional when creating VPN tunnel via REST API
2024-02-13 09:55:33 -05:00
Jeremy Stretch
1f800a975f
Fixes #15115 : Fix unhandled exception with invalid permission constraints
2024-02-13 09:55:07 -05:00
Arthur
eca0966d92
9856 cleanup
2024-02-12 13:05:57 -08:00
Arthur
7779e87ff3
9856 cleanup
2024-02-12 13:01:27 -08:00
Arthur
a171a02844
Merge branch 'feature' into 9856-strawberry-2
2024-02-12 11:24:10 -08:00
teapot
c7ae2db8e3
Fixes #15111 : Correct typo in error message
2024-02-12 08:44:22 -05:00
Jeremy Stretch
f41105d5e3
Remove unused Javascript
2024-02-09 16:30:14 -05:00
Jeremy Stretch
25723aebe0
Closes #15100 : Remove obsolete NullableCharField class
2024-02-09 15:57:42 -05:00
Jeremy Stretch
d8c6dad9d9
Closes #15099 : Remove legacy device_role & device_role_id filters for devices
2024-02-09 15:55:03 -05:00
Jeremy Stretch
64039a8833
#14917 : Remove obsolete slim-select styling
2024-02-09 14:51:21 -05:00
Jeremy Stretch
d63e1dacbf
Closes #14917 : Replace slim-select with tom-select ( #15080 )
...
* Experimenting
* Remove testing resources
* Replace ApiSelect with TomSelect
* Add color support
* Add clear button
* Clear cached options when searching dynamic selects
* Add support for static parameters
* Refactor TomSelect implementation
* Add dynamic parameter support
* Limit number of options to 100
* Remove redundant api_url definitions for user model
* Add support for disabled indicator
* Remove obsolete value-field attr on dynamic select widgets
* Remove obsolete fetch_trigger kwarg from dynamic model choice widgets
* Remove obsolete empty_label kwarg from dynamic model choice widgets
* Add support for API path variables
* Add support for setting a 'null' option
* Annotate depth for recursive hierarchies
* Misc cleanup
* Remove obsolete APISelect code
* Remove slim-select & just-debounce-it
* Clean up type validation
* Closes #14237 : Clear child selections on change to parent selection
* Use an MD icon for the clear button
* Use an MD icon for the clear button
* Explain why noUnusedParameters is disabled
2024-02-08 15:07:04 -05:00
Jeremy Stretch
040dbcc875
Fixes #15070 : Fix inclusion of config_template field on REST API serializer for virtual machines
2024-02-08 09:10:24 -05:00
Jeremy Stretch
64b2ebdc79
Fixes #15084 : Fix "add export template" link
2024-02-08 08:47:16 -05:00
Arthur
6d7678f017
9856 fix old decorator
2024-02-07 16:45:13 -08:00
Arthur
48b0cdd04a
9856 virtualization, vpn, wireless schema
2024-02-07 16:07:15 -08:00
Arthur
d3fc026b5d
9856 ipam and tenant schema
2024-02-07 15:43:29 -08:00
Arthur
ed1e1ae939
9856 extras schema
2024-02-07 09:03:22 -08:00
Arthur Hanson
11697d19a6
12510 Merge Scripts and Reports ( #14976 )
...
* 12510 move reports to use BaseScript
* 12510 merge report into script view
* 12510 add migration for job report to script
* 12510 update templates
* 12510 remove reports
* 12510 cleanup
* 12510 legacy jobs
* 12510 legacy jobs
* 12510 fixes
* 12510 review changes
* 12510 review changes
* 12510 update docs
* 12510 review changes
* 12510 review changes
* 12510 review changes
* 12510 review changes
* 12510 main log results to empty string
* 12510 move migration
* Introduce an internal log level for debug to simplify Script logging
* Misc cleanup
* Remove obsolete is_valid() method
* Reformat script job data (log, output, tests)
* Remove ScriptLogMessageSerializer
* Fix formatting of script logs
* Record a timestamp with script logs
* Rename _current_method to _current_test
* Clean up template
* Remove obsolete runreport management command
* Misc cleanup & refactoring
* Clean up template
* Clean up migration
* Clean up docs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-07 12:02:09 -05:00
Arthur
460b57dbf7
9856 dcim schema
2024-02-07 07:32:10 -08:00
Arthur
cdcaa9055e
9856 core schema
2024-02-06 14:52:29 -08:00
Arthur
fb4d63f8a2
9856 update strawberry types
2024-02-06 14:02:55 -08:00
Arthur
663af64ec1
9856 update strawberry types
2024-02-06 13:52:41 -08:00
Arthur
5e40ebd331
9856 merge feature
2024-02-06 11:07:38 -08:00
Jeremy Stretch
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
Jeremy Stretch
28aee9b69a
PRVB
2024-02-05 14:12:50 -05:00
Jeremy Stretch
a331ba65cb
Release v3.7.2
2024-02-05 13:56:52 -05:00
Smixi
4ba0ec78cf
fix: performance for get__available_ips for prefix ( #15041 )
2024-02-05 13:30:59 -05:00
Arthur Hanson
317bef6796
12795 custom user model ( #15005 )
...
* 12795 users.User migration
* 12795 users.User migration
* 12795 review changes
* 12795 fix user model registration
* 12795 fix user model registration
* 12795 update migration
* 12795 update migration
* 12795 update migration
* 12795 add comment to migration db_table
* Tweak import to avoid class name collision
* 12795 add comment for _register_features requirement
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-05 13:24:03 -05:00
Jeremy Stretch
93edf74f7c
Fixes #14945 : Fix "select all" button for device type components ( #15027 )
2024-02-05 13:05:25 -05:00
Jeremy Stretch
8a77ec70f2
Fixes #15015 : Pre-populate assigned tenant when allocating next available IP address under prefix view
2024-02-05 12:59:50 -05:00
Daniel Sheppard
0eba3acdb8
Closes : #14570 - Remove extra query for job under scripts and reports detailed view ( #14998 )
...
* Closes : #14570 - Remove extra query for job under scripts and reports detailed view
* Add report.result back as it is used by report.html
2024-02-05 12:13:03 -05:00
Daniel Sheppard
32083e58c0
Fixes : #14840 - Forces API to use django user model instead of proxy model ( #14881 )
...
* Fixes : #14840 - Forces API to use proxy model
* Update tests to use proxy model
* Revert "Update tests to use proxy model"
This reverts commit 1d784cfe5d
.
* Revert "Fixes: #14840 - Forces API to use proxy model"
This reverts commit df85cc967c
.
* More realistic change to resole issue with netboxusers-list
* Revert "More realistic change to resole issue with netboxusers-list"
This reverts commit 15df8082aa
.
* Fixes : #14840 - Better fix for netboxusers-list
* Swap model for serializer from proxy model
2024-02-05 11:57:30 -05:00
Jeremy Stretch
5d9311eecf
Closes #12325 : Disable the Django admin UI by default ( #15008 )
...
* Disable the Django admin UI by default
* Remove outdated references to the admin UI
* Update tests
2024-02-05 11:44:52 -05:00
Arthur Hanson
8e8d302850
15020 Update assigned VMs site when move cluster ( #15031 )
...
* 15020 Update assigned VMs site when move cluster
* 15020 call super
* 15020 change to use denormalized
2024-02-05 11:41:33 -05:00
Jeremy Stretch
fde9c1664a
Closes #13729 : Censor sensitive data source parameters in change log ( #15032 )
2024-02-05 11:35:12 -05:00
Daniel Sheppard
1a9149d7d4
Fixes : #14839 - Check for tunnel termination type in data and instance in addition to intially passed data. ( #14995 )
...
* Fixes : #14839 - Check for tunnel termination type in additional instances
* Incorporate recommended changes
2024-02-05 09:59:24 -05:00
Arthur Hanson
31fb6961e9
14947 fix for missing changelog if only update m2m ( #14986 )
...
* 14947 fix for missing changelog if only update m2m
* 14947 review change
* 14947 DRY save logic
* 14947 DRY save logic
* Refactor logic
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-05 09:52:10 -05:00
Arthur
1b6fc49a3e
14999 fix FHRP create and add another
2024-02-02 14:52:38 -05:00
Jeremy Stretch
9f25289ce2
Fixes #15025 : can_add() template filter should accept a model (not an instance)
2024-02-02 11:59:44 -05:00
ChrisPortman
59510b4bd0
Issue #14962 VM to merge directly related site context ( #14992 )
...
* Issue #14962 VM to merge directly related site context
* Cleanup & rewrite test
---------
Co-authored-by: Chris Carter <chris.carter@spinlocksecurity.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-02 10:16:07 -05:00
Arthur Hanson
93b77cb4f0
14729 Move background tasks list from admin UI to Primary UI ( #14825 )
...
* 14729 rq table
* 14729 rq table
* 14729 rq table
* 14729 rq table
* 14729 jobs table
* 14729 jobs detail
* 14729 formatting fixup
* 14729 formatting fixup
* 14729 format datetime in tables
* 14729 display job id
* Update templates for #12128
* 14729 review fixes
* 14729 review fixes
* 14729 review fixes
* 14729 review fixes
* 14729 merge feature
* 14729 add modal
* 14729 review changes
* 14729 url fixup
* 14729 no queue param on task
* 14729 queue pages
* 14729 job status handling
* 14729 worker list
* 14729 exec detail and common view
* 14729 worker detail
* 14729 background task delete
* 14729 background task delete
* 14729 background task requeue
* 14729 background task enqueue stop
* 14729 review changes
* 14729 remove rq from admin
* 14729 add tests
* 14729 add tests
* Clean up HTML templates
* Clean up tables
* Clean up views
* Fix tests
* Clean up tests
* Move navigation menu entry for background tasks
* Remove custom deletion form
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-01 11:44:07 -05:00
Jeremy Stretch
694a7d243a
Relocate "add" buttons for embedded object tables
2024-01-31 17:59:14 -05:00
Jeremy Stretch
d302982a88
Fix left padding of login button in top menu
...
Clean up spacing for nav pills
Markdown fields should default to using monospace font
Wrap action buttons in object page header
Fix page link style for non-HTMX paginators
Clean up styling of Markdown preview widget
Fix spacing around placeholder text for empty panel tables
Remove obsolete templates
Tweak checkbox input spacing
Fix toggling of clear button for quick search
Fix positioning of quick search filter dropdown
Fix positioning of 'highlight device' button
Fix styling for custom field group names
Widen buttons on nav menu items
Restyle the login page
Fix active nav-pill background color in dark mode
Fix spacing around 'map' button for sites
2024-01-31 17:59:14 -05:00
Jeremy Stretch
780ce77aed
Closes #12776 : Utilize the htmx_table tag for all embedded object tables
2024-01-30 17:17:08 -05:00
teapot
1b9e6bed55
Fixes #14960 : Correct typo in label
2024-01-29 08:48:02 -05:00
Abhimanyu Saharan
b9cac97b73
remove GIT_PATH #14942
2024-01-25 17:26:32 -05:00
Abhimanyu Saharan
3dc43861c5
fixed typo in cluster bulk edit #14936
2024-01-25 17:24:58 -05:00
Jeremy Stretch
b554e70eda
Squash migrations
2024-01-25 12:35:04 -05:00
teapot
441e24bca7
Fixes #14934 : Correct typo in label
2024-01-25 12:20:21 -05:00
Arthur
c8fb948a91
14511 Fix connected endpoints for GraphQL
2024-01-25 08:47:32 -05:00
Arthur
f26ac3e7cb
14920 add help to status field in virtual device context import
2024-01-25 08:31:40 -05:00
Jeremy Stretch
487f1ccfde
Fixes #14703 : Catch exceptions when rendering dashboard and revert to default
2024-01-24 17:19:07 -05:00
Jeremy Stretch
481d16de08
Fixes #14838 : JSONField should treat initial form data as JSON
2024-01-24 17:18:17 -05:00
Jeremy Stretch
23e201cec6
Fixes #14905 : Fix miscellaneous errors with string translations
2024-01-24 17:05:02 -05:00
Per von Zweigbergk
8fadd6b744
Merge branch 'develop' into choices-css-rewrite
2024-01-23 21:50:06 +01:00
Per von Zweigbergk
c93413dc9c
Move interface colour logic into SCSS where it belongs
2024-01-23 21:33:09 +01:00
Per von Zweigbergk
bf362f4679
Hardcode cable status colours
2024-01-23 20:58:10 +01:00
Per von Zweigbergk
da7f67c359
Refactor noisy getter methods into neat lambdas
2024-01-23 20:49:10 +01:00
Jeremy Stretch
fea8efa149
Closes #14611 , #14808 : Add Japanese & Turkish translations
2024-01-23 12:48:15 -05:00
Jeremy Stretch
0df7ca4309
Update translation sources
2024-01-22 16:18:20 -05:00
Jeremy Stretch
cd8e977418
Fixes #14879 : Include custom fields in REST API representation of data sources
2024-01-22 15:54:26 -05:00
Jeremy Stretch
88e4559b5a
Fixes #14885 : Add missing 'group' field to tunnel creation form
2024-01-22 15:53:29 -05:00
Jeremy Stretch
d606749335
Fixes #14892 : Omit username when running report/script via command line
2024-01-22 15:52:03 -05:00
Daniel Sheppard
fd5392563f
Fixes #14572 - Constrains JobView (and related views) badge to specific named job ( #14754 )
...
* Fixes #14572 - Constrains JobView (and related views) badge to specific named job
* Adjust report views to resolve same problem
* Fixed PEP8 error
* Update netbox/templates/extras/script/base.html
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Move function to method on PythonModuleMixin
* Update netbox/extras/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/extras/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/extras/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/extras/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update to mixin and view
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-22 14:01:53 -05:00
Martin
79e0d3ae67
Fixes #14847 : Relax requirement for IKE policy ( #14878 )
...
* Fixes #14847 : Relax requirement for IKE policy
* Docs tweak
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-22 13:27:55 -05:00
Jeremy Stretch
222388b988
Revert "Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )"
...
This reverts commit 874685fd6f
.
2024-01-22 13:15:43 -05:00
Jeremy Stretch
1d41a8ace5
Closes #14735 : Implement django-htmx ( #14873 )
...
* Install django-htmx
* Replace is_htmx() function with request.htmx
* Remove is_embedded() HTMX utility
* Include django-htmx debug error handler
2024-01-22 12:09:15 -05:00
Jeremy Stretch
2b4ec9dc20
Update migration file for dummy plugin
2024-01-19 16:12:50 -05:00
Jeremy Stretch
1651a307c8
#14872 : Permit makemigrations --check without setting DEVELOPER=True
2024-01-19 16:08:58 -05:00
Julio Oliveira at Encora
48168de4ff
Fixes #14755 : ValueError in web UI after REST API accepts invalid cus… ( #14804 )
...
* Fixes #14755 : ValueError in web UI after REST API accepts invalid custom-field choice-set data
* PR Comments Addressed
* Set max_length=2 on extra_choices items; remove custom validation logic
* Move test for invalid choices to CustomFieldChoiceSetTest
* Omit unused imports
---------
Co-authored-by: julio.oliveira <julio.oliveira@alertmedia.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-19 15:24:08 -05:00
Abhimanyu Saharan
a87d76ad17
Fixes user delete when they have a bookmark ( #14867 )
...
* fixes user delete when they have a bookmark #14851
* Include migration for user field
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-19 15:23:20 -05:00
Abhimanyu Saharan
749fc31bc4
limits ip addresses on interface tables #14645
2024-01-19 14:53:24 -05:00
Jeremy Stretch
da085e60c2
Closes #14740 : Remove BootstrapMixin ( #14841 )
...
* Introduce custom form widget templates to apply CSS classes
* Apply both mandatory and optional CSS classes to form widgets
* Omit required & placeholder attrs
* Move annotation of field validation failures to CSS
* Remove BootstrapMixin class
* Remove obsolete ComponentTemplateImportForm class
* Remove obsolete custom forms for login & password change
* Clean up obsolete accommodations for 'required' widget attr
2024-01-19 14:02:33 -05:00
Jeremy Stretch
874685fd6f
Closes #13647 : Squash all migrations prior to v3.7 ( #14853 )
...
* Regenerate pre-v3.7 migrations
* Annotate replaced migrations
* Rename dependencies; remove FeatureQuery references
* Add missed replacement
2024-01-19 13:55:22 -05:00
Arthur Hanson
ef5e10d360
14728 Move installed plugins list from admin UI to NetBox UI ( #14768 )
...
* 14728 move plugins view from admin
* 14728 move plugins view from admin
* 14728 remove plugins view from admin
* Update template for #12128
* 14728 review fixes
* 14728 review fixes
* 14728 review fixes
* 14728 review fixes
* 14728 configure table
* Clean up table columns
* Fix app config lookup for plugins referenced by dotted path
* Move template; fix table display
* Fix user table configuration
* Remove nonfunctional quick search
* Limit PluginListView to staff users
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-19 11:27:15 -05:00
Jeremy Stretch
073c2dc8ca
Closes #12128 : Refresh the web UI to employ the Tabler CSS framework ( #14833 )
...
* Remove dark mode styling
* Condense & rename light mode stylesheet
* Upgrade to Bootstrap 5.3.2
* Swap out Bootstrap for Tabler; remove custom styling
* Update base page layout for Tabler
* Update login page
* Bump node to v18
* Update button styles
* Update object list view
* Tweak navbar size
* Clean up dashboard widgets
* Ditch separate stylesheet for print media
* Remove simplebar
* Remove obsolete sidebar styling
* Clean up object view template
* Clean up object edit template
* Standardize primary button sizing
* Clean up object list styling
* Add buttons for add & import to navigation menu
* Fix global search bar
* Fix slim-select form widget styling
* Fix toast styling
* Set base fonts
* Clean up paginator styling
* Clean up navigation menu group headings
* Clean up footer links
* Clean up card styles
* Move SVG styles to a designated directory
* Restructure SCSS files
* Remove obsolete/redundant dependencies
* Fix icon spacing
* Update background color classes
* Tweak banner & footer styling and spacing
* Fix badge background colors in table content
* Bump @types/bootstrap to 5.2.10
* Clean up form layouts
* Fix object selector button style
* Fix icon padding inside small buttons
* Fix icon & badge spacing inside buttons and tabs
* Hide paginator for empty pages
* Fix hover color for list items (Tabler bug #1694 )
* Fix width of checkbox column in empty tables
* Clean up bulk edit template
* Fix border color of reslug button
* Package & serve Google fonts locally
* Fix tab styling
* Reduce vetical space at top of dashboard
* Remove obsolete content-wrapper template block
* Fix icon spacing in dropdown menu items
* Fix color label sizing
* Separate bulk delete form & object list into tabs
* Fix styling of filter group headings
* Fix styling for object changelog & journal views
* Standardize ordering & styling of action buttons
* Fix designation of active menu item
* Automatically expand menu section containing the active link
* Clean up nav menu styling
* Remove button colors; hide buttons except on hover/active
* Highlight menu group containing the active item
* Update & standardize alert styling
* Refactor base templates to ensure consistent display of header content
* Tweak styling for links inside badges
* Clean up top menu
* Fix JSON/YAML toggles for config context data
* Fix object template header
* Constrain tabs to container-xl; tweak header margins
* Fix object identifier styling
* Fix positioning of card header buttons
* Remove padding from HTMX tables inside cards
* Ensure consistent use of row headings in attribute tables
* Remove padding surrounding tables inside cards
* Remove obsolete CSS classes
* Misc cleanup of old styling
* Refactor 'controls' template block; ditch old classes
* Fix login button sizing
* Limit object edit form width
* Append asterisk to required form field labels
* Remove obsolete styling
* Remove obsolete styling
* Fix position of progress bar outside label
* Fix alignment of delete button in report/script lists
* Fix <pre> styling
* Clean up page headers
* Replace SVG icons with Material Design icons
* Restore dark mode togle functionality
* Fix top navbar background color under dark mode
* Rebuild static assets
2024-01-17 16:25:42 -05:00
Jeremy Stretch
ebf6ce1b01
PRVB
2024-01-17 15:02:23 -05:00
Jeremy Stretch
61739a0bc5
Release v3.7.1
2024-01-17 14:37:27 -05:00
Jeremy Stretch
66db4f3874
Fixes #14827 : Ensure all matching event rules are processed in response to an event
2024-01-17 14:09:06 -05:00
Jeremy Stretch
5de2dea8a6
Fixes #14816 : Ensure default contact assignment ordering is consistent
2024-01-17 13:29:04 -05:00
Jeremy Stretch
621c3ccfa4
Fixes #14817 : Relax required fields for IKE & IPSec models on bulk import
2024-01-17 13:28:27 -05:00
Jeremy Stretch
70dd8f17b6
Fixes #14778 : Allow null values in CustomFieldSerializer object_type & choice_set fields
2024-01-16 13:08:02 -05:00
Jeremy Stretch
c173c26e35
Fixes #14791 : Do not annotate available IPs when searching
2024-01-16 13:07:13 -05:00
Daniel Sheppard
bb806e21f7
Fixes : #13844 - Change site filter to use available_at_site instead of site_id
2024-01-16 11:28:46 -05:00
Jorik Jonker
c5cbb99bf0
fix: add missing DH group 15 (3072)
...
DH group 15 was not selectable in the UI, and I strongly suspect this
patch will fix that, as that particular choices was missing in
`choices.py`.
Signed-off-by: Jorik Jonker <jorik@kippendief.biz>
Fixes #14793
2024-01-16 11:05:21 -05:00
Arthur Hanson
8254e707b6
12851 replace bleach with nh3 ( #14767 )
...
* 12851 replace bleach with nh3
* Move tags & attributes lists to constants.py
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-11 09:31:32 -05:00
Arthur
2d4fbea8ff
9856 compatability fixes
2024-01-10 12:46:55 -08:00
Jeremy Stretch
2221a9d71f
Fixes #14749 : Remove errant translation wrapper from DeviceBay installed_device
2024-01-10 14:18:46 -05:00
Moritz Geist
2c93dd03e1
account for swapped terminations in cable object
...
also remove out-of-scope changes to tooltips
2024-01-10 14:29:46 +01:00
Arthur
28c48b3d6c
9856 compatability fixes
2024-01-09 14:23:10 -08:00
Moritz Geist
ced44832f7
Remove dangling logging message used during development
2024-01-09 14:22:36 +01:00
Moritz Geist
6af3aad362
Fixes #14722 , Fixes #13922 : Update the CableRender
...
This commit updates the cable rendering logic to fix
both issue #14722 and #13922 . Before, objects, terminations
and cables where drawn in the svg without context of each
other.
Now the following changes are applied:
- Hosts and Terminations are where possible sorted alphabetically
- Terminations and Cables are visually connected, and if necessary not in a vertical line
- Terminations and Hosts are visually aligning
- Cable Tooltips contain more information
2024-01-09 13:51:09 +01:00
Jeremy Stretch
e1e198ec4f
Fixes #14706 : Relax one-to-one mapping of tunnel termination to IP address
2024-01-08 12:32:02 -05:00
Jeremy Stretch
5223486fd8
Fixes #14709 : Correct typo in TYPE_VIRTUALMACHINE
2024-01-08 12:31:31 -05:00
Jeremy Stretch
ea5d33f358
Fixes #14663 : Fix terminating to a VM interface when creating a new tunnel
2024-01-08 12:31:31 -05:00
Arthur Hanson
58227293f3
14637 update to Django 5 ( #14675 )
...
* 14637 update to Django 5
* 14637 fix tests
* 14637 remove extra assignment
* Syntax tweak
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-01-05 13:30:04 -05:00
Jeremy Stretch
8e20581da7
PEP8 cleanup
2024-01-05 13:08:37 -05:00
Arthur
7a222a6501
9856 update imports
2024-01-03 17:20:13 -08:00
Arthur
dbe4097a78
Merge branch 'feature' into 9856-strawberry-2
2024-01-03 15:33:08 -08:00
Jeremy Stretch
7bedf48a97
Closes #14638 : Drop support for Python 3.8 and 3.9
2024-01-03 13:33:00 -05:00
Arthur
34d9b78d19
9856 merge feature
2024-01-03 10:18:29 -08:00
Jeremy Stretch
cd7d038fc0
Closes #14657 : Remove backward compatibility for old permissions mapping under ActionsMixin
2024-01-03 12:01:10 -05:00
Jeremy Stretch
a5fa30e851
Closes #14092 : Remove backward compatibility for importing extras.plugins
2024-01-03 12:00:44 -05:00
Jeremy Stretch
f09658b9c3
Closes #14658 : Remove backward compatibility for process_webhook()
2024-01-03 12:00:20 -05:00
Jeremy Stretch
c78a792ccc
#14132 : Annotate WebhooksMixin renaming under breaking changes
2024-01-03 10:59:32 -05:00
Jeremy Stretch
2d19c5068f
#14132 : Annotate WebhooksMixin renaming under breaking changes
2024-01-03 10:57:29 -05:00
Jeremy Stretch
982ef3045d
PRVB
2023-12-29 10:06:51 -05:00
Jeremy Stretch
d99e6510e1
Release v3.7.0
2023-12-29 09:43:09 -05:00
Jeremy Stretch
33af942571
Closes #14624 : Add action object column to EventRuleTable
2023-12-28 15:56:22 -05:00
Jeremy Stretch
224484ebb6
Closes #14434 : Add termination object filters for cables ( #14617 )
...
* Add termination object filters for cables
* Add tests for new filters
2023-12-28 15:39:14 -05:00
Jeremy Stretch
d930c4e36e
Apply filterset & test changes for #14631 & #14629
2023-12-28 14:43:08 -05:00
Jeremy Stretch
d5c1cb0ef6
Merge branch 'develop' into feature
2023-12-28 14:20:04 -05:00
Jeremy Stretch
199685d98b
Release v3.6.9
2023-12-28 13:58:34 -05:00
Jeremy Stretch
3ef2db81e8
Closes #14629 : Add filter tests for all q and description filters
2023-12-28 13:53:16 -05:00
Jeremy Stretch
3bacee16bd
Closes #14631 : Ensure description filters are available on all relevant models
2023-12-28 13:53:16 -05:00
Daniel Sheppard
45c646dcec
Fixes #14482 - Fix validation error when primary IP is moved ( #14514 )
...
* Fix validation when primary IP is moved.
* Fix views test
* Work on excluding assigned_objects
* Modify clean() on model and form to properly catch error
* Fix test failure
* Fix test to check for PK
* Remove model_form check
2023-12-28 13:28:05 -05:00
Jeremy Stretch
fedcbaf4c8
Fixes #14620 : Permit setting device type U height to 0 during bulk edit
2023-12-28 10:06:25 -05:00
MengYX
359c0cf3a0
Fix typo in filtersets.py
...
fix typo which causing exception `Cannot resolve keyword 'description_icontains' into field`
2023-12-28 08:47:43 -05:00
Jeremy Stretch
1f2f0860fe
Merge branch 'develop' into feature
2023-12-27 16:34:38 -05:00
Jeremy Stretch
07da3f6d33
Release v3.6.8
2023-12-27 16:00:16 -05:00
Jeremy Stretch
4eadc8cfe4
Closes #14240 : Increase min/max validation values for custom fields
2023-12-27 15:41:26 -05:00
Jeremy Stretch
0613e8e95c
Fixes #14613 : Fix display of current configuration parameters
2023-12-27 15:32:11 -05:00
Jeremy Stretch
113c60a44a
Fixes #13909 : Ignore empty choices when populating dynamic choice fields from initial data
2023-12-27 14:32:40 -05:00
Jeremy Stretch
8a237561ef
Closes #14596 : Match against description field when searching for devices
2023-12-27 13:49:39 -05:00
Jeremy Stretch
b955751349
Fixes #14517 : Ensure reservations tab is always displayed under rack view
2023-12-27 13:42:26 -05:00
Jeremy Stretch
d6c8d1581c
Closes #11039 : List parent prefixes under IP range view
2023-12-27 12:53:30 -05:00
Jeremy Stretch
e6642b5f5b
Fixes #11816 : Detach group/site validation error from group field
2023-12-27 12:51:51 -05:00
Jeremy Stretch
a67236fc3c
Fixes #13812 : Record data source sync failure when run via syncdatasource command
2023-12-27 12:51:03 -05:00
Jeremy Stretch
634681a72e
Fixes #13606 : Fix filtering by null for multiselect custom fields
2023-12-27 12:49:31 -05:00
Jeremy Stretch
43909ee33f
Fixes #13649 : Permit zero-length cables
2023-12-26 09:27:58 -05:00
Jeremy Stretch
99467e8f66
Fixes #12731 : Support custom validation for many-to-many fields ( #14516 )
...
* WIP
* Enforce custom validators during bulk edit
* Add bulk edit M2M validation test
* Clean up tests
* Add custom validation test for bulk import
* Misc cleanup
2023-12-22 10:01:05 -05:00
Jeremy Stretch
00807d1e52
Fixes #14550 : Fix changing event rule action type from webhook to script ( #14571 )
...
* Fixes #14550 : Fix changing event rule action type from webhook to script
* Remove action_parameters from form; set on instance under save()
2023-12-22 09:54:08 -05:00
Jeremy Stretch
0d08205ab1
Fixes #14532 : Device/VM change record should accurately reflect when primary/OOB IP is deleted
2023-12-22 08:47:51 -05:00
Jeremy Stretch
e5c565cbf4
Closes #14119 : Remove redundant check for to_objectchange()
2023-12-21 16:26:20 -05:00
Jeremy Stretch
f0b9008529
Fixes #14575 : Fix display of the tags column under VDC table
2023-12-21 16:00:44 -05:00
Daniel Sheppard
8dfec7e2b2
Closes #14538 - Add available_at_site filter ( #14541 )
...
* Closes #14538 - Add available_at_site filter
* Add tests
* Fix tests
2023-12-21 15:40:57 -05:00
Azmodeszer
3f4a65cc5c
added ! to safe characters
2023-12-21 15:10:38 -05:00
Jeremy Stretch
58f925c261
Closes #14503 : Include additional display attributes for search indexers
2023-12-21 14:36:42 -05:00
Jeremy Stretch
326b54b7e0
Closes #14579 : Add user language preference
2023-12-21 14:27:52 -05:00
Jeremy Stretch
3905ddf163
Add initial message maps for es, fr, pt, and ru
2023-12-21 13:31:16 -05:00
Jeremy Stretch
3cd2432aa1
Rebuild source messages
2023-12-21 12:58:45 -05:00
Prince Kumar
12beac4f1a
fix the result of script jobs #14549
2023-12-20 15:15:02 -05:00
Jeremy Stretch
a233dc91fe
Closes #14536 : Enable ENFORCE_GLOBAL_UNIQUE by default
2023-12-20 11:09:40 -05:00
Jeremy Stretch
b794bd6fb8
Fixes #14499 : Relax requirements for encryption/auth algorithms on IKE & IPSec proposals
2023-12-19 14:44:22 -05:00
Jeremy Stretch
96878cfca6
Closes #14551 : Show assigned tunnel (if any) under interface view
2023-12-19 10:31:18 -05:00
Jeremy Stretch
25e67eb555
Merge branch 'develop' into feature
2023-12-15 16:52:42 -05:00
Jeremy Stretch
ec245b968f
PRVB
2023-12-15 16:46:53 -05:00
Jeremy Stretch
4cdc30a7c5
Release v3.6.7
2023-12-15 16:25:24 -05:00
kkthxbye
8d39181842
Fixes #12751 - Usability improvements for object selector ( #14387 )
...
* Usability improvements for object selector:
* Adds preselected filters
* Applies the filter on selection instead of requiring the search button to be pushed
* Declare selector_fields on base form class
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-12-15 16:07:15 -05:00
Arthur Hanson
224d64007a
14147 Prevent logging to Change Log when no changes are made ( #14477 )
...
* 14147 Prevent logging to Change Log when no changes are made
* 14147 add test
* 14147 add exclude_fields to serialize_object
* 14147 make skip empty default to True
* 14147 remove override of to_objectchange
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-12-15 15:17:45 -05:00
Jeremy Stretch
c81869c795
Fixes #14533 : Fix quick search under VLAN group VLANs list
2023-12-15 13:59:31 -05:00
Jeremy Stretch
929d4d2c95
Fixes #14522 : Fix filtering contact assignments by group
2023-12-15 13:58:50 -05:00
Daniel Sheppard
8a4233aca1
Update create_userconfig to receive signals from NetBoxUser model in addition to User model.
2023-12-14 17:07:57 -05:00
Jeremy Stretch
5508e125ba
Fixes #14512 : Omit unused queryset annotations for REST API requests using brief mode
2023-12-14 16:49:18 -05:00
Arthur Hanson
69bf1472d2
13983 Add nested arrays for extra_choices in CustomFieldChoiceSet ( #14470 )
...
* 13983 split array fields in CSV data for CustomFieldChoices
* 13983 fix help text
* 13983 update tests
* 13983 use re for split
* 13983 replace escaped chars
* 13983 fix escape handling
* 13983 fix escape handling
* 13983 fix escape handling
2023-12-14 15:18:56 -05:00
Arthur Hanson
b93735861d
Fixes #14081 : Fix cached counters on delete for parent-child items ( #14131 )
...
* 14081 fixed cached counters on delete for parent-child items
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-12-12 16:53:04 -05:00
Arthur Hanson
6939ae4a47
14467 change ChoiceField separator from comma to colon ( #14469 )
...
* 14467 change ChoiceField separator from comma to colon
* 14467 fix test
* 14467 fix test
* 14467 use regex for colon detection
* 14467 update tests
2023-12-12 14:31:39 -05:00
Prince Kumar
81fa4265da
add tags field in L2VPN Termination
2023-12-12 14:23:16 -05:00
Arthur Hanson
965f2de34b
14424 Remove ChangeLoggedModel from StagedChange ( #14476 )
...
* 14424 remove ChangeLoggedModel from StagedChange
* 14424 rename migration
2023-12-11 10:50:07 -05:00
Jeremy Stretch
d428dd172c
Fixes #14472 : Fix display of hidden custom fields in object edit forms
2023-12-08 08:45:03 -05:00
Jeremy Stretch
9d7192202d
Fixes #14392 : Fix admin UI bulk actions
2023-12-07 16:31:21 -05:00
Jeremy Stretch
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
Jeremy Stretch
2d1f882724
Closes #14458 : Remove the clearcache management command
2023-12-07 13:45:50 -05:00
Jeremy Stretch
e59ee3e01e
Fixes #14397 : Pass a mutable copy of request data when provisioning available IPs
2023-12-07 11:20:03 -05:00
Jeremy Stretch
5d2f499ffb
Fixes #14432 : Fix hyperlinks for global search result attributes
2023-12-07 09:52:40 -05:00
Abhimanyu Saharan
92bdaa2120
Fixes IPv6 detection from headers ( #14456 )
...
* fixes client ip detection for v6
* adds test for get_client_ip
* Employ urlparse() to strip port numbers from IPs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-12-07 09:45:30 -05:00
Jeremy Stretch
fe3f21105c
Fixes #14448 : Fix exception when creating a power feed with rack and panel in different sites
2023-12-06 15:28:47 -05:00
Jeremy Stretch
32264ac3e3
Fixes #14322 : Populate default custom field values when instantiating templated device components
2023-12-06 15:21:34 -05:00
Arthur
b34daeaacb
14401 review changes - remove migration
2023-12-06 15:16:03 -05:00
Arthur
d2c3a39ebb
14401 validate rack startion position > 0
2023-12-06 15:16:03 -05:00
Abhimanyu Saharan
b21ed6a334
adds optional classes parameter #14390
2023-12-05 13:51:28 -05:00
Jeremy Stretch
f58d80643c
Release v3.7-beta1
2023-12-05 08:25:48 -05:00
Jeremy Stretch
8db1093fdc
#9816 : Add TunnelGroup
2023-12-04 15:44:52 -05:00
Jeremy Stretch
2b7cc1e6fa
Upgrade Markdown to v3.5.1
2023-12-04 13:39:04 -05:00
Jeremy Stretch
deadde8700
#14132 : Extend EventRule template
2023-12-04 11:12:20 -05:00
Jeremy Stretch
5d57e9863d
#14132 : Simplify form logic for script EventRules
2023-12-04 10:57:29 -05:00
Jeremy Stretch
cfc20f910e
#14132 : Fix migration
2023-12-04 10:21:37 -05:00
Jeremy Stretch
625825d482
Fixes #14402 : Avoid nullifying disk value when editing a VM with disk(s) attached
2023-12-04 10:03:47 -05:00
Jeremy Stretch
5b0b366b82
#9816 : Promote IKE & IPSec proposals and policies to primary models
2023-12-04 09:28:29 -05:00
Jeremy Stretch
3faf4857cb
#9816 : Misc cleanup
2023-12-04 09:19:25 -05:00
Jeremy Stretch
42ab8ee0a2
#14153 : Import proxy ContentType for nbshell
2023-12-01 11:50:48 -05:00
Jeremy Stretch
bf182158a7
#13794 : Fix alphabetical ordering of related models
2023-12-01 11:23:38 -05:00
Jeremy Stretch
e893ffcee4
#13550 : Clean up bulk view docstrings
2023-12-01 11:08:09 -05:00
Jeremy Stretch
0c9919a5e8
#13334 : Capture exception class when recording job error
2023-12-01 10:54:46 -05:00
Jeremy Stretch
0340a5e8d6
#13299 : Clean up custom field form field help text
2023-12-01 10:24:12 -05:00
Jeremy Stretch
7a63e11a70
#13299 : Fix display of empty string values
2023-12-01 10:23:38 -05:00
Jeremy Stretch
dcd3f098ce
#13230 : Tweak field description
2023-12-01 10:10:44 -05:00
Jeremy Stretch
7cec4e9e22
#12135 : Elegantly handle ProtectedError/RestrictedError exceptions
2023-12-01 09:51:54 -05:00
Jeremy Stretch
e4824db40b
Improve rendering of JSON data
2023-12-01 09:24:23 -05:00
Jeremy Stretch
85ab7adca6
Closes #14395 : Move & rename process_webhook()
2023-12-01 08:25:01 -05:00
Jeremy Stretch
4fc0a999ea
Closes #14365 : Introduce job_start and job_end signals ( #14393 )
...
* Introduce job_start and job_end signals, and receivers to process event rules
* Complete signals documentation
2023-11-30 19:36:41 -05:00
Jeremy Stretch
b812a50ca2
Closes #14361 : Add a description field to Webhook ( #14380 )
2023-11-30 17:02:45 -05:00
Arthur Hanson
a38a38218b
14132 Add EventRule - change webhook and add in script processing to events ( #14267 )
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-30 16:36:33 -05:00
Jeremy Stretch
b83fcc6077
Merge branch 'develop' into feature
2023-11-29 20:25:44 -05:00
Jeremy Stretch
9d09916f6e
PRVB
2023-11-29 19:32:45 -05:00
Jeremy Stretch
04fd45581d
Release v3.6.6
2023-11-29 19:16:30 -05:00
Jeremy Stretch
ac3fc25dfd
Fixes #14239 : Fix CustomFieldChoiceSet search filter
2023-11-29 17:20:18 -05:00
Jeremy Stretch
82591ad8a1
Fixes #14056 : Record a pre-change snapshot when bulk editing objects via CSV
2023-11-29 17:19:35 -05:00
Jeremy Stretch
6dddb6c9d2
Fixes #14199 : Fix jobs count for reports with a custom name
2023-11-29 17:19:02 -05:00
Abhimanyu Saharan
290aae592d
Raises validation error if file path and root are not unique ( #14232 )
...
* raises validation error if file path and root are not unique #14187
* review changes #14187
2023-11-29 16:25:16 -05:00
Abhimanyu Saharan
ff021a8e4e
Adds region hierarchy in templates ( #14213 )
...
* initial work to render hierarchical region #13735
* adds site display #13735
* cleanup #13735
* adds display region tag #13735
* refactored region hierarchy #13735
* refactored region hierarchy #13735
* renamed display_region to nested_tree #13735
* Make render_tree suitable for generic use
* Remove errant item from __all__
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-29 16:20:59 -05:00
Vincent Simonin
3a3d43911c
Fixed password was not hashed on REST API update ( #14340 )
...
* Fixed password was not hashed on REST API update
* When we updated a user password with a REST API call the password was
stored in clear in plain text in the database.
* Following code review
* Move test on UserTest class
* Call `super().update()` in overriding `update` method
* Return directly the result of `super().update()`
2023-11-29 15:59:54 -05:00
Josef Johansson
c43c63a817
14346 fix missing function call convert
...
In PR #13958 (commit 8224644
) _get_report was modified to do the call on the variable without changing the call later on.
This commit fixes that and removes the call on the variable.
Signed-off-by: Josef Johansson <josef@oderland.se>
2023-11-29 15:58:14 -05:00
Jeremy Stretch
792b353f64
Fixes #14363 : Fix bulk editing of interfaces assigned to VM with no cluster
2023-11-29 15:23:35 -05:00
Jeremy Stretch
01ba4ce129
Fixes #14242 : Enable export templates for contact assignments
2023-11-29 15:22:41 -05:00
Jeremy Stretch
fc7d6e1387
Fixes #14325 : Ensure expanded numeric arrays are ordered ( #14370 )
...
* Fixes #14325 : Ensure expanded numeric arrays are ordered
* Remove redundant casting to
2023-11-28 17:04:10 -05:00
Jeremy Stretch
080da68b6a
Fixes #14349 : Fix custom validation support for DataSource
2023-11-28 17:02:52 -05:00
Jeremy Stretch
7d413ea3c2
Fixes #14343 : Set order_by accessor for asn_asdot column ( #14369 )
2023-11-28 17:02:07 -05:00
Arthur Hanson
40763b58bd
14299 change webhook timestamp to isoformat ( #14331 )
...
* 14299 change timestamp to isoformat
* Omit redundant str() casting
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-28 17:01:03 -05:00
Jeremy Stretch
d2fea4edc4
Closes #14311 : Move L2VPN models from ipam
to vpn
( #14358 )
...
* Move L2VPN and L2VPNTermination models from ipam to vpn
* Move L2VPN resources from ipam to vpn
* Extend migration to update content types
* Misc cleanup
2023-11-28 13:45:00 -05:00
Jeremy Stretch
6678880db5
Closes #9816 : VPN tunnel support ( #14276 )
...
- Introduces a new `vpn` app with the following models:
- Tunnel
- TunnelTermination
- IKEProposal
- IKEPolicy
- IPSecProposal
- IPSecPolicy
- IPSecProfile
2023-11-27 16:17:15 -05:00
Jeremy Stretch
975a647d9a
Closes #14312 : Move ConfigRevision to core ( #14328 )
...
* Move ConfigRevision model & write migrations
* Move ConfigRevision resources from extras to core
* Extend migration to update original content type for ConfigRevision
2023-11-27 16:09:05 -05:00
Jeremy Stretch
18422e1d26
Closes #14326 : Move form mixins ( #14327 )
...
* Move form mixins from extras app to netbox app
* Remove obsolete extras/admin.py
2023-11-22 13:49:26 -05:00
Jeremy Stretch
a73ba00aa0
Closes #13299 : Improve options for controlling custom field visibility ( #14289 )
...
* Add ui_visible and ui_editable fields
* Extend migration to map new visible/editable values
* Remove ui_visibility field
* Update docs
2023-11-20 13:06:34 -05:00
Arthur Hanson
549b0ea107
Closes #8356 : Add virtual disk to Virtual Machines ( #14087 )
...
* 8356 add virtual disk model
* 8356 add supplemental forms
* 8356 add menu
* 8356 cleanup views
* 8356 virtual machine tab
* 8356 migrations
* 8356 vm disk tables
* 8356 cleanup
* 8356 graphql
* 8356 graphql
* 8356 add components button
* 8356 bulk add on virtualmachine
* 8356 bulk add fixes
* 8356 api tests
* 8356 news tests add rename
* 8356 VirtualDiskCreateForm
* 8356 fix test
* 8356 add todo to remove disk from vm
* 8356 review changes
* 8356 fix test
* 8356 deprecate disk field
* 8356 review changes
* 8356 fix test
* 8356 fix test
* Simplify view actions
* 8356 review changes
* 8356 split trans tag
* 8356 add total virtual disk size to api
* 8356 add virtual disk list to virtual machine detail view
* 8356 move virtual disk size to property
* 8356 revert property
* Tweak display of deprecated disk field
* 8356 render single disk field
* 8356 update serializer
* 8356 model property
* 8356 fix test
* 8356 review changes
* Revert disk space annotation
* Use existing disk field to store aggregate virtual disk size
* Introduce abstract ComponentModel for VM components
* Add search index for VirtualDisk
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-17 15:02:56 -05:00
Pavel Korovin
e13bf48a35
Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint ( #14287 )
...
* Add /api/virtualization/virtual-machines/{id}/render-config/ endpoint
* Update Docstring "Device" -> "Virtual Machine"
Docstring should mention "..this Virtual Machine" instead of "...this Device", thanks @LuPo!
* Move config rendering logic to new RenderConfigMixin
* Add tests for render-config API endpoint
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-17 08:32:58 -05:00
Jeremy Stretch
e767fec5cc
Closes #14173 : Enable plugins to register columns on core tables ( #14265 )
...
* Closes #14173 : Enable plugins to register columns on core tables
* Support translation for column name
* Document new registry store
2023-11-16 12:16:35 -05:00
Jeremy Stretch
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
Jeremy Stretch
69a4c31072
Closes #13794 : Dynamically populate related objects list under tenant view ( #14196 )
...
* Closes #13794 : Dynamically populate related objects list under tenant view
* get_related_models() should sort models alphabetically by default
* Reference Meta.related_objects instead of calling get_fields()
2023-11-16 12:02:32 -05:00
Jeremy Stretch
840b7d804c
Closes #13645 : Make Sentry integration optional ( #14197 )
2023-11-09 16:33:35 -05:00
Jeremy Stretch
3d20276f55
Closes #14134 : Display additional object attributes in global search results ( #14154 )
...
* WIP
* Add display_attrs for all indexers
* Linkify object attributes
* Clean up prefetch logic
* Use tooltips for display attributes
* Simplify template code
* Introduce get_indexer() utility function
* Add to examples in docs
* Use tooltips to display long strings
2023-11-09 16:21:09 -05:00
Jeremy Stretch
2562c8745c
Closes #14156 : Add custom field support for contact assignments
2023-11-09 16:10:14 -05:00
Jeremy Stretch
ac91d4e5e5
Merge branch 'develop' into feature
2023-11-09 16:06:26 -05:00
Jeremy Stretch
d52a6d3b10
PRVB
2023-11-09 16:04:38 -05:00
Jeremy Stretch
41eae1bc19
Release v3.6.5
2023-11-09 15:45:49 -05:00
Abhimanyu Saharan
5c27d29b08
Adds unit to the power port draw ( #14208 )
...
* adds unit to the power port draw #13587
* review changes #13587
* moved units to header #13587
* Abbreviate unit for consistency with e.g. PowerFeedTable available_power column
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 15:09:16 -05:00
Abhimanyu Saharan
e1bedb8350
restores config revision during cache clear #14182
2023-11-09 14:50:45 -05:00
Abhimanyu Saharan
dd5e20aa1a
allow login and logout in maintenance mode #14166
2023-11-09 14:45:47 -05:00
Abhimanyu Saharan
217a9edb4c
handles the port in the ip #14085
2023-11-09 14:43:36 -05:00
Abhimanyu Saharan
ad95760ead
adds contact group on contact assignment table #14221
2023-11-09 14:12:10 -05:00
Abhimanyu Saharan
57bf2a2f00
fix asn view under asn range #14195
2023-11-09 10:58:28 -05:00
Jeremy Stretch
e5c38e0829
Closes #13022 : Add IP assignment support when bulk importing services ( #14230 )
...
* issue 13022 resolved, ipaddress added into bulk_import form
* validation of ip address for device and virtual machine
* error message modified
* error message modified
* error message modified
* Fix form validation
* Extend bulk import test
---------
Co-authored-by: yash-pal1 <ypal@onemindservices.com>
Co-authored-by: yash-pal1 <ypal@onemindservies.com>
2023-11-09 10:55:55 -05:00
Artem Kotik
6b89da2233
Closes #13936 : Add primary_ip4 and primary_ip6 filters to VirtualMachine and VirtualDeviceContext filtersets ( #14203 )
...
* Add primary_ip4 and primary_ip6 filters for VirtualMachine and VirtualDeviceContext filtersets (#13936 )
* Add PrimaryIPFilterSet to __all__
---------
Co-authored-by: Artem I. Kotik <artem.i.kotik@ringcentral.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 09:56:43 -05:00
Prince Kumar
092f2b06ab
Enhance Virtual Machine and Device Platform Filter with Manufacturer Information ( #14047 )
...
* Add manufacturer for filters in the virtual machine and device #12741
* reverse the filtersets of device and vm
* revert the filtersets of vm
* add advance selector in platform
* remove manufacture from imports
2023-11-09 09:55:44 -05:00
Jeremy Stretch
6900097e2d
Fixes #14117 : Validate the number of front ports to be created
2023-11-09 09:50:54 -05:00
Abhimanyu Saharan
95519b42a0
Adds device and vm to service filter form ( #14215 )
...
* adds device and vm to service filter form #13951
* Tweak labels
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 09:13:46 -05:00
Chris Mills
dfef89ab88
Fix ordering on JobTable. #14223
2023-11-09 08:50:15 -05:00
Abhimanyu Saharan
0603dd1be4
Adds inventory item children view ( #14217 )
...
* adds inventory item children view #14112
* Use existing child_items relation
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 08:47:24 -05:00
Abhimanyu Saharan
1203d761f4
Adds mask length filters on ipaddress ( #14218 )
...
* adds mask length filters on ipaddress #14101
* Change IPaddress mask_length filter to multi-value; extend tests
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-09 08:46:14 -05:00
Abhimanyu Saharan
d2c727c0a2
review changes #13743
2023-11-09 08:36:39 -05:00
Abhimanyu Saharan
ac4b46b502
adds site column to power feeds #13743
2023-11-09 08:36:39 -05:00
Abhimanyu Saharan
6e8ee9db89
review changes #14113
2023-11-09 08:34:41 -05:00
Abhimanyu Saharan
94858ac13f
adds parent to inventory item table #14113
2023-11-09 08:34:41 -05:00
Abhimanyu Saharan
b0f2de5bd7
order available columns #14219
2023-11-09 08:07:17 -05:00
Abhimanyu Saharan
60e98324c3
adds inventory items to interface #13723
2023-11-08 12:57:22 -05:00
Abhimanyu Saharan
66b9cdf141
adds import button on the contact assignment table #13669
2023-11-08 12:37:13 -05:00
Jeremy Stretch
8dcbd66de6
Closes #13427 : Public model registration ( #14152 )
...
* Initial work on #13427
* Clarify documentation
* Reference public models registry when populating models for ConfigTemplate context
2023-11-03 10:32:59 -04:00
Arthur Hanson
b3fb393490
14033 raise validation error if A and B term go to same object ( #14050 )
...
* 14033 raise validation error if A and B term go to same object
* 14033 move check to cable model clean
* 14033 fix tests
2023-11-01 16:30:10 -04:00
Jamie (Bear) Murphy
f6338abf14
Closes #13690 : List all objects to be deleted ( #14089 )
...
* show objects that would be deleted by cascade
* some items were not showing (eg ips on devices)
* dont include the item being deleted in the list of related items
* Revert "dont include the item being deleted in the list of related items"
This reverts commit 298a7860b2
.
* cleanup
- migrate code to use collector directly instead of the NestedObjects wrapper from admin.utils
- adjust object names and text output
* requested adjustments
* remove comma from end of list
* linting
* refactor, add accordion
* migrate to defaultdict, use title for capitalisation of accordian titles
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-11-01 15:13:45 -04:00
Jeremy Stretch
944008d475
Closes #12135 : Prevent the deletion of interfaces with children ( #14091 )
...
* Closes #12135 : Prevent the deletion of interfaces with children
* Change PROTECT to RESTRICT
* Extend handle_protectederror() to also handle RestrictedError
* Fix string translation
* Update migrations
* Support bulk removal of parent interfaces via UI if all children are included
* Add support for the bulk deletion of restricted objects via REST API
2023-11-01 13:47:14 -04:00
Jeremy Stretch
c2d1988cb3
Closes #14035 : Order global search results of equivalent weight by value ( #14140 )
2023-11-01 11:56:14 -04:00
Jeremy Stretch
77208bf5f3
Fix migrations
2023-10-31 08:41:24 -04:00
Jeremy Stretch
7323668dd0
Closes #13334 : Record error message on failed jobs ( #14106 )
2023-10-31 08:34:57 -04:00
Jeremy Stretch
edc4a35296
Initial work on #10244 : Protection rules ( #14097 )
2023-10-30 14:36:56 -04:00
Jeremy Stretch
c4e765c4a8
Closes #14141 : translation cleanup ( #14143 )
...
* Translations cleanup
* Tweak variable names; misc string cleanup
* Misc cleanup
2023-10-30 13:38:03 -04:00
Jeremy Stretch
30ce9edf1c
Closes #13381 : Enable plugins to register custom data backends ( #14095 )
...
* Initial work on #13381
* Fix backend type display in table column
* Fix data source type choices during bulk edit
* Misc cleanup
* Move backend utils from core app to netbox
* Move backend type validation from serializer to model
2023-10-24 11:35:53 -04:00
Arthur Hanson
7274e75b26
13230 Allow Devices to be excluded from Rack utilization ( #14099 )
...
* 13230 add exclusion flag to device type
* 13230 forms, detail views
* 13230 add tests
* 13230 extraneous model field
* 13230 extraneous form field
* Update netbox/dcim/forms/bulk_edit.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* 13230 review feedback
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-24 11:29:24 -04:00
Arthur Hanson
ae447bd187
12216 Add color to circuit-type and add to SVG rendering ( #14098 )
...
* 12216 add color to model
* 12216 add forms, serializers for color
* 12216 color to detail view, add type to svg
* 12216 add color to svg
* 12216 review changes
2023-10-24 08:19:04 -04:00
Jeremy Stretch
450790ab4a
Closes #13550 : Refactor view action mappings ( #14062 )
...
* Merge actions and action_perms into a single mapping
* Update obsolete permission maps
* Update obsolete action lists
* Normalize empty permission mappings
* Cleanup
* Add deprecation warnings
* Introduce DEFAULT_ACTION_PERMISSIONS constant
2023-10-20 15:08:09 -04:00
Jeremy Stretch
3f40ee5501
Closes #14036 : Move extras.plugins to netbox.plugins ( #14086 )
...
* Move extras.plugins to netbox.plugins & add deprecation warnings
* Move plugin template tags from extras to utilities
* Move plugins tests from extras to netbox
* Add TODO reminders for v4.0
2023-10-20 11:24:08 -04:00
Jeremy Stretch
7efbfabc0b
PRVB
2023-10-17 13:07:29 -04:00
Jeremy Stretch
3fd8e48fac
Release v3.6.4
2023-10-17 12:37:14 -04:00
Jeremy Stretch
51ef4fb920
Closes #13962 : Add a copy-to-clipboard button to the key field of the API token creation form
2023-10-17 11:34:37 -04:00
Arthur Hanson
7983c2590e
14025 fix script name checking ( #14030 )
...
* 14025 fix script name checking
* 14025 fix script name checking
* 14025 add file extension validation and simplify get logic
* 14025 match start of string with regex
* 14025 backout changes to model_forms
* 14025 add filepatch checking to reports
2023-10-17 10:57:50 -04:00
Arthur Hanson
d77d45e795
12336 make region API calls atomic ( #13942 )
...
* 12336 make region API calls atomic
* 12336 switch to pg locks
* 12336 add locks to all views using mptt models
* 12336 fix ADVISORY_LOCK_KEYS reference
* 12336 review changes
* Tweak advisory lock numbering
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-17 10:35:01 -04:00
Arthur Hanson
a24864bc6d
14042 mptt cache count ( #14048 )
...
* 14042 fix cache count for mptt child delete
* 14042 add test
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-17 10:31:58 -04:00
Prince Kumar
c671ac2f28
Add dns_name filter on the IP Address page ( #14046 )
...
* Add dns_name filter on the IP Address page #13957
* add dns_name field in the filterset field and remove extra method
2023-10-17 10:06:33 -04:00
Arthur Hanson
18a813aa39
13972 allow filtering of cables if have terminations ( #13949 )
...
* 10769 allow filtering of cables if have terminations
* 10769 change to termianted
* 10769 add test case
* 10769 review cleanup
2023-10-17 09:32:42 -04:00
Daniel Sheppard
06ed7ac8a5
Fixes : #14023 - Fixes bulk disconnecting with multiple components attached to the same cable ( #14029 )
...
* Fixes : #14023 - Fixes bulk disconnecting with multiple components attached to the same cable
* Update netbox/dcim/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/dcim/views.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/dcim/views.py
Co-authored-by: Daniel Sheppard <dans@dansheps.com>
* Code cleanup & i18n fix
* Restore original termination count logic
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-13 13:57:58 -04:00
Tobias Genannt
72f01b3e89
Fix #14026 : Only get the needed amount of objects
2023-10-13 09:25:12 -04:00
Jeremy Stretch
2522056bd1
Closes #12872 : Introduce DATA_UPLOAD_MAX_MEMORY_SIZE config parameter
2023-10-13 08:54:06 -04:00
Arthur
01c894e625
14013 fix device role filter
2023-10-13 08:51:22 -04:00
Jeremy Stretch
4286c1cde2
Closes #12831 : Include circuit description in cable trace SVG image
2023-10-06 15:14:33 -04:00
Arthur
a543bd469a
11987 change cable bulk import to check if same cable
2023-10-05 16:48:48 -04:00
Arthur Hanson
d03859b27b
13746 fix available ips API for posting custom-fields ( #13889 )
2023-10-05 15:53:57 -04:00
sleepinggenius2
285187542d
Adds selection custom field labels to UI
2023-10-05 15:02:22 -04:00
Jeremy Stretch
b93b331d86
Fixes #13966 : Restore 'last login' column on users table
2023-10-04 14:09:29 -04:00
Jeremy Stretch
a46255ddda
Fixes #13064 : Ensure unchecked checkboxes do not revert to original values upon HTMX form refresh
2023-10-04 11:57:52 -04:00
Arthur Hanson
6093debb71
12328 update GFK object in clean ( #13946 )
...
* 12328 update GFK object in clean
* Add missing import statement
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-10-03 15:41:40 -04:00
yash-pal1
6dc560596d
added device button under platform view pre-populated role field instead of platform field
2023-10-03 15:09:10 -04:00
Arthur
5cb1a6b790
13872 fix bulk import
2023-10-03 14:52:59 -04:00
Arthur
ef460a38ed
13944 fix report detail api
2023-10-03 14:39:46 -04:00
Jeremy Stretch
786f0cc7f3
PRVB
2023-09-26 16:31:33 -04:00
Jeremy Stretch
9e35cefaf2
Release v3.6.3
2023-09-26 15:48:03 -04:00
Jeremy Stretch
4dd229e73a
Fixes #13864 : Remove 'default' choice for dashboard widget color
2023-09-26 15:24:20 -04:00
Arthur Hanson
db40119faa
13130 dont allow reassigning ipaddress assigned object if primary ip ( #13893 )
...
* 13130 dont allow reassigning ipaddress assigned object if primary ip
* 13130 add tests fix parent check
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-26 15:16:02 -04:00
Daniel Sheppard
f65744faee
Fixes : #11079 - Handle cables across multiple rear-port positions ( #13337 )
...
* Catch AssertionError's in signals. Handle accordingly
* Alter cable logic to handle certain additional path types.
* Fix failures and add test
* More tests
* Remove not needed tests, add additional tests
* Finish tests, correct some behaviour
* Add check for mid-span device not allowed condition
* Remove excess import
* Remove logging import
* Remove logging import
* Minor tweaks based on Arthur's feedback
* Update netbox/dcim/tests/test_cablepaths.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Update netbox/dcim/models/cables.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
* Changes to account for required SVG rendering changes and based on feedback
* More tweaks for cable path checking
* Improve handling of links with multi-terminations
* Improved SVG rendering of multiple rear ports (with positions) per path trace. Include asymmetric path detection
* Include missing assert to ensure links are same type.
* Clean up tests
* Remove unused objects from tests
* Changes requested to tests and update comments/doctstrings
* Fix parent reference
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-26 13:16:50 -04:00
Jeremy Stretch
1ad6d94dc3
Fixes #13843 : Fix assignment of VLAN group scope during bulk edit ( #13887 )
...
* Update VLANGroup bulk edit form to support all scope types
* Fixes #13843 : Fix scope assignment for VLAN groups during bulk edit
* Add missed static file
* Restore graphiql static assets
2023-09-26 13:09:20 -04:00
Jeremy Stretch
b759d694ee
Fixes #13859 : Fix valid response when no matching choice values are found
2023-09-26 12:08:05 -04:00
Jeremy Stretch
3cb41bbe3a
Fixes #13849 : Fix label resolution during serialization for removed field choices ( #13867 )
...
* Fixes #13849 : Fix label resolution during serialization for removed field choices
* Cleanup
2023-09-26 12:06:47 -04:00
Jeremy Stretch
f9ceaad284
#13666 : Add is_valid property to Report class
2023-09-26 10:53:38 -04:00
JCWasmx86
e67624f042
Fixes #13666 : Fix behavior for reports without test methods ( #13667 )
2023-09-26 10:41:09 -04:00
Luke Anderson
27297c7556
Add Hide Disconnected Button to Interface Summary, Remove Unused Table Caption Descriptor - Close #12732
2023-09-26 09:56:33 -04:00
Arthur
685ac5f571
13891 fix primary ip assignment if assigning ip
2023-09-26 08:56:35 -04:00
Arthur Hanson
0ce2b1b779
13845 fix device type image save ( #13851 )
...
* 13845 check original image is null in save
* 13845 update delete image code
2023-09-25 13:41:21 -04:00
Olivier Desnoë
04796a6ac6
Fix creating config template using rest api ( #13869 )
...
* Fix creation of extras/config-templates objects using the REST API
* Update serializers.py
2023-09-25 13:33:01 -04:00
Jeremy Stretch
a8a4bd7c21
Revert " #13887 : Rebuild static assets"
...
This reverts commit a0e5e69283
.
2023-09-25 13:03:20 -04:00
Jeremy Stretch
a0e5e69283
#13887 : Rebuild static assets
2023-09-25 12:30:50 -04:00
Arthur Hanson
df46198b91
13839 change color and spacing on alert code block ( #13857 )
...
* 13839 change color and spacing on alert code block
* 13839 update review changes
2023-09-25 12:01:33 -04:00
Jeremy Stretch
b670a1e22c
Fixes #13871 : Fix rack filtering for empty location during device bulk import
2023-09-25 11:59:19 -04:00
Per von Zweigbergk
c728d3c2e8
Fix formatting
2023-09-24 00:08:39 +02:00
Per von Zweigbergk
83e2c45e74
Simplify mark connected/installed implementation
...
Fixes : #13712 and #13806 .
2023-09-23 23:45:08 +02:00
Per von Zweigbergk
27864ec865
Move DeviceInterfaceTable coloring logic into CSS
...
Preparatory work for simplifying toggle button code for cable status.
2023-09-23 23:07:16 +02:00
Per von Zweigbergk
d44f67aea5
Add 15% alpha variants of --nbx-color
...
Preparatory work for factoring row styling out of Python
2023-09-23 23:01:08 +02:00
Per von Zweigbergk
41e1f24cf7
Add --nbx-color-* variables for theme colors
...
Preparatory work for moving row styling to CSS
2023-09-23 21:43:32 +02:00
Per von Zweigbergk
d76ede17d3
Add data properties for device interface table
...
Preparatory work for factoring row styling decisions out of Python code.
2023-09-23 21:33:47 +02:00
Jeremy Stretch
9b325f4b86
PRVB
2023-09-20 15:32:41 -04:00
Jeremy Stretch
b57a47475d
Release v3.6.2
2023-09-20 15:05:29 -04:00
Jeremy Stretch
ae4ea3443e
Fixes #11617 : Check for invalid CSV headers during bulk import ( #13826 )
...
* Fixes #11617 : Check for invalid CSV headers during bulk import
* Add test for CSV import header validation
2023-09-20 14:40:27 -04:00
Arthur Hanson
f5dd7d853a
13809 fix ConfigRevision edit if custom validators ( #13825 )
...
* 13809 fix ConfigRevision edit, check if custom validator JSON serializable
* 13809 check json rendering for all fields
* Refactor field initialization logic to more cleanly handle statically configured values
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-20 14:11:25 -04:00
Arthur Hanson
a1e42dad10
13653 darken code color to work in light and dark modes ( #13827 )
...
* 13653 darken code color to work in light and dark modes
* 13809 changed to use mx-1 on code block
2023-09-20 14:08:12 -04:00
Arthur Hanson
6e4b4a553b
12685 use markdown for custom fields added to form ( #13828 )
...
* 12685 use markdown for custom fields added to form
* 13809 change markdown to use utilities
* Add help_text for CustomField description indicating Markdown support
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-20 14:06:04 -04:00
Arthur Hanson
7a410dfd00
13813 fix virtual chassis member count ( #13823 )
...
* 13813 fix virtual chassis member count
* 13813 add test
2023-09-20 13:57:35 -04:00
bluikko
6fb980349f
13245 add QSFP112 and OSFP-RHS interface choices
2023-09-20 10:10:51 -04:00
Arthur Hanson
8e251ac33c
13757 Fix ConfigContext reference to DeviceType ( #13804 )
...
* 13757 do prefetch to work around Django issue with vars in init (DeviceType)
* 13757 use self.__dict to access vars in init
* 13757 change test
2023-09-20 09:56:52 -04:00
Jeremy Stretch
35bcc2ce9d
Revert "Fixes #13741 : Enforce unique names for inventory items with no parent item"
...
This reverts commit 68966db23d
.
2023-09-20 08:44:25 -04:00
Arthur
69215c411b
13818 add tags to l2vpntermination edit form
2023-09-19 17:42:19 -04:00
Jeremy Stretch
252bf03525
Fixes #13802 : Restore 'description' header text for custom fields
2023-09-18 13:35:54 -04:00
Jeremy Stretch
68966db23d
Fixes #13741 : Enforce unique names for inventory items with no parent item
2023-09-18 11:10:00 -04:00
Jeremy Stretch
9aa7444bf9
Fixes #13782 : Fix tag exclusion support for contact assignments
2023-09-18 11:08:49 -04:00
Arthur Hanson
b0541be107
13745 device type migration ( #13747 )
...
* 13745 update migrations to use batch_size
* 13745 update migrations to use subquery update
* 13745 refactor and update other counter migrations
2023-09-18 09:59:26 -04:00
Abhimanyu Saharan
3d1f668235
Disables module_status ordering ( #13761 )
...
* disables module_status ordering #13756
* Set accessor for module status value
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-18 09:09:29 -04:00
Jeremy Stretch
c7dd4206c8
Fixes #13727 : Fix exception when viewing rendered config for VM without a role assigned
2023-09-18 08:44:42 -04:00
Per von Zweigbergk
79bf12a8fe
13791 rename whitespace fix ( #13793 )
...
* Add test for bug #13791
https://github.com/netbox-community/netbox/issues/13791
* Fix #13791 by disabling striping on find and replace fields of BulkRenameForm
2023-09-18 08:33:29 -04:00
Jeremy Stretch
2dfbd72f10
Fixes #13767 : Fix support for comments when creating a new service via web UI
2023-09-15 10:33:54 -04:00
Arthur
487827c776
13768 fix typo
2023-09-15 09:40:27 -04:00
Jeremy Stretch
6939bf8aed
Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast ( #13753 )
...
* Fixes #12219 : Ensure dashboard widget heading text has sufficient contrast in both light & dark modes
* Change foreground color for teal background
2023-09-13 10:56:03 -04:00
Daniel Sheppard
e4cb0c3cc2
Fixes #11209 - Fix PrefixIPAddress view with saved sort preferences ( #12820 )
...
* Fixes #11209 - Do not add available ips when IPAddressTable sort preferences are saved
* Refine check to account scenario right after clearing ordering string
* Introduce get_table_ordering() utility to determine intended ordering given a request
* Apply fix to VLAN ranges as well
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-13 10:51:24 -04:00
Abhimanyu Saharan
b7cfb2f7d9
Adds csv dialect detection to bulk import view ( #13563 )
...
* adds csv dialect detection to bulk import view #13239
* adds sane delimiters for dialect detection #13239
* adds csv delimiter tests #13239
* adds csv delimiter on the form
* pass delimiter to clean_csv method #13239
* fix tests for csv import #13239
* fix tests for csv import #13239
* fix tests for csv import #13239
* fix tests for csv import #13239
* Improve auto-detection of import data format
* Misc cleanup
* Include tab as a supported delimiting character for auto-detection
* Move delimiting chars to a separate constant for easy reference
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-12 16:48:40 -04:00
Jeremy Stretch
39cb9c32d6
Clean up blocktrans template tags (i18n)
2023-09-11 16:17:02 -04:00
Jeremy Stretch
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -04:00
Jeremy Stretch
2ffa6d0188
Fixes #13701 : Correct display of power feed legs under device view
2023-09-11 14:16:29 -04:00
Jeremy Stretch
026386db50
Fixes #13706 : Restore extra filters dropdown on device interfaces list
2023-09-11 14:13:55 -04:00
Jeremy Stretch
b5125e512f
Fixes #13721 : Filter VLAN choices by selected site (if any) when creating a prefix
2023-09-11 13:52:19 -04:00
Jeremy Stretch
a8a36c0a8f
PRVB
2023-09-06 14:26:19 -04:00
Jeremy Stretch
90ab4b3c86
Release v3.6.1
2023-09-06 14:04:57 -04:00
Arthur Hanson
bb6b4d01c1
12553 prefix serializer to IPAddress ( #13592 )
...
* 12553 prefix serializer to IPAddress
* Introduce IPNetworkField to handle prefix serialization
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-06 10:49:40 -04:00
Daniel Sheppard
2d1457b94b
Fixes : #13682 - Fix custom field exceptions and validation ( #13685 )
...
* Fixes : #13682 - Fix custom field exceptions and validation
* Add tests
* Remove default setting for multi-select/multi-object and return slice of choices and annotate.
* Remove redundant default choice valiadtion; introduce values property on CustomFieldChoiceSet
* Refactor test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-06 10:47:18 -04:00
Arthur Hanson
9d851924c8
13674 fix ReportSerializer ( #13688 )
...
* 13674 fix ReportSerializer
* Remove test_methods attr from Report class
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-06 08:44:25 -04:00
Jeremy Stretch
9be5918c83
Fixes #13684 : Enable modying the configuration when maintenance mode is enabled
2023-09-05 14:09:38 -04:00
Abhimanyu Saharan
004daca862
Adds rename button on the list page for device components ( #13564 )
...
* adds interface rename button on the list page #13444
* adds rename view on all device components #13564
* Condense component views to a single template
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-09-01 16:58:31 -04:00
Jeremy Stretch
c38884fa11
Add description & expires fields to token test
2023-09-01 12:33:02 -04:00
Abhimanyu Saharan
7848beedce
adds additional parameters for token provision api #12870
2023-09-01 12:33:02 -04:00
Jeremy Stretch
296166da95
Fixes #13656 : Correct decoding of BinaryField content for Django 4.2
2023-09-01 11:06:19 -04:00
Jeremy Stretch
679cc8fdda
Fixes #13596 : Always display "render config" tab for devices & VMs
2023-08-31 14:36:03 -04:00
Jeremy Stretch
0cdc26e013
Fixes #13642 : Move migration logic overrides from individual mgmt commands to core
2023-08-31 14:34:26 -04:00
Jeremy Stretch
78966e12a9
Fixes #13620 : Show admin menu items only for staff users
2023-08-31 12:20:46 -04:00
Jeremy Stretch
f962fb3b53
Closes #13638 : Add optional staff_only attribute to MenuItem ( #13639 )
...
* Closes #13638 : Add optional staff_only attribute to MenuItem
* Add missing file
* Add release note
2023-08-31 11:23:44 -04:00
Jeremy Stretch
2544e2bf18
Fixes #13622 : Fix exception when viewing current config and no revisions have been created
2023-08-31 11:11:56 -04:00
Jeremy Stretch
06f2c6f867
Fixes #13632 : Avoid raising exception when checking if FHRP group IP address is primary
2023-08-31 11:09:49 -04:00
Abhimanyu Saharan
272d2c54d4
removes napalm references #13628
2023-08-31 09:54:35 -04:00
Jeremy Stretch
cb93abb0f4
Fixes #13626 : Correct filtering of recent activity list under user view
2023-08-31 08:19:17 -04:00
Jeremy Stretch
316d991b33
Fixes #13630 : Fix display of active status under user view
2023-08-31 08:16:11 -04:00
Jamie (Bear) Murphy
46f734eba2
fix error for is_oob_ip for non-device parents ( #13621 )
...
* fix error for is_oob_ip for non-device parents
* adjust oob_ip_id check to use hasattr
2023-08-31 07:57:14 -04:00
Jeremy Stretch
671a56100a
PRVB
2023-08-30 14:57:16 -04:00
Jeremy Stretch
b040fdcf2c
Release v3.6.0
2023-08-30 14:27:07 -04:00
Jeremy Stretch
eb9a804914
#12591 : Add a dedicated view for the active config revision
2023-08-30 11:13:56 -04:00
Jeremy Stretch
210d7bb573
Display last_updated time only if defined
2023-08-30 11:13:02 -04:00
Daniel Sheppard
1854a6b76b
Fix #11478 - Add vc_interfaces flag to control selection of VC interfaces ( #13296 )
...
* Add `vc_interfaces` flag to control interface queryset
* Fix test failure
* Add new filters instead of using undocumented query params
* Cleanup filterset, add test
* Rename filter and re-introduce virtual_chassis filtering method (required)
* Fix test
* Adjust tests to more accurately provide coverage
* Add breaking change note
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-30 09:33:02 -04:00
Jeremy Stretch
aebf3288d1
Fixes #13605 : Specify batch size for cached counter migrations ( #13610 )
...
* Specify batch size for cached counter migrations
* Remove list() casting of querysets
2023-08-30 09:18:24 -04:00
Arthur Hanson
065a40dfb3
13599 fix cached counter for edit object ( #13600 )
...
* 13599 fix cache counter
* 13599 update test
* Merge conditionals
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-29 15:31:13 -04:00
Jeremy Stretch
420090dc6c
#12590 : Exclude proxy model for Token from permission object types
2023-08-29 14:41:14 -04:00
Jeremy Stretch
4ab0eb570c
#11305 : Add latitude & longitude to DeviceWithConfigContextSerializer
2023-08-29 14:31:42 -04:00
Jeremy Stretch
2a4e3dd09f
Merge branch 'develop' into feature
2023-08-29 10:45:55 -04:00
Jeremy Stretch
4343e0566b
Correct version number
2023-08-28 17:04:37 -04:00
Arthur Hanson
29877c9abe
12489 Use HTMX for Location and Non-Racked Devices in Site detail view ( #12491 )
...
* 12489 use htmx for site view locations and non-racked-devices
* 12489 remove now unused queries in context
* adds device type and role to device component filter #12015
* Revert "Fixes #12463 : Fix the association of completed jobs with reports & scripts in the REST API"
This reverts commit a29a07ed26
.
* 12489 update nonracked_devices on rack and location templates
* 12489 fix whitespace issue
* Undo errant commits
* 12489 update site id in templates
* 12489 remove nonracked_devices include
* 12489 add has_position filter
* Use empty lookup for position field
* Remove non-racked devices list from rack view (was moved to a tab)
* Clean up location and device tables
* Restore plugins block on rack template
---------
Co-authored-by: Abhimanyu Saharan <desk.abhimanyu@gmail.com>
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-08-28 16:03:35 -04:00
Jeremy Stretch
480f83c42d
Closes #13585 : Introduce 'empty' lookup for numeric value filters
2023-08-28 15:25:37 -04:00
Jeremy Stretch
faf89350ac
Fixes #13569 : Fix selection widgets for related interfaces when bulk editing interfaces under device view
2023-08-28 13:04:42 -04:00
Abhimanyu Saharan
8d8f57e8b8
Adds parent filter on iprange ( #13568 )
...
* adds parent filter on iprange #13313
* lint fix
* adds filterset test
* Filter should match both start & end of IP range
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2023-08-28 09:05:43 -04:00
Abhimanyu Saharan
0a3be0b7ea
adds related models count on custom field #12825
2023-08-28 08:34:33 -04:00
Abhimanyu Saharan
00ebdfe0df
adds related models count on custom field #12825
2023-08-28 08:34:33 -04:00
Arthur
36f57f8f08
9856 fk
2023-08-25 13:52:24 -07:00
Arthur
46b0df43f9
9856 extras and mixins
2023-08-25 13:31:10 -07:00