9316f48a20
Fixes #15982 : Restore the "assign IP" tab
2024-05-07 10:43:49 -04:00
51bd98bdfc
Merge branch 'develop' into feature
2024-05-06 12:59:24 -04:00
15cc50fc1d
Fixes #15960 : Use internal ManyToManyColumn to ensure proper export behavior
2024-05-06 10:32:29 -04:00
312291b010
Merge branch 'develop' into feature
2024-05-01 16:09:14 -04:00
cbfed83f60
15524 round iprange utilization ( #15734 )
2024-04-29 13:19:57 -04:00
851b4cc4d3
Added assigned_object_type in prefetch for api view IPAddressViewSet - fixes #15845
2024-04-29 10:50:08 -04:00
ded2fe9471
15809 Mark unions as nullable in GraphQL where appropriate ( #15824 )
...
* 15809 mark unions as nullable where appropriate
* 15809 fix tests
* 15809 fix tests
2024-04-25 09:19:19 -04:00
46bd62fdc9
Merge branch 'develop' into feature
2024-04-22 13:23:42 -04:00
94c31622ac
15588 set readonly nullable fields as allow_null=True
2024-04-19 16:17:28 -04:00
fca23c6419
15029 check if duplicate FHRP group assignment
2024-04-03 14:09:32 -04:00
489e956d83
Merge branch 'develop' into feature
2024-04-03 08:43:12 -04:00
7d54357146
Fixes : #15502 - Correct exception on IP import form when VM is target
2024-04-03 08:10:28 -04:00
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
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
ae8df77cc8
Move count_related() & dict_to_filter_params() to utilities.query
2024-03-22 08:59:52 -04:00
81ca455fef
Move array_to_range(), array_to_string(), deepmerge(), drange(), flatten_dict(), and shallow_compare_dict() to utilities.data
2024-03-22 08:59:52 -04:00
72d3c17b48
Use FieldSet instances for all forms
2024-03-19 13:34:13 -04:00
3b28e8e615
Refactor form rendering components & add docstrings
2024-03-19 13:34:13 -04:00
2aaa552067
Replace custom form templates with TabbedFieldGroups
2024-03-19 13:34:13 -04:00
8f03a19b5f
Introduce ObjectAttribute for displaying read-only instance attributes on forms
2024-03-19 13:34:13 -04:00
78bd7dec48
Merge branch 'develop' into feature
2024-03-15 12:32:54 -04:00
572efeb987
Ensure all filter labels are translated
2024-03-12 12:14:13 -04:00
bea32aef71
Declare FilterSet fields as a tuple
2024-03-12 12:08:11 -04:00
313e63622b
Extend logic for validating filter class
2024-03-11 15:35:40 -04:00
a136030094
Validate filter class for foreign key fields
2024-03-11 14:39:34 -04:00
b36a70d236
Add missing filters for reverse many-to-many relationships
2024-03-11 14:39:34 -04:00
6085e0bb0b
Test for missing ManyToManyField filters
2024-03-11 14:39:34 -04:00
5cb7af88d4
Fix remaining tests
2024-03-11 14:39:34 -04:00
16b422cbac
Add missing filters
2024-03-11 14:39:34 -04:00
6af12b1814
Add tests for missing FilterSet filters
2024-03-11 14:39:34 -04:00
f0e137133f
Fixes : #14832 Extend GraphQL FHRPGroupType with IPAddressesMixin
2024-03-11 10:32:31 -04:00
6f6d483ca5
Merge branch 'feature' into 15277-object-types
2024-03-05 08:52:07 -05:00
0df68bf291
Rename ContentType proxy model to ObjectType
2024-03-04 08:33:44 -05:00
bdcf4c4154
Fixes #15220 : Move IP mask validation logic from form to model
2024-03-01 11:28:48 -05:00
78e284c14f
Initialize dynamically-resolved serializers with nested=True
2024-02-27 14:56:36 -05:00
ca56c8b9ef
Add dynamic nesting support to SerializedPKRelatedField
2024-02-27 14:00:42 -05:00
c382ba0ae0
Refactor REST API serializers to avoid circular imports
2024-02-27 13:26:43 -05:00
c146f5e1b5
Replace nested serializers with primary serializers where possible
2024-02-26 16:49:30 -05:00
d042e6f69d
Closes #15238 : Include description field in brief mode
2024-02-26 11:39:31 -05:00
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
3ddacf4b88
Merge branch 'develop' into feature
2024-02-21 16:24:23 -05:00
5f159795dd
Closes #15042 : Move model registration logic to AppConfigs ( #15203 )
...
* Closes #15042 : Move model registration logic to AppConfigs
* Refactor register_model() to accept multiple models
2024-02-21 14:22:13 -05:00
af27bf5eff
15094 Add missing gettext to error strings for internationalization ( #15155 )
...
* 15049 add missing gettext to error strings
* 15049 add missing gettext to error strings
* 15094 review change
* 15094 review change
* Formatting cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-02-20 09:44:02 -05:00
7abb2b2ab5
Closes #15131 : Dynamic queryset annotations for REST API endpoints ( #15152 )
...
* Introduce RelatedObjectCountField
* Introduce get_annotations_for_serializer() and enable dynamic annotations
* Add RelatedObjectCountFields to serializers; remove static annotations from querysets
* Remove annotations cleanup logic from BriefModeMixin
* Annotate type for RelatedObjectCountField
* Remove redundant field on TagSerializer
* Add missing reverse relationship for power feeds to rack
* Refactor RelatedObjectCountField to take a single relationship name
2024-02-15 14:49:27 -05:00
b3f25a400b
Closes #15087 : Support for specifying a subset of API serializer fields ( #15122 )
...
* Enable dynamic field inclusion for REST API serializers
* Recurse through nested serializer when resolving prefetches
* Remove obsolete calls to prefetch_related() for API views
* Remove support for brief_prefetch_fields viewset attribute
* Rename query parameter
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode (#15134 )
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode
* Update API test
* Restore get_queryset() on BriefModeMixin, minus prefetch logic
* get_prefetches_for_serializer() should reference serializer field source if set
2024-02-14 09:28:37 -05:00
20824ceb25
Closes #13283 : Add context to dropdown options ( #15104 )
...
* Initial work on #13283
* Enable passing TomSelect HTML template attibutes on DynamicModelChoiceField
* Merge disabled_indicator into option_attrs
* Add support for annotating a numeric count on dropdown options
* Annotate parent object on relevant fields
* Improve rendering of color options
* Improve rendering of color options
* Rename option_attrs to context
* Expose option context on ObjectVar for custom scripts
* Document dropdown context variables
2024-02-13 16:31:17 -05:00
12d830bcf2
Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode ( #15134 )
...
* Fixes #15133 : Fix FHRP group representation on assignments endpoint under brief mode
* Update API test
2024-02-13 11:29:53 -05:00
74e67afa41
Merge branch 'develop' into feature
2024-02-05 14:38:26 -05:00
4ba0ec78cf
fix: performance for get__available_ips for prefix ( #15041 )
2024-02-05 13:30:59 -05:00
1b6fc49a3e
14999 fix FHRP create and add another
2024-02-02 14:52:38 -05:00