Jason Novinger
a3adb6de48
Gah, remove django migration header comment
2025-05-16 10:13:30 -05:00
Jason Novinger
b4e15b6730
Addresses PR feedback
2025-05-16 10:02:38 -05:00
Jason Novinger
18b7a3187a
Remove more unnecessary comments
2025-05-14 10:33:48 -05:00
Jason Novinger
82c574cc51
Include forgotten migration files
2025-05-14 10:25:46 -05:00
Jason Novinger
7e1d558428
Fixes #19415 : Increased Circuit/WirelessLink absolute distance upper limit
...
Also adds form validation that provides a useful message to the user
rather than a 500 error with potentially little information.
2025-05-14 09:36:35 -05:00
Jeremy Stretch
76aa255f07
Fixes #19440 : Ensure data migrations use the correct database connection
2025-05-08 14:53:52 -04:00
Jeremy Stretch
64b5867cb3
Merge branch 'main' into feature
2025-05-01 09:45:38 -04:00
Jeremy Stretch
37cfc50202
Fixes #19322 : Correct URL paths for bulk import views ( #19323 )
2025-04-25 12:20:25 -05:00
Jeremy Stretch
4455c2c7dc
Fixes #19224 : Fix GraphQL API support for custom field choices
2025-04-17 12:22:14 -04:00
Jeremy Stretch
fc0acb020f
Merge main into feature
2025-04-10 17:17:21 -04:00
Jeremy Stretch
d93d398afa
Closes #17166 : Remove obsolete limit_choices_to argument from ForeignKey & M2M fields
2025-04-03 09:17:20 -04:00
Arthur Hanson
fe7cc8cae9
Closes #16224 GraphQL Pagination ( #18903 )
...
* 16244 add pagination
* 16244 add pagination
* 16244 fix order_by pagination
* 16224 document pagination
* 16224 remove extraneous code
* 16224 missing core types
* 16224 review changes
* 16224 review changes
* 16224 review changes
2025-03-20 15:00:14 -05:00
Jason Novinger
b45e256f27
Removes banner from new migrations
2025-03-13 15:43:32 -05:00
Jason Novinger
06a206ee33
Extract base NestedGroupModelFilterSet with base search behavior
...
This can easily be extended (as in the case of LocationFilterSet) by
calling super() and ORing a filter to the queryset that is returned.
See: https://docs.djangoproject.com/en/5.1/ref/models/querysets/#or
2025-03-13 15:36:55 -05:00
Jason Novinger
c0b019b735
Adds WirelessLANGroup.comments to all the required places
...
- [x] 1. Add the field to the model class
- [x] 2. Generate and run database migrations
- [NA] 3. Add validation logic to clean()
- [NA] 4. Update relevant querysets
- [x] 5. Update API serializer
- [x] 6. Add fields to forms
- [x] wireless.forms.model_forms, create/edit (e.g. model_forms.py)
- [x] wireless.forms.bulk_edit, bulk edit
- [x] wireless.forms.bulk_import, CSV import
- [NA] filter (UI and API)
- [x] 7. Extend object filter set
- [NA] 8. Add column to object table (Note: was already present)
- [x] 9. Update the SearchIndex
- [x] 10. Update the UI templates
- [x] 11. Create/extend test cases
- [NA] models
- [x] views
- [NA] forms
- [x] filtersets
- [x] api
- [NA] 12. Update the model's documentation
2025-03-13 11:52:06 -05:00
Jason Novinger
ae7a47ca60
Adds comments field to abstract NestedGroupModel and associated migrations
...
Models affected:
- dcim: `Location`, `Region`, `SiteGroup`
- tenancy`: `ContactGroup`, `TenantGroup`
- wireless: `WirelessLANGroup`
2025-03-13 11:52:06 -05:00
Jeremy Stretch
c35f5f829a
Closes #7598 : Enable custom field filtering for GraphQL ( #18701 )
2025-03-07 10:49:06 -08:00
bctiemann
bbf4eea76c
Fixes : #18808 - Fix incorrect dependencies on squashed migrations ( #18827 )
2025-03-07 10:20:34 -08:00
Daniel Sheppard
4ab58f2da9
Fixes : #15016 - Catch AssertionError from cable trace and throw ValidationError ( #16384 )
2025-03-04 10:57:27 -08:00
Brian Tiemann
07ad4c1321
Make GFK scope field sortable=False on tables where it appears
2025-01-17 08:52:12 -05:00
bctiemann
e518f08604
Fixes : #18316 - Fix PrefixIndex reference to 'site' ( #18322 )
...
* Fix PrefixIndex reference to 'site'
* Fix ClusterIndex reference to 'site' and add 'scope' to WirelessLANIndex
2025-01-07 10:47:05 -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
9fe6685562
17929 Add Scope Mixins to Prefix ( #17930 )
...
* 17929 Add Scope Mixins to Prefix
* 17929 Add Scope Mixins to Prefix
* 17929 fixes for tests
* 17929 merge latest scope changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 12596 review changes
* 17929 fix migrations
2024-11-15 14:55:46 -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
Jeremy Stretch
03d413565f
Fix linter error
2024-11-07 14:10:15 -05:00
Arthur Hanson
812ce8471a
10711 Add Scope to WirelessLAN ( #17877 )
...
* 7699 Add Scope to Cluster
* 7699 Serializer
* 7699 filterset
* 7699 bulk_edit
* 7699 bulk_import
* 7699 model_form
* 7699 graphql, tables
* 7699 fixes
* 7699 fixes
* 7699 fixes
* 7699 fixes
* 7699 fix tests
* 7699 fix graphql tests for clusters reference
* 7699 fix dcim tests
* 7699 fix ipam tests
* 7699 fix tests
* 7699 use mixin for model
* 7699 change mixin name
* 7699 scope form
* 7699 scope form
* 7699 scoped form, fitlerset
* 7699 review changes
* 7699 move ScopedFilterset
* 7699 move CachedScopeMixin
* 7699 review changes
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 10711 Add Scope to WirelessLAN
* 7699 review changes
* 7699 refactor mixins
* 7699 _sitegroup -> _site_group
* 7699 update docstring
* fix model
* remove old constants, update filtersets
* 10711 fix GraphQL
* 10711 fix API
* 10711 add tests
* 10711 review changes
* 10711 add tests
* 10711 add scope to detail template
* 10711 add api test
* Extend CSV test data
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-11-07 10:28:02 -05:00
Jeremy Stretch
ef1fdf0a01
Closes #17761 : Store empty CharField choices as null
2024-10-21 13:12:05 -04:00
Jeremy Stretch
c78da79ce6
Merge branch 'develop' into feature
2024-10-18 13:18:11 -04:00
Jeremy Stretch
a8ec06687a
Reomove obsolete nested serializers
2024-10-18 08:16:30 -04:00
corubba
532dbabbab
Fixes #17749 : Add missing graphql fields
2024-10-16 13:40:38 -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
65687851fe
16547 Add distance to Circuit ( #17629 )
...
* 16547 Add distance to Circuit
* 16547 fix test cases
* 16547 fix test cases
* 16547 add distance to API, forms, tables
* 16547 fixes
* 16547 fixes
* 16547 review changes
* 16547 review changes
* Clean up DistanceColumn
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-10-10 14:37:33 -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
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
a09c1667ff
#15106 : Put distance & distance_unit on same line in model form
2024-08-30 08:40:16 -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
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
Arthur Hanson
91dcecbd07
15106 Add Length Field to Wireless Link ( #16528 )
...
* 15106 add wireles link length
* 15106 add wireles link length
* 15106 add wireless link length
* 15106 add tests
* 15106 rename length -> distance
* 15106 rename length -> distance
* 15106 review comments
* 15106 review comments
* 15106 fix form
* 15106 length -> distance
2024-06-17 09:19:49 -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
97a37576fc
14953 fix serializers when using add_related_count ( #16158 )
...
* 14953 fix serializers when using add_related_count
* 14953 update comments
* Set default=0 for annotated count fields
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-05-17 15:50:39 -04:00