Jeremy Stretch
24c6653356
Add profile for 4x4 MPO8 shuffle cable
2025-11-17 12:39:17 -05:00
Jeremy Stretch
fb2ea37443
Simplify A/B side popping logic
2025-11-17 12:39:17 -05:00
Jeremy Stretch
481811e487
Misc cleanup
2025-11-17 12:39:17 -05:00
Jeremy Stretch
0901694b2b
Initial work on FR #20788 (cable profiles)
2025-11-17 12:39:17 -05:00
Martin Hauser
d433a28524
Fixes #20646 : Prevent cables from connecting to marked objects ( #20678 )
CodeQL / Analyze (${{ matrix.language }}) (none, actions) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
CI / build (20.x, 3.10) (push) Has been cancelled
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled
2025-10-25 10:22:03 -05:00
Jeremy Stretch
873372f61e
Closes #20241 : Record A & B terminations on cable changelog records ( #20246 )
2025-09-09 11:56:08 -05:00
Jeremy Stretch
a7247f8815
Merge branch 'main' into feature
2025-08-12 16:03:45 -04:00
Jonathan Ramstedt
c7b68664f9
Closes #18843 : use color name in cable export ( #19983 )
2025-08-01 09:51:00 -07:00
Jeremy Stretch
b610cf37cf
Closes #19924 : Record model features on ObjectType ( #19939 )
...
CI / build (20.x, 3.10) (push) Has been cancelled
CI / build (20.x, 3.11) (push) Has been cancelled
CI / build (20.x, 3.12) (push) Has been cancelled
* Convert ObjectType to a concrete child model of ContentType
* Add public flag to ObjectType
* Catch post_migrate signal to update ObjectTypes
* Reference ObjectType records instead of registry for feature support
* Automatically create ObjectTypes
* Introduce has_feature() utility function
* ObjectTypeManager should not inherit from ContentTypeManager
* Misc cleanup
* Don't populate ObjectTypes during migration
* Don't automatically create ObjectTypes when a ContentType is created
* Fix test
* Extend has_feature() to accept a model or OT/CT
* Misc cleanup
* Deprecate get_for_id() on ObjectTypeManager
* Rename contenttypes.py to object_types.py
* Add index to features ArrayField
* Keep FK & M2M fields pointing to ContentType
* Add get_for_models() to ObjectTypeManager
* Add tests for manager methods & utility functions
* Fix migrations for M2M relations to ObjectType
* model_is_public() should return False for non-core & non-plugin models
* Order ObjectType by app_label & model name
* Resolve migrations conflict
2025-07-30 13:05:34 -04:00
Jeremy Stretch
64b5867cb3
Merge branch 'main' into feature
2025-05-01 09:45:38 -04:00
Jeremy Stretch
5342552054
Fixes #15739 : Account for parallel cables when calculating total path length ( #19356 )
2025-04-29 11:32:43 -05:00
Jeremy Stretch
fc0acb020f
Merge main into feature
2025-04-10 17:17:21 -04:00
bctiemann
3902cab925
Merge pull request #19070 from netbox-community/17166-remove-limit_choices_to
...
Closes #17166 : Remove obsolete `limit_choices_to` argument from ForeignKey & M2M fields
2025-04-07 14:10:05 -04:00
Jeremy Stretch
67480dcf4f
Closes #18191 : Remove duplicate SQL indexes ( #19074 )
...
* Closes #18191 : Remove redundant SQL indexes
* Update developer documentation
* Add a system check for duplicate indexes
2025-04-03 15:16:57 -05:00
Jeremy Stretch
d93d398afa
Closes #17166 : Remove obsolete limit_choices_to argument from ForeignKey & M2M fields
2025-04-03 09:17:20 -04:00
Andrey Tikhonov
cdd25368e7
Merge branch 'main' into fix/generic_prefetch_4.2
2025-03-12 16:27:12 +01:00
Andrey Tikhonov
7d64d3b5ed
Move GenericArrayForeignKey to fields module
2025-03-12 16:22:11 +01:00
Andrey Tikhonov
741645c9f7
Merge branch 'develop' into fix/generic_prefetch_4.2
2025-03-06 16:05:25 +01:00
Andrey Tikhonov
5c88317745
cleanup unused imports and extra line
2025-03-06 16:01:59 +01:00
Daniel Sheppard
4ab58f2da9
Fixes : #15016 - Catch AssertionError from cable trace and throw ValidationError ( #16384 )
2025-03-04 10:57:27 -08:00
Andrey Tikhonov
9c3e7f2c5d
Cleanup
2025-02-24 15:38:19 +01:00
Andrey Tikhonov
8dc1d68aee
port generic field to 4.2
2025-02-24 15:20:18 +01:00
Jeremy Stretch
5d1070796d
Merge branch 'develop' into feature
2025-01-06 13:42:57 -05:00
bctiemann
c9ee699633
Fixes : #18263 - Iterate through a freshly queried set of CableTerminations to find endpoints in update_connected_endpoints ( #18264 )
...
* Iterate through a freshly queried set of CableTerminations to find endpoints in update_connected_endpoints
* Add defensive break if q_filter has not been populated
2025-01-06 09:54:13 -05:00
Arthur Hanson
a8eb455f3e
9604 Add Termination to CircuitTermination ( #17821 )
...
* 9604 add scope type to CircuitTermination
* 9604 add scope type to CircuitTermination
* 9604 add scope type to CircuitTermination
* 9604 model_forms
* 9604 form filtersets
* 9604 form bulk_import
* 9604 form bulk_edit
* 9604 serializers
* 9604 graphql
* 9604 tests and detail template
* 9604 fix migration merge
* 9604 fix tests
* 9604 fix tests
* 9604 fix table
* 9604 updates
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* 9604 remove provider_network
* 9604 fix tests
* 9604 fix tests
* 9604 fix forms
* 9604 review changes
* 9604 scope->termination
* 9604 fix _circuit_terminations
* 9604 fix _circuit_terminations
* 9604 sitegroup -> site_group
* 9604 update docs
* 9604 fix form termination side reference
* Misc cleanup
* Fix terminations in circuits table
* Fix missing imports
* Clean up termination attrs display
* Add termination & type to CircuitTerminationTable
* Update cable tracing logic
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-31 09:55:08 -04:00
Arthur Hanson
99904c1518
Merge branch 'develop' into feature
2024-10-28 14:29:48 -07:00
Jeremy Stretch
97eb5bda50
Closes #17832 : Don't validate terminations on Cable instance when importing from serialzied data
2024-10-24 08:28:30 -04:00
Jeremy Stretch
ef1fdf0a01
Closes #17761 : Store empty CharField choices as null
2024-10-21 13:12:05 -04:00
Jeremy Stretch
e370cadcef
Merge branch 'develop' into feature
2024-10-16 08:13:43 -04:00
Erik Hetland
111a1ad888
Fixes #17400 : Handle cablepaths directly via multiple single-position rear ports
2024-10-15 12:28:46 -04:00
Jeremy Stretch
727de0fb59
Remove unused imports
2024-10-11 12:27:39 -04:00
Arthur Hanson
ed1327eeb7
16546 define get_absolute_url method in NetBoxModel ( #17693 )
...
* 16546 define get_absolute_url method in NetBoxModel
* 16546 define get_absolute_url method in NetBoxModel
* 16546 define get_absolute_url method in NetBoxModel
* 16546 move get_absolute_url to NetBoxFeatureSet
* 16546 fix CircuitTermination
* Fix linebreaks
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-10 09:59:19 -04:00
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
30b9fcf4f8
16357 clone tenant and type for cable
2024-07-26 16:20:46 -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
bbb8b7d010
Move to_grams() & to_meters() from utilities.utils to utilities.conversion
2024-03-22 08:59:52 -04:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -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
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
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
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
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
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
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