Martin Hauser
7ff7c6d17e
feat(ui): Add colored rendering for related object attributes
...
Introduce `colored` parameter to `RelatedObjectAttr`,
`NestedObjectAttr`, and `ObjectListAttr` to render objects as colored
badges when they expose a `color` attribute.
Update badge template tag to support hex colors and optional URLs.
Apply colored rendering to circuit types, device roles, rack roles,
inventory item roles, and VM roles.
Fixes #21430
2026-04-07 16:40:18 -04:00
Jeremy Stretch
83d62315cc
Closes #18153 : Introduce virtual circuit types ( #18300 )
...
* Closes #18153 : Introduce virtual circuit types
* Fix TagTestCase
* Fix GraphQL API test
2025-01-06 13:37:43 -05:00
Jeremy Stretch
c3b0de3ebd
Closes #18281 : Support group assignment for virtual circuits ( #18291 )
...
* Rename circuit to member on CircuitGroupAssignment
* Support group assignment for virtual circuits
* Update release notes
* Introduce separate nav menu heading for circuit groups
* Add generic relations for group assignments
* Remove obsolete code
* Clean up bulk import & extend tests
2025-01-03 13:42:47 -05:00
Jeremy Stretch
ff7a59db2e
Closes #17752 : Rename URL paths for bulk import to *_bulk_import
2024-11-22 12:51:06 -05:00
Jeremy Stretch
343a4af591
Closes #18022 : Extend linter (ruff) to enforce line length limit (120 chars) ( #18067 )
...
* Enable E501 rule
* Configure ruff formatter
* Reformat migration files to fix line length violations
* Fix various E501 errors
* Move table template code to template_code.py & ignore E501 errors
* Reformat raw SQL
2024-11-21 15:58:11 -05:00
Jeremy Stretch
d2168b107f
Closes #13086 : Virtual circuits ( #17933 )
...
* WIP
* Add API tests
* Add remaining tests
* Add model docs
* Show virtual circuit connections on interfaces
* Misc cleanup per PR feedback
* Renumber migration
* Support nested terminations for virtual circuit bulk import
2024-11-19 10:58:39 -05:00
Jeremy Stretch
a183048891
Closes #17951 : Extend Ruff ruleset
2024-11-07 11:52:02 -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
Jeremy Stretch
7ac6dff96d
Closes #17733 : Replace pycodestyle with ruff ( #17734 )
...
* Resolve F541 errors
* Resolve F841 errors
* Resolve F811 errors
* Resolve F901 errors
* Resolve E714 errors
* Ignore F821 errors for GraphQL mixins
* Replace pycodestyle with ruff
* Move ignores to ruff.toml
2024-10-11 07:43:46 -04:00
Arthur Hanson
8237c6accc
7025 circuit redundancy ( #16945 )
...
* 7025 CircuitRedundancyGroups
* 7025 CircuitRedundancyGroups api
* 7025 CircuitRedundancyGroups api
* 7025 CircuitRedundancyGroups tests
* 7025 CircuitRedundancyGroup -> CircuitGroup
* 7025 add tenancy
* 7025 linkify name
* 7025 missing file
* 7025 circuitgroupassignment
* 7025 base group assignment working
* 7025 assignments
* 7025 fix forms/tests for CircuitGroup
* 7025 fix api tests
* 7025 view tests
* 7025 CircuitGroupAssignment tests
* 7025 fix typo
* 7025 fix typo
* 7025 fix tests
* 7025 remove m2m
* 7025 add count to serializer
* 7025 fix test
* 7025 documentation
* 7025 review comments
* 7025 review comments
* 7025 add search index
* Make CircuitPriorityChoices extensible
* Add group assignment table to circuit view
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-07-24 12:24:44 -04:00
Arthur Hanson
b2d2a23c26
15496 Add circuit termination to menu and associated forms ( #15980 )
...
* 15496 base changes
* 15496 detail view template
* 15496 tweaks
* 15496 bulk views
* 15496 filterset
* 15496 optimize qs
* 15496 bulk edit
* 15496 bulk import
* 15496 update tests
* Update netbox/templates/circuits/circuittermination.html
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* 15496 review changes
* 15496 template include
* 15496 expand filters
* 15496 split import form
* 15496 split import form
* 15496 add test for circuit bulk import with termiantions
* Add test for provider filters
* Rename provider column
* Fix test
* Misc cleanup
* Fix test
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-05-17 15:30:10 -04:00
Daniel Sheppard
9d709c84e7
Closes : #9047 - Add Provider Accounts ( #12057 )
...
* #9047 - ProviderAccount
* #9047 - Move to new selector types
* #9047 - Re-introduce provider FK to Circuit model
* #9047 - Fix broken tests
* Misc cleanup
* Revert errant change
* Fix tests
* Update circuit filter form
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-03-29 08:27:11 -04:00
jeremystretch
46e3883f19
Closes #815 : Enable specifying terminations when bulk importing circuits
2022-11-18 15:22:24 -05:00
Arthur Hanson
cb815ede60
7961 CSV bulk update ( #10715 )
...
* 7961 add csv bulk update
* temp checkin - blocked
* 7961 bugfix and cleanup
* 7961 change to id, add docs
* 7961 add tests cases
* 7961 fix does not exist validation error
* 7961 fix does not exist validation error
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 update tests
* 7961 make test cases more explicit
* 7961 make test cases more explicit
* 7961 make test cases more explicit
* 7961 make test cases more explicit
* 7961 make test cases more explicit
* 7961 make test cases more explicit
* 7961 make test cases more explicit
* 7961 optimize loading csv test data
* 7961 update tests remove redundant code
* 7961 avoid MPTT issue in test cases
2022-10-27 13:10:18 -04:00
Arthur Hanson
20e3fdc782
#9045 #9046 - remove legacy fields from Provider ( #10377 )
...
* #9045 - remove legacy fields from Provider
* Add safegaurd for legacy data to migration
* 9045 remove fields from forms and tables
* Update unrelated tests to use ASN model instead of Provider
* Fix migrations collision
Co-authored-by: jeremystretch <jstretch@ns1.com >
2022-09-28 15:22:19 -04:00
jeremystretch
25ed3390cb
Merge branch 'feature' into 9102-cabling
2022-06-27 12:12:34 -04:00
jeremystretch
341615668b
Closes #7120 : Add termination_date field to Circuit
2022-06-22 15:09:50 -04:00
jeremystretch
3a461d0279
Update Cable instantiations to match new signature
2022-05-13 09:33:00 -04:00
jeremystretch
bddc35bbc7
Closes #8496 : Enable assigning multiple ASNs to a provider
2022-03-30 17:17:36 -04:00
jeremystretch
a740203444
Fixes #8792 : Fix creation of circuit terminations via UI
2022-03-03 16:42:48 -05:00
jeremystretch
cfb3897047
Add tags to organizational & nested group models
2021-10-21 10:51:02 -04:00
jeremystretch
71449b3414
Fixes #7304 : Require explicit values for all required choice fields during CSV import
2021-09-28 12:04:54 -04:00
jeremystretch
664ba55460
Reorganize base TestCase classes
2021-04-14 14:22:58 -04:00
jeremystretch
9bda2a44ae
Fix permissions for cable trace view tests
2021-04-12 16:25:52 -04:00
jeremystretch
a1d32c3a21
Add view tests for CircuitTermination
2021-04-12 16:07:52 -04:00
Jeremy Stretch
d57222328b
Rename Cloud to ProviderNetwork
2021-04-01 10:21:41 -04:00
Jeremy Stretch
6ff8a267e9
Introduce the Cloud model
2021-03-18 11:20:09 -04:00
Jeremy Stretch
61d23df83a
Closes #5972 : Bulk edit support for organizational models ( #5974 )
...
* Enable bulk editing of organizational models
* Enable bulk editing of nested group models
* Changelog for #5972
2021-03-12 16:14:42 -05:00
Jeremy Stretch
11a247edc2
Fix up tests
2020-06-18 10:32:22 -04:00
Jeremy Stretch
e905a36fb2
Update tests for tag changes
2020-06-12 11:33:23 -04:00
Jeremy Stretch
3b1128f8f3
Establish standard test cases for all models
2020-02-12 13:25:56 -05:00
Jeremy Stretch
d431efb7d4
Add bulk edit view tests
2020-02-03 13:53:19 -05:00
Jeremy Stretch
78d43a5d66
Move form/CSV data declaration under setUpTestData
2020-01-31 09:27:41 -05:00
Jeremy Stretch
939b5f2e29
Reorganize test classes to prevent unittest from running the base TestCases
2020-01-31 09:00:01 -05:00
Jeremy Stretch
98cce7eee4
Added ViewTestCase (WIP)
2020-01-30 21:57:20 -05:00
Jeremy Stretch
67fafb2b9d
Use assertHttpStatus for evaluating HTTP response codes
2020-01-30 18:08:25 -05:00
Jeremy Stretch
61ac7c44ba
Migrate view tests to use new TestCase class
2020-01-30 16:37:40 -05:00
Jeremy Stretch
27fd351fc2
Add CSV import tests for circuits
2019-12-12 10:08:49 -05:00
Jeremy Stretch
e710ccb0e6
Enforce view permissions for UI views
2019-04-11 17:27:38 -04:00
Jeremy Stretch
9d69f14faa
Implement basic view testing for all models ( #2909 )
2019-02-15 17:02:18 -05:00