From 7498f7897eddc30438c9cd749d31339d1d9d7599 Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Mon, 8 Apr 2024 14:06:40 +0200 Subject: [PATCH] fix participants --- backend/src/decentriq.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/src/decentriq.py b/backend/src/decentriq.py index 0f8bdff..cd33c2c 100644 --- a/backend/src/decentriq.py +++ b/backend/src/decentriq.py @@ -196,14 +196,17 @@ async def create_compute_dcr( )) preview_nodes.append(preview_node_id) + builder.add_participant(cohort.cohort_email, data_owner_of=[data_node_id]) + # Add python data preparation script - builder.add_node_definition( - PythonComputeNodeDefinition(name="prepare-data", script=pandas_script, dependencies=data_nodes) - ) + # builder.add_node_definition( + # PythonComputeNodeDefinition(name="prepare-data", script=pandas_script, dependencies=data_nodes) + # ) + # builder.add_participant(user["email"], analyst_of=["prepare-data", *preview_nodes]) # Add users permissions - builder.add_participant(user["email"], data_owner_of=data_nodes, analyst_of=["prepare-data", *preview_nodes]) - builder.add_participant(settings.decentriq_email, data_owner_of=data_nodes, analyst_of=["prepare-data", *preview_nodes]) + builder.add_participant(user["email"], analyst_of=preview_nodes) + builder.add_participant(settings.decentriq_email, data_owner_of=data_nodes) # Build and publish DCR dcr_definition = builder.build()