Skip to content

Commit a6daf27

Browse files
authored
Merge pull request #235 from ArangoDB-Community/view-link-properties
Fixed format_view link properties
2 parents 1c7412b + b9857ba commit a6daf27

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

arango/formatter.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,10 @@ def format_view_link(body: Json) -> Json:
794794
result["track_list_positions"] = body["trackListPositions"]
795795
if "storeValues" in body:
796796
result["store_values"] = body["storeValues"]
797+
if "primaryKeyCache" in body:
798+
result["primaryKeyCache"] = body["primaryKeyCache"]
799+
if "companies" in body:
800+
result["companies"] = body["companies"]
797801

798802
return verify_format(body, result)
799803

@@ -882,9 +886,7 @@ def format_view(body: Json) -> Json:
882886
if "writebufferSizeMax" in body:
883887
result["writebuffer_max_size"] = body["writebufferSizeMax"]
884888
if "links" in body:
885-
result["links"] = {
886-
name: format_view_link(link) for name, link in body["links"].items()
887-
}
889+
result["links"] = body["links"]
888890
if "indexes" in body:
889891
result["indexes"] = {
890892
name: format_view_index(idx) for name, idx in body["indexes"].items()

0 commit comments

Comments
 (0)