Jeremy Stretch
664a39911c
Add custom field support for organizational models to API serializers
2021-02-25 15:58:13 -05:00
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
0b33c53f47
Update secrets API, views
2020-09-18 16:58:51 -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
e6bc55af85
#4969 : Remove user and group assignment from SecretRole
2020-08-07 16:19:18 -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
a2955196af
Remove extraneous permission class from SecretRoleViewSet
2020-06-08 15:21:11 -04:00
Jeremy Stretch
ea9de37dd1
Remove FieldChoicesViewSet
2020-03-12 10:48:17 -04:00
Jeremy Stretch
5bf85597ed
Fixes #4146 : Fix SecretRole permissions enforcement
2020-02-12 11:13:32 -05:00
Jeremy Stretch
15e1f62919
Renamed secrets FilterSets
2020-01-09 20:38:59 -05: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
bd7aee7c1f
Closes #2614 : Simplify calls of super() for Python 3
2018-11-27 10:52:24 -05:00
Jeremy Stretch
29d546a3f1
Upgraded django-filter to 2.0.0
2018-11-02 13:46:28 -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
821fb1e01e
Finished merging writable serializers
2018-04-05 14:12:43 -04:00
Jeremy Stretch
0969c458b3
Closes #1842 : Implement support for Django 2.0
2018-03-30 10:39:22 -04:00
Jeremy Stretch
9c27d18d6c
Fix bulk creation of Secrets via API
2018-01-02 17:07:21 -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
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
a67fc64afb
Fixes #1025 : Applied missing API view filters
2017-04-03 11:04:17 -04:00
Jeremy Stretch
6542b8b198
Base64 decoding tweaks
2017-03-29 13:39:59 -04:00
Jeremy Stretch
5d022a575a
Closes #985 : Added preserve_key to get-session-key endpoint
2017-03-28 11:13:13 -04:00
Jeremy Stretch
0899a1052e
Only attempt to process session key if user is authenticated
2017-03-22 17:43:29 -04:00
Jeremy Stretch
6d30fdb83d
Finished work on secrets views; removed path from cookie assignment
2017-03-21 15:30:36 -04:00
Jeremy Stretch
e3ae013e42
Implemented full read/write support for secrets
2017-03-15 14:47:18 -04:00
Jeremy Stretch
07a2b136b8
Refactored SecretViewSet
2017-03-15 13:48:09 -04:00
Jeremy Stretch
4cb30f1ce4
Relate SessionKey to UserKey rather than User
2017-03-14 13:32:07 -04:00
Jeremy Stretch
105d17748e
Secrets UI work
2017-03-14 12:32:08 -04:00
Jeremy Stretch
dd27950fae
Simplify SessionKey usage
2017-03-14 10:58:57 -04:00
Jeremy Stretch
7e6d061646
Converted GetSessionKey and RSAKeyGeneratorView to ViewSets
2017-03-08 17:57:51 -05:00
Jeremy Stretch
a42eeb12d2
Implemented SessionKeys for secrets
2017-02-03 12:49:32 -05:00
Jeremy Stretch
cf66f67fb6
Initial work on using session-based master key ciphers
2017-02-02 21:26:51 -05:00
Jeremy Stretch
2408d78f47
Introduced ability to decrypt secrets by sending the user's private key in an HTTP header
2017-02-01 17:40:50 -05:00
Jeremy Stretch
4f8a5eb1a0
Moved secret views into a ViewSet (no write ability yet)
2017-02-01 16:21:33 -05:00
Jeremy Stretch
acfba410dd
Standardized implementation of nested ViewSets
2017-01-26 17:58:36 -05:00
Jeremy Stretch
062a5bfe8d
Initial work on API v2.0
2017-01-24 17:12:16 -05:00
Jeremy Stretch
82ad479037
Enforce authentication for all secrets API views
2016-07-18 15:28:36 -04:00
Jeremy Stretch
18846cf40a
Fixes #271 : Corrected select_related() in secrets API
2016-07-12 12:27:26 -04:00
Jeremy Stretch
8dd6112a4b
Corrected detection of private_key
2016-07-08 17:49:20 -04:00