diff --git a/python-sortinghat.changes b/python-sortinghat.changes index 4c1e6f5..27d9921 100644 --- a/python-sortinghat.changes +++ b/python-sortinghat.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Dec 11 04:53:10 UTC 2024 - Steve Kowalik + +- Update to 1.5.1: + * Update Poetry dependencies. +- Add patch support-new-django-graphql-jwt.patch: + * Stop calling a now removed method in new django-graphql-jwt. + ------------------------------------------------------------------- Sat Nov 9 16:00:55 UTC 2024 - Dirk Müller diff --git a/python-sortinghat.spec b/python-sortinghat.spec index 71fdd8a..f32ee64 100644 --- a/python-sortinghat.spec +++ b/python-sortinghat.spec @@ -17,7 +17,7 @@ Name: python-sortinghat -Version: 1.5.0 +Version: 1.5.1 Release: 0 Summary: A tool to manage identities License: GPL-3.0-only @@ -25,6 +25,8 @@ URL: https://github.com/grimoirelab/sortinghat Source: https://github.com/chaoss/grimoirelab-sortinghat/archive/refs/tags/%{version}.tar.gz#/sortinghat-%{version}.tar.gz # PATCH-FIX-OPENSUSE Allow overridding the database config Patch0: allow-database-config-overrides.patch +# PATCH-FIX-OPENSUSE Support django-graphql-jwt 0.4.0 +Patch1: support-new-django-graphql-jwt.patch BuildRequires: %{python_module base >= 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} diff --git a/sortinghat-1.5.0.tar.gz b/sortinghat-1.5.0.tar.gz deleted file mode 100644 index 02a0266..0000000 --- a/sortinghat-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2277dd3697937f9ac567167a405b757d41a4dfc3750f14f67205ac606c6b392 -size 2275207 diff --git a/sortinghat-1.5.1.tar.gz b/sortinghat-1.5.1.tar.gz new file mode 100644 index 0000000..ad46616 --- /dev/null +++ b/sortinghat-1.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a8efcc5ded3717d5962202c089f5472f05562186734cd04fc52f986c14a5229 +size 2275252 diff --git a/support-new-django-graphql-jwt.patch b/support-new-django-graphql-jwt.patch new file mode 100644 index 0000000..5d6e61f --- /dev/null +++ b/support-new-django-graphql-jwt.patch @@ -0,0 +1,24 @@ +Index: grimoirelab-sortinghat-1.5.1/sortinghat/core/middleware.py +=================================================================== +--- grimoirelab-sortinghat-1.5.1.orig/sortinghat/core/middleware.py ++++ grimoirelab-sortinghat-1.5.1/sortinghat/core/middleware.py +@@ -16,7 +16,6 @@ + # along with this program. If not, see . + + from django.http import Http404 +-from graphql_jwt.compat import get_operation_name + from graphql_jwt.settings import jwt_settings + + from . import tenant +@@ -27,7 +26,10 @@ def allow_any(info, **kwargs): + # "How to solve 'NoneType' object has no attribute 'fields' in + # Graphene-django" (https://stackoverflow.com/a/71296685). + try: +- operation_name = get_operation_name(info.operation.operation).title() ++ if hasattr(info.operation.operation, 'value'): ++ operation_name = info.operation.operation.value.title() ++ else: ++ operation_name = info.operation.operation.title() + operation_type = info.schema.get_type(operation_name) + + if hasattr(operation_type, 'fields'):