Skip to content

fix: move to HotChocolate 16.7, drop the retired cost VariableMultiplier - #25

Merged
AutumnTrace merged 1 commit into
mainfrom
fix/hotchocolate-16-7
Nov 26, 2026
Merged

AutumnTrace merged 1 commit into
mainfrom
fix/hotchocolate-16-7

Conversation

@AutumnTrace

Copy link
Copy Markdown
Owner

Supersedes #22, which fails to build:

Program.cs(39,9): error CS0619: 'FilterCostOptions.VariableMultiplier' is obsolete: 'The variable multiplier is retired. The cost analyzer evaluates coerced variable values directly …'
  • HotChocolate.AspNetCore, .Authorization, .Data.EntityFramework and .Types.Analyzers: 16.6.9 → 16.7.6.
  • Removed o.Filtering.VariableMultiplier = 1 and o.Sorting.VariableMultiplier = 1. They were only there to undo the old worst-case ×5 pricing of variables. 16.7 prices variables by their coerced values, which is what we wanted. The comment now says why the setting is gone.
  • MaxFieldCost = 2_000 is unchanged.

Verified locally: dotnet build -c Release with no warnings, and dotnet test 59/59 on SQLite, including CostAnalysisTests: the filtered job board and candidate search queries with variables are accepted, and the fan-out query is still rejected with HC0047. CI runs the PostgreSQL leg.

HotChocolate 16.7 prices filter and sort variables by their coerced
values and marks FilterCostOptions/SortCostOptions.VariableMultiplier
obsolete as an error, so the 16.7 bump failed to build. The multiplier
was only set to undo the old worst-case pricing; CostAnalysisTests keep
checking that real web-app queries fit the budget and fan-out queries
are still rejected.
@AutumnTrace
AutumnTrace merged commit 2ac3e05 into main Nov 26, 2026
3 checks passed
@AutumnTrace
AutumnTrace deleted the fix/hotchocolate-16-7 branch November 26, 2026 17:24
@AutumnTrace AutumnTrace mentioned this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant