Skip to content

Commit 3419e0d

Browse files
Laz80UKamyasnikov
authored andcommitted
Renamed JobType and JobFilter classes to resolve conflicts with other plugins
1 parent ce3ac6d commit 3419e0d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

validity/graphql/filters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
@strawberry_django.filter_type(Job, lookups=True)
17-
class JobFilter(NetBoxModelFilter):
17+
class VJobFilter(NetBoxModelFilter):
1818
pass
1919

2020

@@ -64,7 +64,7 @@ class NameSetFilter(NetBoxModelFilter):
6464

6565
@strawberry_django.filter_type(models.ComplianceReport, lookups=True)
6666
class ComplianceReportFilter(BaseModelFilter):
67-
jobs: list[Annotated["JobFilter", strawberry.lazy("validity.graphql.filters")]] = strawberry_django.filter_field()
67+
jobs: list[Annotated["VJobFilter", strawberry.lazy("validity.graphql.filters")]] = strawberry_django.filter_field()
6868

6969

7070
@strawberry_django.filter_type(models.Poller, lookups=True)

validity/graphql/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Job,
2828
fields="__all__",
2929
)
30-
class JobType(BaseObjectType):
30+
class VJobType(BaseObjectType):
3131
pass
3232

3333

@@ -118,7 +118,7 @@ class ComplianceReportType(BaseObjectType):
118118
results: list[Annotated[ComplianceTestResultType, strawberry.lazy("validity.graphql.types")]] = (
119119
strawberry_django.field()
120120
)
121-
jobs: list[Annotated["JobType", strawberry.lazy("validity.graphql.types")]] = strawberry_django.field()
121+
jobs: list[Annotated["VJobType", strawberry.lazy("validity.graphql.types")]] = strawberry_django.field()
122122

123123
device_count: int = strawberry_django.field(annotate=Count("results__device", distinct=True))
124124
test_count: int = strawberry_django.field(annotate=Count("results__test", distinct=True))

0 commit comments

Comments
 (0)