Skip to content

Commit

Permalink
fix participants
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 8, 2024
1 parent bab04c6 commit 7498f78
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions backend/src/decentriq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7498f78

Please sign in to comment.