Repository navigation
fix(grpc): read and write JSON field values (#505) - #506
mikemcdougall wants to merge 2 commits into
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| SDK_DIR="$(dirname "$SCRIPT_DIR")" | ||
| OUT_DIR="$SDK_DIR/packages/honua-sdk/honua_sdk/grpc/_generated" | ||
| PROTO_REVISION="0f701ecc6b0c41a5ea43e2dff3c46ce654312576" | ||
| PROTO_REVISION="c10a9fbe89c2ee112797fe31e4a68f214d06f1a2" |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
Reads and writes JSON field values through the
AttributeValue.json_valuecase from geospatial-grpc 1.7.0. The server side shipped in honua-io/honua-server#10343, which accepts bothjson_valueand the legacy string form.c10a9fbe) with the repo'sscripts/generate_proto.shand the samegrpcio-tools==1.70.0. They were at v1.0.0.json_valuereads as the parsed JSON value.dictandlistattributes are written asjson_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 samejson_valuetext. Both tests failed on trunk source.test_protocol_contract.pynow expects the 1.7.0 FeatureService method list.test_apply_edits.pyuses asetas 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