We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b215aee commit 9b5aac8Copy full SHA for 9b5aac8
ravendb/json/json_operation.py
@@ -48,12 +48,15 @@ def compare_json(
48
old_json_props = set(original_json.keys())
49
new_json_props = set(new_json.keys())
50
51
+ # todo: Discuss about that condition - add/del Id causes changes
52
+ if "Id" in old_json_props:
53
+ old_json_props.remove("Id")
54
+ if "Id" in new_json_props:
55
+ new_json_props.remove("Id")
56
+
57
new_fields = new_json_props - old_json_props
58
removed_fields = old_json_props - new_json_props
59
- # todo: Discuss about that condition - add/del Id causes changes
- removed_fields.discard("Id")
-
60
for field in removed_fields:
61
if changes is None:
62
return True
0 commit comments