Jeremy Stretch
85396866bc
Fixes #17601 : Record change to terminating object when disconnecting a cable
2024-09-25 10:20:31 -04:00
Jeremy Stretch
b46a89640f
Closes #17577 : Reference ModelState when determining whether an object is being created
2024-09-24 09:14:07 -04:00
Arthur Hanson
8fff4e2a5d
12826 make RackType.form_factor required ( #17327 )
...
* 12826 make RackType.form_factor required
* 12826 fix tests
2024-08-30 13:43:07 -04:00
Arthur Hanson
829bef041d
11969 remove airflow from racktype ( #17324 )
...
* 11969 remove airflow from racktype
* 11969 remove airflow from racktype
* 11969 update docs
* 11969 fix rack edit
* Rename migration
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-30 13:30:51 -04:00
Arthur Hanson
796b9e84af
Closes #10500 : Introduce support for nested modules ( #16983 )
...
* 10500 add ModularComponentModel
* 10500 add ModularComponentModel
* 10500 add to forms
* 10500 add to serializer, tables
* 10500 template
* 10500 add docs
* 10500 check recursion
* 10500 fix graphql
* 10500 fix conflicting migration from merge
* 10500 token resolution
* 10500 don't return reverse
* 10500 don't return reverse / optimize
* Add ModuleTypeModuleBaysView
* Fix replication of module bays on new modules
* Clean up tables & templates
* Adjust uniqueness constraints
* Correct URL
* Clean up docs
* Fix up serializers
* 10500 add filterset tests
* 10500 add nested validation to Module
* Misc cleanup
* 10500 ModuleBay recursion Test
* 10500 ModuleBay recursion Test
* 10500 ModuleBay recursion Test
* 10500 ModuleBay recursion Test
* Enable MPTT for module bays
* Fix tests
* Fix validation of module token in component names
* Misc cleanup
* Merge migrations
* Fix table ordering
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-08-05 13:13:59 -04:00
Jeremy Stretch
0b77b3372c
Rename DeviceType.get_full_name to full_name
2024-08-01 09:14:03 -04:00
Arthur Hanson
d6f2fc7d29
17058 RackType name -> model ( #17059 )
...
* 17058 RackType name -> model
* 17058 RackType name -> model
* 17058 fix tests
* 17058 fix tests
2024-08-01 09:06:51 -04:00
Jeremy Stretch
2168a73a2d
Display manufacturer & model of module type on module view
2024-07-31 14:40:05 -04:00
Jeremy Stretch
8d585031d8
Misc cleanup
2024-07-31 14:06:35 -04:00
Jeremy Stretch
a12fdd6e2d
Merge branch 'develop' into feature
2024-07-26 16:39:58 -04:00
Arthur Hanson
e62a42286a
11969 airflow ( #16967 )
...
* 11960 Add airflow
* 11960 Add airflow
* 11960 fix tests
* 11960 fix racktype form
* 11969 different choices type
* 11969 update docs
* 11969 fix racktype copy
* 11969 fix
* Misc cleanup & reordering of form fields
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-25 15:14:02 -04:00
Arthur Hanson
5a6ffde67e
12826 Add Rack Type ( #16739 )
...
* 12826 add RackType
* 12826 add forms, filters, tables
* 12826 add to menu
* 12826 remove role
* 12826 add api/serializers
* 12826 add tests and fixes
* 12826 fix tests
* 12826 fix tests
* 12826 fix tests
* 12826 fix tests
* 12826 add device_type to device and instantiation
* 12826 test device creation
* 12826 add slug
* 12826 fix tests
* 12826 fix slug field
* 12826 prevent modification of rack fields if rack_type set
* 12826 update rack fields on rack_type edit
* Misc cleanup
* Update model docs
* Add manufacturer field to RackType
* Add test for mounting_depth
* Rename 'type' to 'form_factor'
* Create base classes for Rack & RackType models, serializers
* Hide RackType-defined fields on RackForm when a rack type is set
* Establish a base filter form for Rack & RackType
* Clean up RackType attr inheritance
* Clean up templates
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-16 08:58:22 -04:00
Arthur Hanson
013139aa20
16357 clone tenant and type for cable
2024-07-10 08:34:48 -04:00
Jeremy Stretch
4242546270
Fixes #16376 : Log changes on terminating objects when attaching a cable
2024-06-04 14:37:33 -04:00
Jeremy Stretch
46bd62fdc9
Merge branch 'develop' into feature
2024-04-22 13:23:42 -04:00
Arthur
4b83b5d0e1
15764 change vc_position from PositiveSmallInteger to PositiveInteger
2024-04-19 13:22:44 -04:00
padthaitofuhot
3b3511c43c
Refactor 32264ac3 to re-separate bulk and single device creation. Fixes #15598 .
2024-04-04 14:01:55 -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
bbb8b7d010
Move to_grams() & to_meters() from utilities.utils to utilities.conversion
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
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
8bdbb49a27
Fixes #15322 : Add description field to YAML export for device & module types
2024-03-13 19:10:49 -04:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -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
3ddacf4b88
Merge branch 'develop' into feature
2024-02-21 16:24:23 -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
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
Jeremy Stretch
01fa2710eb
Fixes #15067 : Fix uncaught exception when attempting invalid device bay import
2024-02-13 12:15:15 -05:00
teapot
c7ae2db8e3
Fixes #15111 : Correct typo in error message
2024-02-12 08:44:22 -05:00
Jeremy Stretch
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
Jeremy Stretch
2221a9d71f
Fixes #14749 : Remove errant translation wrapper from DeviceBay installed_device
2024-01-10 14:18:46 -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
Jeremy Stretch
1f2f0860fe
Merge branch 'develop' into feature
2023-12-27 16:34:38 -05:00
Jeremy Stretch
43909ee33f
Fixes #13649 : Permit zero-length cables
2023-12-26 09:27:58 -05:00
Jeremy Stretch
25e67eb555
Merge branch 'develop' into feature
2023-12-15 16:52:42 -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
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
d2c3a39ebb
14401 validate rack startion position > 0
2023-12-06 15:16:03 -05:00
Jeremy Stretch
dcd3f098ce
#13230 : Tweak field description
2023-12-01 10:10:44 -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
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
ac91d4e5e5
Merge branch 'develop' into feature
2023-11-09 16:06:26 -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
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
c4e765c4a8
Closes #14141 : translation cleanup ( #14143 )
...
* Translations cleanup
* Tweak variable names; misc string cleanup
* Misc cleanup
2023-10-30 13:38:03 -04:00