Skip to content

Commit 750203e

Browse files
author
Karl Burke
committed
Add after_update() trigger logic for Collections to handle dataset_uuids
1 parent c1c332a commit 750203e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,12 @@ def update_entity(id):
14021402
# Handle linkages update via `after_update_trigger` methods
14031403
if has_dataset_uuids_to_link or has_dataset_uuids_to_unlink:
14041404
after_update(normalized_entity_type, user_token, merged_updated_dict)
1405+
elif normalized_entity_type == 'Collection':
1406+
# Generate 'before_update_trigger' data and update the entity details in Neo4j
1407+
merged_updated_dict = update_entity_details(request, normalized_entity_type, user_token, json_data_dict, entity_dict)
1408+
1409+
# Handle linkages update via `after_update_trigger` methods
1410+
after_update(normalized_entity_type, user_token, merged_updated_dict)
14051411
else:
14061412
# Generate 'before_update_trigger' data and update the entity details in Neo4j
14071413
merged_updated_dict = update_entity_details(request, normalized_entity_type, user_token, json_data_dict, entity_dict)

0 commit comments

Comments
 (0)