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
Jeremy Stretch
e59f776e02
Closes #17725 : Clean up import statements ( #17728 )
...
* #17725 : Resolve all F401 errors
* Tweak noqa designation
2024-10-10 14:52:47 -04:00
Craig Askings
2172ddde61
Add EVPN-VPWS to L2VPNTypeChoices ( #17694 )
...
* Add EVPN-VPWS to the availbable L2VPN Connection Types
* Updated documentation to reference the new L2VPN type.
2024-10-09 10:28:53 -04:00
Jeremy Stretch
a777850702
Merge branch 'develop' into feature
2024-09-03 11:59:59 -04:00
Daniel Sheppard
4fead1c85f
Fixes : #17310 - Properly restrict GraphQL related object queries ( #17312 )
...
* Fixes : #17310 - Fix GraphQL restriction of related objects
* Fix some failing tests
* Fix test
2024-08-30 14:22:58 -04:00
Jeremy Stretch
6f7bf5baf4
Merge branch 'develop' into feature
2024-08-29 10:51:38 -04:00
Daniel Sheppard
0464dacf7e
Fixes : #16292 - Properly restrict GraphQL queries for querys with pk set ( #17244 )
...
* Fixes : #16292 - Properly restrict GraphQL queries for querys with pk set
* Update netbox/netbox/settings.py
* Apply schema adaptations across all apps
* Extend GraphQL API tests
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-08-28 12:23:25 -04:00
Jeremy Stretch
e3d681be54
Closes #17143 : Deprecate the use of dedicated nested API serializers
2024-08-15 08:00:33 -04:00
Jeremy Stretch
02ae91589d
Merge branch 'develop' into feature
2024-07-09 15:16:05 -04:00
locklearxd
d8d66581cc
potential fix for IKE policy mode issue with version2
2024-07-09 08:35:02 -04:00
Jeremy Stretch
7a88810a23
Fixes #16780 : IKE proposal created via REST API should not require authentication_algorithm
2024-07-04 09:32:01 -04:00
Arthur Hanson
52546608f6
15156 Add display_url to REST API ( #16412 )
...
* 15156 add display_url to REST API
* 15156 fix view name
* 15156 fix typo
* 15156 fix tests
* 15156 add url display_url to base class
* 15156 add url display_url to base class
* 15156 add url display_url to base class
* 15156 review changes
* 15156 review changes
* 15156 review changes
* 15156 review changes
* 15156 remove bogus code
* 15156 remove bogus code
* 15156 review changes
* 15156 review changes
* 15156 review changes
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-06-25 09:59:58 -04:00
Jeremy Stretch
08ac5cd52c
Merge branch 'develop' into feature
2024-06-24 15:40:43 -04:00
Alexander Haase
5353f83710
15794 Make "related objects" dynamic ( #15876 )
...
* Closes #15794 : Make "related objects" dynamic
Instead of hardcoding relationships between models for the detail view,
they are now dynamically generated.
* Fix related models call
* Remove extra related models hook
Instead of providing a rarely used hook method, additional related
models can now be passed directly to the lookup method.
* Fix relations view for ASNs
ASNs have ManyToMany relationships and therefore can't used automatic
resolving. Explicit relations have been restored as before.
* Add method call keywords for clarification
* Cleanup related models
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-06-12 09:46:41 -04:00
Arthur Hanson
c7176e86fc
15410 removed deprecated filters ( #16410 )
...
* 15410 removed legacy filters
* 15410 fix tests
* 15410 fix tests
2024-06-07 14:08:30 -04:00
Jeremy Stretch
51bd98bdfc
Merge branch 'develop' into feature
2024-05-06 12:59:24 -04:00
Jeremy Stretch
15cc50fc1d
Fixes #15960 : Use internal ManyToManyColumn to ensure proper export behavior
2024-05-06 10:32:29 -04:00
Jeremy Stretch
312291b010
Merge branch 'develop' into feature
2024-05-01 16:09:14 -04:00
Jeremy Stretch
11816b45e7
Fixes #15899 : Correct the view name for the tags column on L2VPNTerminationTable
2024-04-30 15:11:54 -04:00
Jeremy Stretch
46bd62fdc9
Merge branch 'develop' into feature
2024-04-22 13:23:42 -04:00
Arthur Hanson
88facbafbb
15761 filter IKE Proposals on IKE Policy detail view ( #15766 )
...
* 15761 filter IKEAProposals on IKEAPolicy detail view
* Add test for ike_policy filter
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-04-19 17:09:55 -04:00
Wrage, Florian
f7e4fe2a9c
Fixes #15640 : add identifier field to search index of l2vpn
2024-04-15 10:53:53 -04:00
Arthur
54c6d95fbb
15654 check for no termination in TunnelTerminationSerializer
2024-04-15 09:22:58 -04:00
Markku Leiniö
5b50920c61
Closes #14707 : Change 'Interface' to 'Tunnel interface' in VPN tunnel forms
2024-04-04 12:57:35 -04:00
Arthur Hanson
8767577ecd
15553 change graphql sub-queries from functions to types ( #15557 )
...
* 15553 change graphql list to types
* 15553 review changes
2024-03-29 14:54:31 -04:00
Jeremy Stretch
3be3bbe534
Upgrade DRF to v3.15
2024-03-29 13:13:41 -04:00
Arthur Hanson
45c99e4477
9856 Replace graphene with Strawberry ( #15141 )
...
* 9856 base strawberry integration
* 9856 user and group
* 9856 user and circuits base
* 9856 extras and mixins
* 9856 fk
* 9856 update strawberry version
* 9856 update imports
* 9856 compatability fixes
* 9856 compatability fixes
* 9856 update strawberry types
* 9856 update strawberry types
* 9856 core schema
* 9856 dcim schema
* 9856 extras schema
* 9856 ipam and tenant schema
* 9856 virtualization, vpn, wireless schema
* 9856 fix old decorator
* 9856 cleanup
* 9856 cleanup
* 9856 fixes to circuits type specifiers
* 9856 fixes to circuits type specifiers
* 9856 update types
* 9856 GFK working
* 9856 GFK working
* 9856 _name
* 9856 misc fixes
* 9856 type updates
* 9856 _name to types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 update types
* 9856 GraphQLView
* 9856 GraphQLView
* 9856 fix OrganizationalObjectType
* 9856 single item query for schema
* 9856 circuits graphql tests working
* 9856 test fixes
* 9856 test fixes
* 9856 test fixes
* 9856 test fix vpn
* 9856 test fixes
* 9856 test fixes
* 9856 test fixes
* 9856 circuits test sans DjangoModelType
* 9856 core test sans DjangoModelType
* 9856 temp checkin
* 9856 fix extas FK
* 9856 fix tenancy FK
* 9856 fix virtualization FK
* 9856 fix vpn FK
* 9856 fix wireless FK
* 9856 fix ipam FK
* 9856 fix partial dcim FK
* 9856 fix dcim FK
* 9856 fix virtualization FK
* 9856 fix tests / remove debug code
* 9856 fix test imagefield
* 9856 cleanup graphene
* 9856 fix plugin schema
* 9856 fix requirements
* 9856 fix requirements
* 9856 fix docs
* 9856 fix docs
* 9856 temp fix tests
* 9856 first filterset
* 9856 first filterset
* 9856 fix tests
* 9856 fix tests
* 9856 working auto filter generation
* 9856 filter types
* 9856 filter types
* 9856 filter types
* 9856 fix graphiql test
* 9856 fix counter fields and merge feature
* 9856 temp fix tests
* 9856 fix tests
* 9856 fix tenancy, ipam filter definitions
* 9856 cleanup
* 9856 cleanup
* 9856 cleanup
* 9856 review changes
* 9856 review changes
* 9856 review changes
* 9856 fix base-requirements
* 9856 add wrapper to graphiql
* 9856 remove old graphiql debug toolbar
* 9856 review changes
* 9856 update strawberry
* 9856 remove superfluous check
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-03-22 12:56:30 -04:00
Jeremy Stretch
ae8df77cc8
Move count_related() & dict_to_filter_params() to utilities.query
2024-03-22 08:59:52 -04:00
Jeremy Stretch
32edb8dfe6
Misc cleanup & documentation for FieldSets
2024-03-19 13:34:13 -04:00
Jeremy Stretch
72d3c17b48
Use FieldSet instances for all forms
2024-03-19 13:34:13 -04:00
Jeremy Stretch
3b28e8e615
Refactor form rendering components & add docstrings
2024-03-19 13:34:13 -04:00
Jeremy Stretch
2aaa552067
Replace custom form templates with TabbedFieldGroups
2024-03-19 13:34:13 -04:00
Jeremy Stretch
78bd7dec48
Merge branch 'develop' into feature
2024-03-15 12:32:54 -04:00
Jeremy Stretch
2d4295e2ed
Merge pull request #15369 from netbox-community/15237-audit-filtersets
...
Closes #15237 : Add tests for missing filters
2024-03-12 13:09:14 -04:00
Jeremy Stretch
bea32aef71
Declare FilterSet fields as a tuple
2024-03-12 12:08:11 -04:00
Jeremy Stretch
52bda9c0e6
Closes #15401 : Rename PostgreSQL tables & indexes for L2VPN models ( #15405 )
...
* Closes #15401 : Rename PostgreSQL tables & indexes for L2VPN models
* Account for alternate index name
2024-03-12 11:20:23 -04:00
Jeremy Stretch
313e63622b
Extend logic for validating filter class
2024-03-11 15:35:40 -04:00
Jeremy Stretch
b36a70d236
Add missing filters for reverse many-to-many relationships
2024-03-11 14:39:34 -04:00
Jeremy Stretch
6085e0bb0b
Test for missing ManyToManyField filters
2024-03-11 14:39:34 -04:00
Jeremy Stretch
16b422cbac
Add missing filters
2024-03-11 14:39:34 -04:00
Jeremy Stretch
6af12b1814
Add tests for missing FilterSet filters
2024-03-11 14:39:34 -04:00
Jeremy Stretch
6f6d483ca5
Merge branch 'feature' into 15277-object-types
2024-03-05 08:52:07 -05:00
Jeremy Stretch
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
Jeremy Stretch
55ef24d56d
Fixes #15316 : Fix selection of 3DES encryption for IKE & IPSec proposals
2024-02-29 14:54:41 -05:00
Jeremy Stretch
78e284c14f
Initialize dynamically-resolved serializers with nested=True
2024-02-27 14:56:36 -05:00
Jeremy Stretch
ca56c8b9ef
Add dynamic nesting support to SerializedPKRelatedField
2024-02-27 14:00:42 -05:00
Jeremy Stretch
c382ba0ae0
Refactor REST API serializers to avoid circular imports
2024-02-27 13:26:43 -05:00
Jeremy Stretch
c146f5e1b5
Replace nested serializers with primary serializers where possible
2024-02-26 16:49:30 -05:00
Jeremy Stretch
d042e6f69d
Closes #15238 : Include description field in brief mode
2024-02-26 11:39:31 -05:00
Jeremy Stretch
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