Skip to content

Fixed format_view link properties #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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