ca56c8b9ef
Add dynamic nesting support to SerializedPKRelatedField
2024-02-27 14:00:42 -05:00
c382ba0ae0
Refactor REST API serializers to avoid circular imports
2024-02-27 13:26:43 -05:00
c146f5e1b5
Replace nested serializers with primary serializers where possible
2024-02-26 16:49:30 -05:00
d042e6f69d
Closes #15238 : Include description field in brief mode
2024-02-26 11:39:31 -05:00
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
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
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
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
528fb21a7e
Mark provider_account as not required in API and bulk import
2023-05-01 07:44:15 +02:00
ecd0c56554
Closes #9608 : Move from drf-yasg to spectacular
...
Co-authored-by: arthanson <worldnomad@gmail.com>
Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-30 14:32:59 -04:00
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
19da92b510
#11488 : Additional cleanup
2023-01-17 10:26:34 -05:00
beb1f4e172
added missing description field on the api serializers
2023-01-17 10:20:34 -05:00
bc6b5bc4be
Closes #10545 : Standardize description & comment fields on primary models ( #10834 )
...
* Standardize description & comments fields on primary models
* Update REST API serializers
* Update forms
* Update tables
* Update templates
2022-11-04 08:28:09 -04:00
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
3eb6b6c07f
Clean up core API imports
2022-07-13 16:18:55 -04:00
af14bfdd84
Rename LinkTermination to CabledObjectModel
2022-07-06 15:56:10 -04:00
ba079b9ee5
Merge branch 'feature' into 9102-cabling
2022-07-06 14:09:25 -04:00
a5124ab9c8
Closes #8511 : Enable custom fields and tags for circuit terminations
2022-07-01 15:10:31 -04:00
25ed3390cb
Merge branch 'feature' into 9102-cabling
2022-06-27 12:12:34 -04:00
341615668b
Closes #7120 : Add termination_date field to Circuit
2022-06-22 15:09:50 -04:00
3362bc3106
Remove link peer fields from cable termination models
2022-06-01 16:48:56 -04:00
bddc35bbc7
Closes #8496 : Enable assigning multiple ASNs to a provider
2022-03-30 17:17:36 -04:00
59aba52b03
Rename OrderedDefaultRouter to NetBoxRouter & document for plugins
2022-03-11 15:59:03 -05:00
bbdeae0ed9
Move CustomFieldModelViewSet functionality into NetBoxModelViewSet
2022-03-09 11:44:55 -05:00
efd5a73a18
Refactor API views
2022-03-09 11:27:42 -05:00
a11abf87ec
Refactor API serializers
2022-03-09 10:59:22 -05:00
3e3880823b
Merge v3.1.6
2022-01-17 11:12:54 -05:00
bffd22038b
Closes #7681 : Add service_id field for provider networks
2021-12-23 13:50:01 -05:00
3a3ed8bf64
Merge branch 'feature' into 3979-wireless
2021-10-21 13:19:52 -04:00
cfb3897047
Add tags to organizational & nested group models
2021-10-21 10:51:02 -04:00
ac2cd552b9
Rename cable_peer fields to link_peer
2021-10-13 14:04:53 -04:00
6897c5fadd
Fixes #7455 : Fix site/provider network validation for circuit termination API serializer
2021-10-06 09:11:42 -04:00
fe78f60b1f
Fixes #6357 : Fix ProviderNetwork nested API serializer
2021-05-06 13:06:10 -04:00
1024782b9e
Rename FilterSet modules
2021-04-29 16:48:24 -04:00
fecca5ad83
Fixes #6267 : Fix cable tracing API endpoint for circuit terminations
2021-04-26 16:49:52 -04:00
96759af86f
Closes #6071 : Cable traces now traverse circuits
2021-04-01 14:31:10 -04:00
d57222328b
Rename Cloud to ProviderNetwork
2021-04-01 10:21:41 -04:00
872e936924
Add termination FKs on Circuit model
2021-03-18 13:54:05 -04:00
574a43fff7
Enable attaching circuit terminations to clouds
2021-03-18 13:53:48 -04:00
6ff8a267e9
Introduce the Cloud model
2021-03-18 11:20:09 -04:00
fb48c1f6dd
Add 'display' field to all REST API serializers
2021-03-16 10:06:25 -04:00
fca5accba8
Clean up base serializers
2021-03-12 13:31:28 -05:00
8dd7123923
Closes #3648 : Mark cable termination models as connected without attaching a cable
2021-03-01 21:34:42 -05:00
12fbd34962
Introduce NestedGroupModelSerializer
2021-02-25 17:15:42 -05:00
ed059d80d6
Introduce OrganizationalModelSerializer
2021-02-25 16:44:16 -05:00
664a39911c
Add custom field support for organizational models to API serializers
2021-02-25 15:58:13 -05:00
3d90e3aee9
Fixes #5626 : Fix REST API representation for circuit terminations connected to non-interface endpoints
2021-02-08 16:44:04 -05:00
8ae3331d04
Closes #5549 : Eliminate extraneous database queries when using brief API calls
2020-12-29 11:41:44 -05:00
4a066a1913
Rename get_subquery() to count_related()
2020-12-17 14:47:49 -05:00