Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4074,7 +4074,7 @@ def multiple_components():
# We wait until after the new datasets are linked to their ancestor before performing the remaining post-creation
# linkeages. This way, in the event of unforseen errors, we don't have orphaned nodes.
for dataset in dataset_list:
schema_triggers.set_status_history('status', 'Dataset', user_token, dataset, {})
schema_triggers.set_status_history('status', 'Dataset', request, user_token, dataset, json_data_dict)

properties_to_skip = [
'direct_ancestors',
Expand Down
4 changes: 2 additions & 2 deletions src/schema/schema_neo4j_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def get_dataset_direct_ancestors(neo4j_driver, uuid, property_key = None):
Returns
-------
list : List containing the source metadata (string representation of a Python dict) of each Donor of an
organ Sample associated with the Dataset.
organ Sample associated with the Dataset. Could also be an empty list [] if no match.
"""
def get_dataset_donor_organs_info(neo4j_driver, dataset_uuid):

Expand All @@ -637,7 +637,7 @@ def get_dataset_donor_organs_info(neo4j_driver, dataset_uuid):
record = session.read_transaction(execute_readonly_tx
, ds_donors_organs_query)

return record['donorOrganSet'] if record and record['donorOrganSet'] else None
return record['donorOrganSet'] if record and record['donorOrganSet'] else []


"""
Expand Down