Conversation
No code in QueryKit calls FromSymbol, and the parser does not use it to read arithmetic. The method is dead public API. v1.x marks it obsolete, and this change removes it. BREAKING CHANGE: ArithmeticOperator.FromSymbol is removed. Code that calls it does not compile, and a library built against v1.14.2 fails with MissingMethodException. Use ArithmeticOperator.Add, Subtract, Multiply, Divide, or Modulo.
pdevito3
force-pushed
the
fm/qk-breaking-from-symbol
branch
from
October 1, 2026 21:26
6ae19e3 to
063d645
Compare
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.
For later consideration in a major version. Do not merge now. #122 added
FromSymbolback as[Obsolete]to keep v1.x non-breaking. Then #134 removed theObsoletemark. This PR removes the method.Summary
public abstract class ArithmeticOperator { public static ArithmeticOperator Add => new AddOperator(); ... public static ArithmeticOperator Modulo => new ModuloOperator(); - - public static ArithmeticOperator? FromSymbol(string symbol) => symbol switch { ... }; }ArithmeticOperator.FromSymbol(string)returns the operator for+,-,*,/, or%.FromSymbol, and the parser does not use it to read arithmetic. The method is dead public API. This major version removes it.Evidence
AddOperator. On main it also compiles, with no warning.error CS0117: 'ArithmeticOperator' does not contain a definition for 'FromSymbol'.System.MissingMethodException: Method not found: 'QueryKit.Operators.ArithmeticOperator QueryKit.Operators.ArithmeticOperator.FromSymbol(System.String)'.ArithmeticOperatorTests.csreplaces the restore tests with one test:dotnet teston the branch after the rebase on main: 465 unit tests and 297 integration tests pass, 0 failures.Alternative to PR 148
This PR and #148 are alternatives. Merge only one of them. This PR removes
FromSymbol. PR 148 keepsFromSymboland marks it[Obsolete]. The captain picks one.Merge Danger
Door: two-way
A later release can add the method back with the same signature.
Blast Radius: consumers
Only consumer code that calls
FromSymbolbreaks. Callers can useAdd,Subtract,Multiply,Divide, orModulodirectly. Filter parsing does not change.