diff --git a/hypha/VERSION b/hypha/VERSION index 637e2687..649330fb 100644 --- a/hypha/VERSION +++ b/hypha/VERSION @@ -1,3 +1,3 @@ { - "version": "0.20.39.post14" + "version": "0.20.39.post15" } diff --git a/hypha/core/workspace.py b/hypha/core/workspace.py index c32b7aab..3e66dfcb 100644 --- a/hypha/core/workspace.py +++ b/hypha/core/workspace.py @@ -1865,7 +1865,7 @@ async def cleanup( logger.error(f"Failed to ping client {client}: {e}") # Remove dead client await self.delete_client( - client, ws, context["user"], unload=False, context=context + client, workspace, context["user"], unload=False, context=context ) removed.append(client) if removed: diff --git a/tests/test_artifact.py b/tests/test_artifact.py index 6f44bcb8..b8767214 100644 --- a/tests/test_artifact.py +++ b/tests/test_artifact.py @@ -696,12 +696,18 @@ async def test_publish_artifact(minio_server, fastapi_server, test_user_token): dataset = await artifact_manager.create( type="dataset", + alias="{zenodo_conceptrecid}", parent_id=collection.id, manifest=dataset_manifest, version="stage", publish_to="sandbox_zenodo", ) + assert ( + dataset.alias != "{zenodo_conceptrecid}" + and str(int(dataset.alias)) == dataset.alias + ) + # Add a file to the artifact put_url = await artifact_manager.put_file( artifact_id=dataset.id,