Skip to content

Commit

Permalink
Update nmdc_runtime/site/ops.py
Browse files Browse the repository at this point in the history
Co-authored-by: eecavanna <[email protected]>
  • Loading branch information
dwinston and eecavanna authored Aug 8, 2024
1 parent 4fb2a97 commit b896883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmdc_runtime/site/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def _add_schema_docs_with_or_without_replacement(
if all(coll_index_on_id_map[coll] for coll in docs.keys()):
replace = True
elif all(not coll_index_on_id_map[coll] for coll in docs.keys()):
# XXX: This is a hack because e.g. <https://w3id.org/nmdc/FunctionalAnnotationAggMember>
# FIXME: XXX: This is a hack because e.g. <https://w3id.org/nmdc/FunctionalAnnotationAggMember>
# documents should be unique with compound key (metagenome_annotation_id, gene_function_id)
# and yet this is not explicit in the schema. One potential solution is to auto-generate an `id`
# as a deterministic hash of the compound key.
Expand Down

0 comments on commit b896883

Please sign in to comment.