Skip to content

Commit

Permalink
Merge pull request #235 from ArangoDB-Community/view-link-properties
Browse files Browse the repository at this point in the history
Fixed format_view link properties
  • Loading branch information
tjoubert authored Dec 13, 2022
2 parents 1c7412b + b9857ba commit a6daf27
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arango/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,10 @@ def format_view_link(body: Json) -> Json:
result["track_list_positions"] = body["trackListPositions"]
if "storeValues" in body:
result["store_values"] = body["storeValues"]
if "primaryKeyCache" in body:
result["primaryKeyCache"] = body["primaryKeyCache"]
if "companies" in body:
result["companies"] = body["companies"]

return verify_format(body, result)

Expand Down Expand Up @@ -882,9 +886,7 @@ def format_view(body: Json) -> Json:
if "writebufferSizeMax" in body:
result["writebuffer_max_size"] = body["writebufferSizeMax"]
if "links" in body:
result["links"] = {
name: format_view_link(link) for name, link in body["links"].items()
}
result["links"] = body["links"]
if "indexes" in body:
result["indexes"] = {
name: format_view_index(idx) for name, idx in body["indexes"].items()
Expand Down

0 comments on commit a6daf27

Please sign in to comment.