Skip to content

fix(grpc): read and write JSON field values (#505) - #506

Open
mikemcdougall wants to merge 2 commits into
trunkfrom
fix/grpc-json-value
Open

mikemcdougall wants to merge 2 commits into
trunkfrom
fix/grpc-json-value

Conversation

@mikemcdougall

@mikemcdougall mikemcdougall commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Reads and writes JSON field values through the AttributeValue.json_value case from geospatial-grpc 1.7.0. The server side shipped in honua-io/honua-server#10343, which accepts both json_value and the legacy string form.

  • Regenerates the bindings at geospatial-grpc v1.7.0 (c10a9fbe) with the repo's scripts/generate_proto.sh and the same grpcio-tools==1.70.0. They were at v1.0.0.
  • json_value reads as the parsed JSON value. dict and list attributes are written as json_value.

Bundle-exception: main-named — one cross-repo gRPC contract update (JSON field values), one PR per SDK

Tests

  • tests/grpc_sdk/test_json_values.py: the contract fixture's JSON values are read, and objects and arrays are written back as the same json_value text. Both tests failed on trunk source.
  • test_protocol_contract.py now expects the 1.7.0 FeatureService method list. test_apply_edits.py uses a set as the unsupported attribute example, since lists are now JSON values.
  • ruff check ., mypy and the full pytest run pass.

quality-exception: honua_sdk/grpc/_generated/** is protoc output regenerated from Geospatial.Grpc v1.7.0; it is not hand-edited code.

Closes #505

Regenerate the bindings from geospatial-grpc v1.7.0. json_value reads as
the parsed JSON value; dicts and lists are written as json_value.
@mikemcdougall mikemcdougall added the bundle-exception Approved single-issue or small-diff PR exception (trunk-red, security high, blocking red) label Dec 4, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T21:47:43.897472Z 4a02c41 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4a02c41fe4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/generate_proto.sh
SDK_DIR="$(dirname "$SCRIPT_DIR")"
OUT_DIR="$SDK_DIR/packages/honua-sdk/honua_sdk/grpc/_generated"
PROTO_REVISION="0f701ecc6b0c41a5ea43e2dff3c46ce654312576"
PROTO_REVISION="c10a9fbe89c2ee112797fe31e4a68f214d06f1a2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the release declaration to the new gRPC schema version

This advances the generated protocol from geospatial-grpc 1.0.0 to 1.7.0, but release/component-versions.json still declares schemaVersions["geospatial.v1"] as 1.0.0. The nightly release resolver reads that declaration at the published source commit, so packages containing these bindings will advertise the wrong schema version to release coordination. Update the declaration to 1.7.0 alongside the bindings, as required by AGENTS.md.

AGENTS.md reference: AGENTS.md:L42-L44

Useful? React with 👍 / 👎.

This branch was successfully deployed

1 active deployment
staging — 7704464c Deployed Dec 4, 2026 by mikemcdougall via ephemeral-server-smoke #799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bundle-exception Approved single-issue or small-diff PR exception (trunk-red, security high, blocking red)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gRPC: read and write JSON field values (geospatial-grpc 1.7.0 json_value)

1 participant