1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Commit Graph

88 Commits

Author SHA1 Message Date
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
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
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
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
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
c0c5f52ed9 Reorganize REST API components under netbox app 2020-10-13 15:57:21 -04:00
ae1ceb26b9 Standardize cable/connection field ordering 2020-10-08 11:23:24 -04:00
52ec35b94f Correct serializer field lists 2020-10-06 15:27:40 -04:00
23cde6d1b8 Include cable_peer on CableTermination serializers 2020-10-06 14:30:46 -04:00
b846f631a4 Rename connection_status to connected_endpoint_reachable 2020-10-05 11:32:39 -04:00
924f319343 Closes #4806: Add a url field to all API serializers 2020-07-06 16:41:08 -04:00
448dc1442c Replace TaggitSerializer and TagListSerializerField with TaggedObjectSerializer 2020-06-17 09:57:17 -04:00
d0f127e575 Fixes #3338: Added termination A and Z to the circuit 2020-01-27 21:53:10 +00:00
a6904dc5d5 Add description field to CircuitType (#3655) 2019-12-10 13:25:14 -05:00
e09ad6915f Circuit.status (#3569) 2019-11-07 11:11:10 -05:00
a46b43bff6 Added child counts to API serializers (WIP) 2019-04-12 17:07:56 -04:00