Skip to content
Snippets Groups Projects

F copy entity

Merged Alexander Schlemmer requested to merge f-copy-entity into dev
1 unresolved thread
2 files
+ 14
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
0
@@ -39,6 +39,8 @@ from caosdb.common.models import (Container, Entity, File, Property, Query,
Record, RecordType, execute_query,
get_config, SPECIAL_ATTRIBUTES)
import logging
def new_record(record_type, name=None, description=None,
tempid=None, insert=False, **kwargs):
@@ -689,8 +691,13 @@ def merge_entities(entity_a: Entity, entity_b: Entity):
The merge operation is done in place.
Returns entity_a.
WARNING: This function is currently experimental and insufficiently tested. Use with care.
"""
logging.warning(
"This function is currently experimental and insufficiently tested. Use with care.")
# Compare both entities:
diff_r1, diff_r2 = compare_entities(entity_a, entity_b)
Loading