Repository navigation
fix: move to HotChocolate 16.7, drop the retired cost VariableMultiplier - #25
Merged
Merged
Conversation
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.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #22, which fails to build:
o.Filtering.VariableMultiplier = 1ando.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_000is unchanged.Verified locally:
dotnet build -c Releasewith no warnings, anddotnet test59/59 on SQLite, includingCostAnalysisTests: 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.