Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds category support to the gRPC datasource: new QueryCategory and ResolveSubcategoryFeaturedCategory RPCs and proto messages, GraphQL schema entry, mapping and mock service updates, RPC-call tracing in tests, and defensive checks to avoid nil dereferences during path resolution and JSON flattening. Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@v2/pkg/engine/datasource/grpc_datasource/mapping_test_helper.go`:
- Around line 522-531: The gci formatting error is caused by the map literal
block containing entries like "categories", "category" and "categoriesByKind" in
mapping_test_helper.go; run the project's formatting tools (gci and
gofmt/goimports) on that file to reorder/imports and fix spacing so the
FieldArgumentMap and TargetName entries are properly formatted, then re-run CI
to ensure the gci lint passes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 586c0d72-020b-4107-b6b0-a3f967f03c67
⛔ Files ignored due to path filters (2)
v2/pkg/grpctest/productv1/product.pb.gois excluded by!**/*.pb.gov2/pkg/grpctest/productv1/product_grpc.pb.gois excluded by!**/*.pb.go
📒 Files selected for processing (8)
v2/pkg/engine/datasource/grpc_datasource/compiler.gov2/pkg/engine/datasource/grpc_datasource/grpc_datasource_spy_test.gov2/pkg/engine/datasource/grpc_datasource/json_builder.gov2/pkg/engine/datasource/grpc_datasource/mapping_test_helper.gov2/pkg/grpctest/mapping/mapping.gov2/pkg/grpctest/mockservice_enums.gov2/pkg/grpctest/product.protov2/pkg/grpctest/testdata/products.graphqls
🤖 I have created a release *beep* *boop* --- ## [2.0.0-rc.260](v2.0.0-rc.259...v2.0.0-rc.260) (2026-03-05) ### Bug Fixes * invalid data resolution for null parent types ([#1428](#1428)) ([b7863be](b7863be)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed invalid data resolution when handling null parent types. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
When resolving scalar value data from non list types in the context we can run into a panic. This PR adds additional checks to ensure we don't resolve data from an invalid context.
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Checklist