Renato Almeida de Oliveira
3ef7ab4416
Fixes : #18579 Add contact filters to services ( #18818 )
...
* Add Contact filter to Services
* Add ContactModelFilterForm to ProviderAccountFilterForm
* Add Contact filter support for Aggregate
* Add Contact filter support for Prefix
* Add Contact filter to IPRange
* Add Contact filter to IPAddress
* Add Contact filter to L2VPN
* Add Contact filter to TunnelGroup
* Add Contact filter to Tunnel
* Add ContactModelFilterSet to ProviderAccountFilterSet
* Fixes classes inheritance order
Setup NetBoxModelFilterSetForm as the last inherited class
Co-authored-by: Jason Novinger <jnovinger@gmail.com >
---------
Co-authored-by: Jason Novinger <jnovinger@gmail.com >
2025-03-06 09:41:41 -06:00
Antoine Keranflec'h
a6c07e6a35
fix contact wrong model assignment
2025-02-25 13:53:50 +01:00
Antoine Keranflec'h
59cd5bc653
fix double line breaks
2025-02-25 09:15:55 +01:00
Antoine Keranflec'h
2a8728544c
fix(pep) fix pep8 compliancy
2025-01-31 08:48:35 +01:00
Antoine Keranflec'h
f83e55e1db
Merge branch 'netbox-community:main' into 17542-Contact_Assignment_to_vpn_tunnels
2025-01-25 14:19:25 +01:00
Jeremy Stretch
5d1070796d
Merge branch 'develop' into feature
2025-01-06 13:42:57 -05:00
Jeremy Stretch
b9abb3200c
Fixes #18271 : Require only encryption OR authentication algorithm when creating an IPSec proposal via REST API
2025-01-03 12:33:58 -05:00
Jeremy Stretch
39ca3ce571
Merge branch 'develop' into feature
2024-12-12 12:13:45 -05:00
Joel McGuire
21962b3488
fix #17960 by adding 6 more tunnel encap options ( #18097 )
...
* fix #17960
* updated post feedback
---------
Co-authored-by: Joel L. McGuire <joel.mcguire@ccr.net >
2024-12-09 15:03:00 -05:00
Jeremy Stretch
ff7a59db2e
Closes #17752 : Rename URL paths for bulk import to *_bulk_import
2024-11-22 12:51:06 -05:00
Jeremy Stretch
343a4af591
Closes #18022 : Extend linter (ruff) to enforce line length limit (120 chars) ( #18067 )
...
* Enable E501 rule
* Configure ruff formatter
* Reformat migration files to fix line length violations
* Fix various E501 errors
* Move table template code to template_code.py & ignore E501 errors
* Reformat raw SQL
2024-11-21 15:58:11 -05:00
Jeremy Stretch
a0b4b0afe0
Closes #18023 : Employ register_model_view() for list views ( #18029 )
...
* Extend register_model_view() to enable registering list views
* Register circuits list views with register_model_view()
* Register core list views with register_model_view()
* Fix bulk_edit & bulk_delete URL paths
* Register dcim list views with register_model_view() (WIP)
* Register dcim list views with register_model_view()
* Register extras list views with register_model_view()
* Register ipam list views with register_model_view()
* Register tenancy list views with register_model_view()
* Register users list views with register_model_view()
* Register virtualization list views with register_model_view()
* Register vpn list views with register_model_view()
* Register wireless list views with register_model_view()
* Add change note for register_model_view()
2024-11-20 15:54:37 -05:00
Jeremy Stretch
b4f15092db
Closes #5858 : Implement a quick-add UI widget for related objects ( #18016 )
...
* WIP
* Misc cleanup
* Add warning re: nested quick-adds
2024-11-18 14:44:57 -05:00
Arthur Hanson
6ab0792f02
Closes #11279 : Replace _name natural key sorting with collation ( #18009 )
...
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 fix tables /tests
* 11279 fix tests
* 11279 refactor VirtualDisk
* Clean up migrations
* Misc cleanup
* Correct errant file inclusion
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-11-15 09:32:09 -05:00
Antoine Keranflec'h
113c8d1d85
Merge branch 'netbox-community:develop' into 17542-Contact_Assignment_to_vpn_tunnels
2024-11-12 14:17:05 +01:00
Jeremy Stretch
ef1fdf0a01
Closes #17761 : Store empty CharField choices as null
2024-10-21 13:12:05 -04:00
Jeremy Stretch
a8ec06687a
Reomove obsolete nested serializers
2024-10-18 08:16:30 -04:00
Jeremy Stretch
727de0fb59
Remove unused imports
2024-10-11 12:27:39 -04:00
Jeremy Stretch
256b5dc676
Merge branch 'develop' into feature
2024-10-11 11:29:36 -04:00
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
Arthur Hanson
ed1327eeb7
16546 define get_absolute_url method in NetBoxModel ( #17693 )
...
* 16546 define get_absolute_url method in NetBoxModel
* 16546 define get_absolute_url method in NetBoxModel
* 16546 define get_absolute_url method in NetBoxModel
* 16546 move get_absolute_url to NetBoxFeatureSet
* 16546 fix CircuitTermination
* Fix linebreaks
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-10-10 09:59:19 -04:00
Antoine Keranflec'h
5b2241aaaf
fix(17542) add contact to tunnels
2024-10-10 15:38:48 +02:00
Arthur Hanson
3f469b0b0a
17476 Upgrade to Django 5.1 ( #17620 )
...
* 17476 Upgrade to Django 5.1
* 16136 fix migrations
* 17476 update remove GFK from fields
* 17476 fix
* 17476 update django to bugfix release
* fix comma
2024-10-10 09:08:58 -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