Jeremy Stretch
4a066a1913
Rename get_subquery() to count_related()
2020-12-17 14:47:49 -05:00
Jeremy Stretch
91083fd6c5
Call Coalesce() inside get_queryset()
2020-12-17 14:45:50 -05:00
Daniel Sheppard
3c2b2f26b9
Fixes : #5450 - Added Coalesce to viewsets for the _count functions
2020-12-15 12:50:28 -06:00
Jeremy Stretch
915cf3e715
Merge branch 'develop' into develop-2.10
2020-12-01 11:42:55 -05:00
Jeremy Stretch
f55e966c8f
Closes #4865 : Replace all Count() annotations with subqueries ( #5385 )
...
* Convert circuits to use subqueries
* Convert dcim to use subqueries
* Convert extras to use subqueries
* Convert ipam to use subqueries
* Convert secrets to use subqueries
* Convert virtualization to use subqueries
* Update global search view to use subqueries where appropriate
* Remove extraneous order_by() calls
2020-11-25 15:49:18 -05:00
Jeremy Stretch
c0c5f52ed9
Reorganize REST API components under netbox app
2020-10-13 15:57:21 -04:00
Jeremy Stretch
0e41bc48b7
Add /trace API endpoints for CircuitTermination and PowerFeed
2020-10-08 13:55:29 -04:00
Jeremy Stretch
ae1ceb26b9
Standardize cable/connection field ordering
2020-10-08 11:23:24 -04:00
Jeremy Stretch
52ec35b94f
Correct serializer field lists
2020-10-06 15:27:40 -04:00
Jeremy Stretch
23cde6d1b8
Include cable_peer on CableTermination serializers
2020-10-06 14:30:46 -04:00
Jeremy Stretch
6275c8c67d
Prefetch path & destination for API views
2020-10-06 10:41:52 -04:00
Jeremy Stretch
b846f631a4
Rename connection_status to connected_endpoint_reachable
2020-10-05 11:32:39 -04:00
Jeremy Stretch
079c42291c
Remove legacy connected endpoint fields
2020-10-05 09:56:46 -04:00
Jeremy Stretch
ec66e1a5c0
Closes #4349 : Drop support for embedded graphs
2020-08-21 11:57:46 -04:00
Jeremy Stretch
fd139a77f5
Closes #4997 : Introduce OrderedDefaultRouter; move root API views to views.py
2020-08-13 12:49:49 -04:00
Jeremy Stretch
b405e8294b
Merge branch 'develop' into develop-2.9
2020-08-13 10:20:39 -04:00
Jeremy Stretch
a7cd09d6d4
Fixes #4993 : Add cable to nested CircuitTermination serializer
2020-08-13 10:19:50 -04:00
Jeremy Stretch
cb36f9fdb3
Remove restriction enforcement from RestrictedQuerySet
2020-07-23 12:48:03 -04:00
Jeremy Stretch
0f679e1f03
Closes #4871 : Specify ordering for querysets using annotate() to count related objects
2020-07-20 12:07:19 -04:00
Jeremy Stretch
924f319343
Closes #4806 : Add a url field to all API serializers
2020-07-06 16:41:08 -04:00
Jeremy Stretch
ce55d0c791
Tweak querysets to work with restriction
2020-06-29 10:57:09 -04:00
Jeremy Stretch
0dbe248df8
Call restrict() when retrieving related Graphs
2020-06-29 10:14:43 -04:00
Jeremy Stretch
448dc1442c
Replace TaggitSerializer and TagListSerializerField with TaggedObjectSerializer
2020-06-17 09:57:17 -04:00
Jeremy Stretch
ea9de37dd1
Remove FieldChoicesViewSet
2020-03-12 10:48:17 -04:00
Jeremy Stretch
a58bbccfd3
Fixes #4094 : Convert unnecessary regular expressions to strings in URL patterns
2020-02-05 16:12:48 -05:00
Jeremy Stretch
93fa00b673
#3338 : Prefetch termination devices to avoid extra database queries
2020-01-27 17:22:31 -05:00
Saria Hajjar
d0f127e575
Fixes #3338 : Added termination A and Z to the circuit
2020-01-27 21:53:10 +00:00
Jeremy Stretch
49f027fae7
Refactor FieldChoicesViewSet; add Interface.type to virtualization _choices endpoint
2020-01-15 09:59:44 -05:00
Jeremy Stretch
847cf9d038
Renamed circuits FilterSets
2020-01-09 20:25:33 -05:00
Jeremy Stretch
a6904dc5d5
Add description field to CircuitType ( #3655 )
2019-12-10 13:25:14 -05:00
Jeremy Stretch
7518174374
Closes #3731 : Change Graph.type to a ContentType foreign key field
2019-12-06 10:32:59 -05:00
Jeremy Stretch
e09ad6915f
Circuit.status ( #3569 )
2019-11-07 11:11:10 -05:00
Jeremy Stretch
51fb0b59ec
Closes #3485 : Enable embedded graphs for devices
2019-09-18 15:59:52 -04:00
John Anderson
ade844f7a7
fixes #3428 - caching invalidation issues
...
Mitgate invalidation issues by using prefetch_related instead of select_related.
Also use invalidated_update instead of just update.
2019-08-19 01:53:39 -04:00
Jeremy Stretch
a46b43bff6
Added child counts to API serializers (WIP)
2019-04-12 17:07:56 -04:00
Jeremy Stretch
45a1dfbd8a
Closes #2649 : Add connected_endpoint_type to connectable device component API representations
2018-12-06 16:14:03 -05:00
Jeremy Stretch
8c3a294384
Standardized behavior and display of connection_status
2018-11-19 15:26:06 -05:00
Jeremy Stretch
75f0d8ee90
Closes #2578 : Reorganized nested serializers
2018-11-12 11:36:44 -05:00
Jeremy Stretch
1847e82d04
Closes #867 : Add a 'description' field to CircuitTermination
2018-11-05 13:53:22 -05:00
Jeremy Stretch
516faac73f
Fixed deprecation warnings from DRF 3.9
2018-11-02 13:48:44 -04:00
Jeremy Stretch
29d546a3f1
Upgraded django-filter to 2.0.0
2018-11-02 13:46:28 -04:00
Jeremy Stretch
cd243a90d0
connected_endpoint must be read-only on termination serializers
2018-10-31 16:12:36 -04:00
Jeremy Stretch
aad4f58633
Add 'cable' field to CircuitTermination serializer
2018-10-30 14:53:41 -04:00
Jeremy Stretch
4df74780b8
Extended Cables to connect CircuitTerminations
2018-10-30 12:16:22 -04:00
Jeremy Stretch
364bbdeab8
Merged release v2.4.5
2018-10-03 11:23:21 -04:00
Jeremy Stretch
aed2a3cd1b
Closes #2438 : API optimizations for tagged objects
2018-09-28 16:44:05 -04:00
Jeremy Stretch
980d62d579
Removed Python 2 string compatibility
2018-08-14 11:58:42 -04:00
Jeremy Stretch
f1bc88fc0c
Adopt django-taggit-serializer for representation of assigned tags in the API
2018-08-03 09:43:03 -04:00
Jeremy Stretch
c2416411c1
Renamed ChoiceFieldSerializer and ContentTypeFieldSerializer
2018-07-30 12:41:20 -04:00
Jeremy Stretch
d0308e0f58
Merge branch 'develop' into develop-2.4
2018-07-02 17:01:14 -04:00
Jeremy Stretch
28a2a37ed2
Fixes #2191 : Added missing static choices to circuits and DCIM API endpoints
2018-06-29 13:17:07 -04:00
Jeremy Stretch
b9bdd666da
Closes #2200 : Replaced detail_route API view decorator with action (DRF change)
2018-06-29 11:48:21 -04:00
Jeremy Stretch
9b3869790d
Implemented tags for all primary models
2018-05-10 12:53:11 -04:00
Jeremy Stretch
821fb1e01e
Finished merging writable serializers
2018-04-05 14:12:43 -04:00
Jeremy Stretch
7241783249
Started merging writable serializers (WIP)
2018-04-04 17:01:24 -04:00
Jeremy Stretch
69f921aea9
Closes #1864 : Added a 'status' field to the circuit model
2018-02-06 14:06:05 -05:00
Jeremy Stretch
063e79451f
Closes #1321 : Added created and last_updated fields for relevant models to their API serializers
2017-12-21 10:49:40 -05:00
Jeremy Stretch
198170ca48
Closes #1553 : Introduced support for bulk object creation via the API
2017-11-07 15:36:10 -05:00
Jeremy Stretch
00986fd7bf
Closes #1691 : Cleaned up and reorganized import statements
2017-11-07 11:08:23 -05:00
Jeremy Stretch
f824d1eb3b
Closes #1556 : Added API endpoints listing static field choices for each app
2017-10-10 16:41:35 -04:00
Jeremy Stretch
c394985b1b
Fixes #1421 : Improved model validation logic for API serializers
2017-08-15 13:54:04 -04:00
Jeremy Stretch
1f9806a480
Fixes #1285 : Enforce model validation when creating/editing objects via the API
2017-07-06 17:37:24 -04:00
Jeremy Stretch
87e5687d03
Closes #1203 : Implemented query filters for all models
2017-06-19 16:10:18 -04:00
Jeremy Stretch
f21c6bca00
Import unicode_literals
2017-05-24 11:33:11 -04:00
Jeremy Stretch
c174c0cc6d
Converted all necessary serializers to CustomFieldModelSerializers
2017-04-27 12:50:43 -04:00
Jeremy Stretch
369d3aa62e
Rearranged URL namespaces to satisfy deprecation warnings
2017-04-05 14:26:33 -04:00
Jeremy Stretch
6cb36a6cee
Fixed browsable API breadcrumbs
2017-03-20 21:50:10 -04:00
Jeremy Stretch
266f9cc370
Added API endpoint, tests for Graphs
2017-03-20 15:14:33 -04:00
Jeremy Stretch
c08fae8bce
Restore not-so-extraneous 'id' field to all WritableSerializers
2017-03-17 17:32:43 -04:00
Jeremy Stretch
e544f1fa1e
Removed extraneous 'id' field from all WritableSerializers
2017-03-17 16:20:34 -04:00
Jeremy Stretch
6c2ed1be22
Standardized API URL definitions
2017-03-09 13:24:02 -05:00
Jeremy Stretch
a6ceaf8d96
Moved custom field serializers to their own module to avoid circular dependency
2017-03-08 16:18:41 -05:00
Jeremy Stretch
0e04d20762
Re-implemented CustomFieldSerializer (read-only for now)
2017-02-09 16:55:54 -05:00
Jeremy Stretch
35f310885e
Standardize API URL inclusions
2017-02-03 16:20:14 -05:00
Jeremy Stretch
06e5966cb4
Include API routers directly where possible
2017-02-01 15:09:23 -05:00
Jeremy Stretch
ea51f1c896
Removed circuit-specific endpoint for CircuitTerminations
2017-02-01 15:01:56 -05:00
Jeremy Stretch
77e5450746
Removed all device-specific API endpoints
2017-02-01 14:34:19 -05:00
Jeremy Stretch
bb1f97abc2
Implemented static writable ModelSerializers for all models
2017-01-31 15:35:09 -05:00
Jeremy Stretch
1fcc2b0029
Namespaced all API URLs
2017-01-31 10:40:53 -05:00
Jeremy Stretch
d9e4017677
Moved graph views into model viewsets
2017-01-30 17:00:58 -05:00
Jeremy Stretch
f0fef94a4f
Re-implemented interface/connection serializers
2017-01-30 15:35:01 -05:00
Jeremy Stretch
12d263999b
Introduced WritableSerializerMixin
2017-01-27 14:36:13 -05:00
Jeremy Stretch
fa900d5dbb
Converted nested serializers to HyperlinkedModelSerializer
2017-01-27 12:22:29 -05:00
Jeremy Stretch
ddc2c8d110
Cleaned up device component nested serializers
2017-01-26 22:37:17 -05:00
Jeremy Stretch
acfba410dd
Standardized implementation of nested ViewSets
2017-01-26 17:58:36 -05:00
Jeremy Stretch
b8ca530c55
Added an endpoint for CircuitTerminations
2017-01-26 17:18:41 -05:00
Jeremy Stretch
0f9fe8648e
Converted static URL definitions to routers
2017-01-26 15:34:07 -05:00
Jeremy Stretch
791a641eef
Created CircuitDetailSerializer
2017-01-26 15:33:41 -05:00
Jeremy Stretch
062a5bfe8d
Initial work on API v2.0
2017-01-24 17:12:16 -05:00
Jeremy Stretch
b3f20aa233
Closes #783 : Add a description field to the Circuit model
2017-01-17 15:18:03 -05:00
Jeremy Stretch
bf817eb69e
Closes #49 : Introduction of circuit terminations
2016-12-14 13:47:22 -05:00
Jeremy Stretch
f0a85b1dd3
Optimized API performance
2016-08-22 15:16:49 -04:00
Jeremy Stretch
76f0463290
Extended API to include custom fields
2016-08-22 13:20:30 -04:00
Jeremy Stretch
d463161619
Closes #149 : Added upstream_speed field to Circuit
2016-08-08 16:51:19 -04:00
Jeremy Stretch
300e67388b
Tenancy-related API cleanup
2016-07-27 13:42:17 -04:00
Jeremy Stretch
06af05708a
Applied tenancy to circuits
2016-07-26 15:42:26 -04:00
Jeremy Stretch
4de5f992be
Code cleanup
2016-05-18 15:17:58 -04:00
Jeremy Stretch
27b289ee3b
Initial push to public repo
2016-03-01 11:23:03 -05:00