diff --git a/validity/graphql/filters.py b/validity/graphql/filters.py index 9a08c6a..be8397f 100644 --- a/validity/graphql/filters.py +++ b/validity/graphql/filters.py @@ -14,7 +14,7 @@ @strawberry_django.filter_type(Job, lookups=True) -class JobFilter(NetBoxModelFilter): +class VJobFilter(NetBoxModelFilter): pass @@ -64,7 +64,7 @@ class NameSetFilter(NetBoxModelFilter): @strawberry_django.filter_type(models.ComplianceReport, lookups=True) class ComplianceReportFilter(BaseModelFilter): - jobs: list[Annotated["JobFilter", strawberry.lazy("validity.graphql.filters")]] = strawberry_django.filter_field() + jobs: list[Annotated["VJobFilter", strawberry.lazy("validity.graphql.filters")]] = strawberry_django.filter_field() @strawberry_django.filter_type(models.Poller, lookups=True) diff --git a/validity/graphql/types.py b/validity/graphql/types.py index b16f0f2..0e055ca 100644 --- a/validity/graphql/types.py +++ b/validity/graphql/types.py @@ -27,7 +27,7 @@ Job, fields="__all__", ) -class JobType(BaseObjectType): +class VJobType(BaseObjectType): pass @@ -118,7 +118,7 @@ class ComplianceReportType(BaseObjectType): results: list[Annotated[ComplianceTestResultType, strawberry.lazy("validity.graphql.types")]] = ( strawberry_django.field() ) - jobs: list[Annotated["JobType", strawberry.lazy("validity.graphql.types")]] = strawberry_django.field() + jobs: list[Annotated["VJobType", strawberry.lazy("validity.graphql.types")]] = strawberry_django.field() device_count: int = strawberry_django.field(annotate=Count("results__device", distinct=True)) test_count: int = strawberry_django.field(annotate=Count("results__test", distinct=True))