security/py-netbox-secrets: Backport two upstream PRs
- One patch fixes warning sthat occur during the generation of API schemas, which prevent access to the REST API documentation:
[...]
/usr/local/lib/python3.11/site-packages/netbox_secrets/graphql/filters.py:40: UserWarning: FilterLookup[str] may cause DuplicatedTypeName errors. Use StrFilterLookup instead.
name: FilterLookup[str] | None = strawberry_django.filter_field()
[...]
- The other patch also resolves several DuplicatedNameType errors that trigger exceptions which make the NetBox instance unusable:
[...]
File "/usr/local/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 503, in from_input_object self.validate_same_type_definition(type_name, type_definition, cached_type) File "/usr/local/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 1040, in validate_same_type_definition raise DuplicatedTypeName(first_origin, second_origin, name)
strawberry.exceptions.duplicated_type_name.DuplicatedTypeName: Type StrFilterLookup is defined multiple times in the schema
[...]
- Bump PORTREVISION due changed package content.