Skip to content

Fill only external fields from entity representations - #10819

Merged
tobias-tengler merged 2 commits into
mainfrom
tte/entities-external-only
Nov 9, 2026
Merged

tobias-tengler merged 2 commits into
mainfrom
tte/entities-external-only

Conversation

@tobias-tengler

Copy link
Copy Markdown
Member

No description provided.

Copilot AI balanced review requested due to automatic review settings November 9, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The review found an issue that should be addressed before approval.

1 open issue
What changed in this PR

Restricts Apollo Federation’s entity representation filler to external fields, aiming to preserve values owned and resolved by the current subgraph.

Changes:

  • Adds field-level and type-level external checks when generating entity fillers.
  • Adds regression tests for owned-field preservation and nested external-field updates.
  • Updates existing test fixtures to explicitly mark external properties.
File Description
src/​HotChocolate/​ApolloFederation/​test/​ApolloFederation.Tests/​RepresentationFillerTests.cs Updated as part of this pull request.
src/​HotChocolate/​ApolloFederation/​test/​ApolloFederation.Tests/​EntitiesResolverForObjectTests.cs Updated as part of this pull request.
src/​HotChocolate/​ApolloFederation/​src/​ApolloFederation/​Resolvers/​ExternalSetterExpressionHelper.cs Updated as part of this pull request.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Patch coverage

100.0% of changed lines covered (7/7)

File Covered Changed Patch %
…/ApolloFederation/Resolvers/ExternalSetterExpressionHelper.cs 7 7 100.0% 🟢

Project coverage: 59.4% (321340/540594 lines)

@tobias-tengler
tobias-tengler force-pushed the tte/entities-external-only branch from 91c5b06 to b7c7207 Compare November 9, 2026 13:16
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tobias-tengler
tobias-tengler merged commit 5bb6d2a into main Nov 9, 2026
159 checks passed
@tobias-tengler
tobias-tengler deleted the tte/entities-external-only branch November 9, 2026 13:37
This was referenced Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants