Skip to content

Fix XML documentation descriptions missing for constructed generic types - #10806

Merged
tobias-tengler merged 3 commits into
mainfrom
tte/fix-xml-docs-constructed-generics
Nov 5, 2026
Merged

tobias-tengler merged 3 commits into
mainfrom
tte/fix-xml-docs-constructed-generics

Conversation

@tobias-tengler

@tobias-tengler tobias-tengler commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Fixes #10803

@tobias-tengler
tobias-tengler marked this pull request as ready for review November 5, 2026 16:11
Copilot AI balanced review requested due to automatic review settings November 5, 2026 16:11

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 tests do not exercise the new constructed-generic-method normalization branch; add MakeGenericMethod cases while retaining the existing definition cases to cover documentation lookup for constructed generic methods.

1 open issue
What changed in this PR

Fixes runtime XML documentation lookup for constructed generic types in Hot Chocolate, addressing #10803 so descriptions appear in generated GraphQL schemas.

Changes:

  • Resolves constructed types and members to their generic definitions and formats generic method parameter signatures.
  • Adds documentation fixtures and regression tests for provider lookups and schema descriptions.
  • Updates PostgreSQL and Apollo Federation snapshots with restored descriptions.
File Description
src/​HotChocolate/​Data/​test/​Data.PostgreSQL.Tests/​__snapshots__/​IntegrationTests.CreateSchema.graphql Records restored connection and edge descriptions.
src/​HotChocolate/​Core/​test/​Types.Tests/​Types/​ObjectTypeTests.cs Verifies constructed generic descriptions in a schema.
src/​HotChocolate/​Core/​test/​Types.Tests/​Types/​Descriptors/​Conventions/​XmlDocumentationProviderTests.cs Tests generic type, member, and parameter documentation lookup.
src/​HotChocolate/​Core/​test/​Types.Tests.Documentation/​Envelope.cs Adds documented generic fixtures.
src/​HotChocolate/​Core/​src/​Types/​Types/​Descriptors/​Conventions/​XmlDocumentationProvider.cs Normalizes generic members and builds XML documentation identifiers.
src/​HotChocolate/​ApolloFederation/​test/​ApolloFederation.ImplementationFirst/​__snapshots__/​PageConnectionFederationTests.PageConnection_Field_With_Explicit_Shareable_PageCursor_Builds_Schema.graphql Records the restored edge description with explicit cursor sharing.
src/​HotChocolate/​ApolloFederation/​test/​ApolloFederation.ImplementationFirst/​__snapshots__/​PageConnectionFederationTests.PageConnection_Field_With_ApolloFederation_Builds_Schema.graphql Records the restored federated edge description.
src/​HotChocolate/​ApolloFederation/​test/​ApolloFederation.ImplementationFirst/​__snapshots__/​PageConnectionCompositeSchemaTests.PageConnection_Field_With_CompositeSourceSchema_Builds_Schema.graphql Records the restored composite-schema edge description.

Review effort: Balanced

@tobias-tengler
tobias-tengler merged commit 4ba1f0f into main Nov 5, 2026
160 checks passed
@tobias-tengler
tobias-tengler deleted the tte/fix-xml-docs-constructed-generics branch November 5, 2026 16:18
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Patch coverage

80.0% of changed lines covered (80/100)

File Covered Changed Patch %
…/Types/Descriptors/Conventions/XmlDocumentationProvider.cs 80 100 80.0% 🟡
Uncovered changed lines (JSON)
{
  "sha": "64556633dbf48d343d7060c2510429b818487993",
  "files": [
    { "path": "src/HotChocolate/Core/src/Types/Types/Descriptors/Conventions/XmlDocumentationProvider.cs", "ranges": [[567, 574], [576, 577], [579, 580], [586, 589], [613, 616]] }
  ]
}

Project coverage: 59.4% (321353/540615 lines)

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.

Runtime XML descriptions are missing for constructed generic types and their members

2 participants