forked from pool/python-sortinghat
Accepting request 1229987 from devel:languages:python
- 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. OBS-URL: https://build.opensuse.org/request/show/1229987 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sortinghat?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 11 04:53:10 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- 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 <dmueller@suse.com>
|
Sat Nov 9 16:00:55 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-sortinghat
|
Name: python-sortinghat
|
||||||
Version: 1.5.0
|
Version: 1.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A tool to manage identities
|
Summary: A tool to manage identities
|
||||||
License: GPL-3.0-only
|
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
|
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
|
# PATCH-FIX-OPENSUSE Allow overridding the database config
|
||||||
Patch0: allow-database-config-overrides.patch
|
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 base >= 3.9}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module poetry-core}
|
BuildRequires: %{python_module poetry-core}
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f2277dd3697937f9ac567167a405b757d41a4dfc3750f14f67205ac606c6b392
|
|
||||||
size 2275207
|
|
3
sortinghat-1.5.1.tar.gz
Normal file
3
sortinghat-1.5.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7a8efcc5ded3717d5962202c089f5472f05562186734cd04fc52f986c14a5229
|
||||||
|
size 2275252
|
24
support-new-django-graphql-jwt.patch
Normal file
24
support-new-django-graphql-jwt.patch
Normal file
@@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
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'):
|
Reference in New Issue
Block a user