Skip to content

Commit

Permalink
now DCR owners are the logged in users who crete them instead of the …
Browse files Browse the repository at this point in the history
…general admin
  • Loading branch information
vemonet committed Jul 16, 2024
1 parent 67b35ae commit 9b7f576
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions backend/src/decentriq.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def create_provision_dcr(user: Any, cohort: Cohort) -> dict[str, Any]:
builder = (
AnalyticsDcrBuilder(client=client)
.with_name(dcr_title)
# .with_owner(user["email"])
.with_owner(settings.decentriq_email)
.with_owner(user["email"])
# .with_owner(settings.decentriq_email)
.with_description(f"A data clean room to provision the data for the {cohort.cohort_id} cohort")
)

Expand All @@ -66,10 +66,10 @@ def create_provision_dcr(user: Any, cohort: Cohort) -> dict[str, Any]:
user["email"],
data_owner_of=[data_node_id],
)
builder.add_participant(
settings.decentriq_email,
data_owner_of=[data_node_id],
)
# builder.add_participant(
# settings.decentriq_email,
# data_owner_of=[data_node_id],
# )
# Build and publish DCR
dcr_definition = builder.build()
dcr = client.publish_analytics_dcr(dcr_definition)
Expand Down Expand Up @@ -153,7 +153,8 @@ async def create_compute_dcr(
builder = (
AnalyticsDcrBuilder(client=client)
.with_name(dcr_title)
.with_owner(settings.decentriq_email)
# .with_owner(settings.decentriq_email)
.with_owner(user["email"])
.with_description("A data clean room to run analyses on cohorts for the iCARE4CVD project")
)

Expand Down

0 comments on commit 9b7f576

Please sign in to comment.