Skip to content
Snippets Groups Projects
Commit c746e377 authored by I. Nüske's avatar I. Nüske
Browse files

MNT: Hide namechange from API

parent 611bd4b1
Branches
Tags
2 merge requests!159Release 0.16.o,!155Review filter lists and compare_entities
Pipeline #57145 passed with warnings
...@@ -179,7 +179,7 @@ def getCommitIn(folder): ...@@ -179,7 +179,7 @@ def getCommitIn(folder):
return get_commit_in(folder) return get_commit_in(folder)
def compare_entities(entity0: Entity, entity1: Entity, def compare_entities(old_entity: Entity, new_entity: Entity,
compare_referenced_records: bool = False, compare_referenced_records: bool = False,
entity_name_id_equivalency: bool = False entity_name_id_equivalency: bool = False
) -> tuple[dict[str, Any], dict[str, Any]]: ) -> tuple[dict[str, Any], dict[str, Any]]:
...@@ -219,9 +219,9 @@ def compare_entities(entity0: Entity, entity1: Entity, ...@@ -219,9 +219,9 @@ def compare_entities(entity0: Entity, entity1: Entity,
Params Params
------ ------
entity0 : Entity old_entity : Entity
First entity to be compared. First entity to be compared.
entity1 : Entity new_entity : Entity
Second entity to be compared. Second entity to be compared.
compare_referenced_records: bool, default: False compare_referenced_records: bool, default: False
If set to True, values with referenced records If set to True, values with referenced records
...@@ -252,6 +252,7 @@ def compare_entities(entity0: Entity, entity1: Entity, ...@@ -252,6 +252,7 @@ def compare_entities(entity0: Entity, entity1: Entity,
# - Make the empty_diff functionality faster by adding a parameter to # - Make the empty_diff functionality faster by adding a parameter to
# this function so that it returns after the first found difference? # this function so that it returns after the first found difference?
# - Add parameter to restrict diff to some characteristics # - Add parameter to restrict diff to some characteristics
entity0, entity1 = old_entity, new_entity
diff = ({"properties": {}, "parents": []}, diff = ({"properties": {}, "parents": []},
{"properties": {}, "parents": []}) {"properties": {}, "parents": []})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment