Skip to content

Rename UNSATISFIABLE log code to UNSATISFIABLE_QUERY_PATH#9780

Merged
glen-84 merged 3 commits into
mainfrom
gai/rename-unsatisfiable-query-path-code
May 26, 2026
Merged

Rename UNSATISFIABLE log code to UNSATISFIABLE_QUERY_PATH#9780
glen-84 merged 3 commits into
mainfrom
gai/rename-unsatisfiable-query-path-code

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented May 26, 2026

Summary

  • Renames the satisfiability validation log code from UNSATISFIABLE to UNSATISFIABLE_QUERY_PATH to match the code added by the composite schemas spec in graphql/composite-schemas-spec#218.
  • Updates the LogEntryCodes constant, its two call sites in SatisfiabilityValidator, and all references in website/src/docs/fusion/v16/ (composition reference table, diagnostics section heading and anchor, migration guide).
  • Asserts the emitted log code on all 13 failure-asserting tests in SatisfiabilityValidatorTests so future renames of the constant break tests directly.

Test plan

  • dotnet build src/HotChocolate/Fusion
  • dotnet test src/HotChocolate/Fusion/test/Fusion.Composition.Tests --filter SatisfiabilityValidator (48/48 passed across net8.0/net9.0/net10.0)

Copilot AI review requested due to automatic review settings May 26, 2026 14:22
@github-actions github-actions Bot added 📚 documentation This issue is about working on our documentation. 🌶️ hot chocolate labels May 26, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request aligns Fusion’s satisfiability validation diagnostic code with the Composite Schemas spec by renaming the emitted log entry code from UNSATISFIABLE to UNSATISFIABLE_QUERY_PATH, and updates the v16 docs accordingly.

Changes:

  • Renamed the satisfiability log entry code constant to UNSATISFIABLE_QUERY_PATH (LogEntryCodes.UnsatisfiableQueryPath).
  • Updated SatisfiabilityValidator to emit the new code at both error sites.
  • Updated Fusion v16 documentation (composition reference + migration guide) to use the new code and anchors.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
website/src/docs/fusion/v16/migration/migrate-from-15-to-16.md Updates migration guide references/examples to the new satisfiability diagnostic code.
website/src/docs/fusion/v16/composition.md Updates composition phase description, diagnostic reference table row, and diagnosing section heading/anchor to the new code.
src/HotChocolate/Fusion/src/Fusion.Composition/SatisfiabilityValidator.cs Switches emitted log entry code for satisfiability failures to UnsatisfiableQueryPath.
src/HotChocolate/Fusion/src/Fusion.Composition/Logging/LogEntryCodes.cs Renames the log code constant from Unsatisfiable to UnsatisfiableQueryPath with the new string value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@glen-84 glen-84 merged commit 970c285 into main May 26, 2026
411 of 415 checks passed
@glen-84 glen-84 deleted the gai/rename-unsatisfiable-query-path-code branch May 26, 2026 14:58
@glen-84 glen-84 restored the gai/rename-unsatisfiable-query-path-code branch May 27, 2026 15:37
@glen-84 glen-84 deleted the gai/rename-unsatisfiable-query-path-code branch May 27, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 documentation This issue is about working on our documentation. 🌶️ hot chocolate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants