From de5f6ad29fbc40dc1197738f8b3991ce8c683344 Mon Sep 17 00:00:00 2001 From: Maximilian Moser <maximilian.moser@tuwien.ac.at> Date: Wed, 27 Nov 2024 13:42:58 +0100 Subject: [PATCH 1/2] Cast TISS ID into a string for Invenio-DAMAP * the identifier is expected to be a string, but the TISS ID would typically be an integer which caused issues with the integration --- invenio_config_tuw/dmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_config_tuw/dmp.py b/invenio_config_tuw/dmp.py index b52c95e..e02c2a2 100644 --- a/invenio_config_tuw/dmp.py +++ b/invenio_config_tuw/dmp.py @@ -29,6 +29,6 @@ def tuw_id_generator(identity) -> dict[str, str]: tiss_id = u.user_profile.get("tiss_id") if tiss_id: - identifiers["tiss_id"] = tiss_id + identifiers["tiss_id"] = str(tiss_id) return identifiers -- GitLab From 1dfdef77e89e0536b099815877ab7169525abd67 Mon Sep 17 00:00:00 2001 From: Maximilian Moser <maximilian.moser@tuwien.ac.at> Date: Wed, 27 Nov 2024 13:44:30 +0100 Subject: [PATCH 2/2] Bump version to v2024.4.1 --- CHANGES.rst | 3 ++- invenio_config_tuw/__init__.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 445871a..04cd3fe 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -8,11 +8,12 @@ Changes ======= -Version 2024.4 (released 2024-11-26) +Version 2024.4 (released 2024-11-26, updated 2024-11-27) - Pin `Flask-Menu`` dependency - Add `Invenio-DAMAP` to the dependencies - Implement TU Wien user identity generator for connection to DAMAP +- Cast TISS ID into string for the Invenio-DAMAP integration Version 2024.3 (released 2024-10-01, updated 2024-11-13) diff --git a/invenio_config_tuw/__init__.py b/invenio_config_tuw/__init__.py index b8ca5a3..6fd7143 100644 --- a/invenio_config_tuw/__init__.py +++ b/invenio_config_tuw/__init__.py @@ -9,6 +9,6 @@ from .ext import InvenioConfigTUW -__version__ = "2024.4.0" +__version__ = "2024.4.1" __all__ = ("__version__", "InvenioConfigTUW") -- GitLab