fix: allow provides on abstract types - #1552
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 with no reviewable changes (1)
📝 WalkthroughWalkthroughA lookup in Changes
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@v2/pkg/engine/datasource/graphql_datasource/graphql_datasource_federation_provides_test.go`:
- Line 1123: The test schema definition contains a typo in the GraphQL type
declaration, so it won’t parse and the planner path in this test cannot run.
Update the schema string in graphql_datasource_federation_provides_test.go where
the Media type is declared, changing the malformed “inteface Media” entry to the
correct “interface Media” so the test setup is valid and the intended case is
exercised.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7ab1eef0-1911-411d-b96d-471820b57941
📒 Files selected for processing (2)
v2/pkg/engine/datasource/graphql_datasource/graphql_datasource_federation_provides_test.gov2/pkg/engine/plan/datasource_filter_collect_nodes_visitor.go
…e-defined-on-abstract-types
🤖 I have created a release *beep* *boop* --- ## [2.6.0](v2.5.1...v2.6.0) (2026-07-02) ### Features * add SubscriptionOnCreate hook ([#1538](#1538)) ([3f30cb2](3f30cb2)) ### Bug Fixes * allow provides on abstract types ([#1552](#1552)) ([fb2d52a](fb2d52a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: wundergraph-bot[bot] <285992168+wundergraph-bot[bot]@users.noreply.github.com>
The planner currently attempts to retrieve an external field that is defined as provided in the same subgraph via an entity fetch from the other subgraph. This is incorrect behavior. The field should be inlined and instead of having an additional fetch to retrieve the field, it should be inlined.
In this PR the validation logic now properly checks if a field was provided, even when it is part of an inline fragment.
Checklist
Open Source AI Manifesto
This project follows the principles of the Open Source AI Manifesto. Please ensure your contribution aligns with its principles.