fix(query): modernize CalculationFilterGroup and adjust IsValid behavior
SonarQube Analysis / sonarqube (pull_request) Successful in 3m9s

Refactors the `CalculationFilterGroup` class to utilize C# primary constructors and property initializers, improving conciseness and readability.

The `IsValid()` method's logic is updated. Previously, it returned true if *any* filter in the group was valid. Now, it returns true only if *all* filters are valid, and an empty filter group is considered valid. This adjustment clarifies the group's validity criteria, aligning with common interpretations for `All` operations and addressing related technical debt.
This commit is contained in:
Thom Lamb
2026-05-20 15:31:41 -05:00
parent 24a9b36e36
commit 82af7b8de1
2 changed files with 9 additions and 15 deletions
+3 -1
View File
@@ -23,7 +23,9 @@
"Bash(Get-ChildItem src/Strata.SqlTools.SqlServer/ExpressionFactory/Query/*.cs)",
"Bash(Measure-Object)",
"Bash(Select-Object -ExpandProperty Count)",
"PowerShell(dotnet build *)"
"PowerShell(dotnet build *)",
"Bash(Get-ChildItem src/Strata.SqlTools.Query/*.cs)",
"Bash(Select-String -Pattern '^namespace ')"
]
}
}