9856 misc fixes

This commit is contained in:
Arthur 2024-02-15 16:03:47 -08:00
parent ae4605622c
commit 776d0f2a65
3 changed files with 6 additions and 8 deletions

View File

@ -131,9 +131,9 @@ social-auth-core
# https://github.com/python-social-auth/social-app-django/blob/master/CHANGELOG.md
social-auth-app-django
# Enhanced Strawberry GraphQL integration with Django
# https://github.com/blb-ventures/strawberry-django-plus/blob/main/CHANGELOG.md
strawberry-graphql-django
# Strawberry GraphQL Django extension
# https://github.com/strawberry-graphql/strawberry-django/blob/main/CHANGELOG.md
strawberry-django
# SVG image rendering (used for rack elevations)
# https://github.com/mozman/svgwrite/blob/master/NEWS.rst

View File

@ -118,7 +118,6 @@ class CableTerminationType(NetBoxObjectType):
Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')],
Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')],
Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')],
], strawberry.union("CableTerminationTerminationType")]]:
return self.termination
@ -586,12 +585,11 @@ class SiteGroupType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
@strawberry_django.type(
models.VirtualChassis,
# fields='__all__',
exclude=('member_count',), # bug - temp
fields='__all__',
filters=VirtualChassisFilter
)
class VirtualChassisType(NetBoxObjectType):
pass
member_count: BigInt
@strawberry_django.type(

View File

@ -30,7 +30,7 @@ PyYAML==6.0.1
requests==2.31.0
social-auth-app-django==5.4.0
social-auth-core[openidconnect]==4.5.2
strawberry-graphql-django==0.30.1
strawberry-graphql-django==0.31.0
svgwrite==1.4.3
tablib==3.5.0
tzdata==2023.4