Skip to content
Snippets Groups Projects

F fix merge entity conflicts

Merged Florian Spreckelsen requested to merge f-fix-merge-entity-conflicts into dev
1 file
+ 15
0
Compare changes
  • Side-by-side
  • Inline
+ 15
0
@@ -9,8 +9,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ###
* `apiutils.empty_diff` function that returns `True` if the diffs of two
entities found with the `compare_entitis` function are empty, `False`
otherwise.
### Changed ###
* `apiutils.compare_entities` now has an optional `compare_referenced_records`
argument to compare referenced Entities recursively (fomerly, only the
referenced Python objects would be compared). The default is `False` to
recover the original behavior.
* `apiutils.merge_entities` now has an optional
`merge_references_with_empty_diffs` argument that determines whether a merge
of two entities will be performed if they reference identical records (w.r.t
th above `empty_diff` function). Formerly this would have caused a merge
conflict if the referenced record(s) were identical, but stored in different
Python objects.
### Deprecated ###
### Removed ###
Loading