merge: shared model migration and test modernization#11
Merged
Conversation
- Add HashSet<Type> cycle detection in DefaultProjectionRule to prevent StackOverflowException from circular navigation properties (Customer.Address ↔ Address.Customer, Customer.Orders ↔ Order.Customer) - Update FlexQueryModel metadata to use shared Customer/Order/Address models with correct table names, schema, and property mappings
Delete legacy test fixtures (SqlCustomer, SqlOrder, TestDbContext, etc.) that were replaced by the shared model infrastructure. Remove old FlexQueryCoreTests that referenced the previous FlexQueryCoreConfiguration naming.
- Add UsersController for Dapper integration API tests - Add FlexQueryCoreTests for DI registration verification - Add GroupedQueryDapperTests for grouped query Dapper execution
- Update GroupByTests expected values for shared model data changes (sort order, aggregate sums, having thresholds, key ordering) - Update ReflectionCacheTests to expect 9 Address properties instead of 3 - Update ExpressionBuilderTests invalid enum handling expectation - Update FilterTests, SortBuilderTests, AggregateBuilderTests expected values - Update CacheIsolationTests, CacheKeyCorrectnessTests, QueryCacheKeyBuilderTests - Update TypeHelperTests, ExpressionMethodCacheTests for shared model
- Update DialectTests expected SQL to include all 14 Customer columns with correct table aliases ([c]., [Customers]) and dialect-specific quoting - Update SqlTranslatorTests expected SQL for alias-qualified columns (LOWER([Name]), [Users], [Roles]) - Update SqlHavingBuilderTests expected SQL for alias-qualified columns ([e].[Score], [e].[Status]) - Update SqlJoinBuilderTests to set table alias before asserting join SQL - Update SqlSelectBuilderTests, SqlKeysetBuilderTests, SqlCountBuilderTests for alias-qualified column references
- Update UsersTests expected names (Alice Johnson, Bob Smith, Jack Anderson) and sort expectations for updated sample data - Update IncludeTests expected customer names (Alice Johnson) - Update RelationshipTests expected result counts and names for new data (any/all/count filters with updated order totals) - Update SecurityValidationTests to use nonExistentField instead of SecretField (which exists in shared model) - Update SecurityGovernanceDapperIntegrationTests and SqlInjectionTests - Update DapperQueryOptionsTests, FlexQueryDapperConfigurationTests, FlexQueryNonDiSmokeTests for shared model
- Update FilteredIncludeTests expected names (Alice Johnson), order totals (150.0), and sample data alignment - Update DtoMappingTests to use reflection instead of JSON serialization for dynamic type verification - Update GrandTotalAggregationTests expected aggregates (sum=675.0, min=25.0, max=300.0, avg=168.75) for updated sample data - Update SortingNestedSqliteTests expected sort order and email values - Update SecurityGovernanceEfCoreIntegrationTests to ignore unmapped Address/Addresses navigation properties - Update FieldSecurityTests, IncludeSecurityTests, SecurityTests - Update ValidationTests, DefaultProjectionRuleTests, GovernanceConfigValidationRuleTests, HavingAliasIntegrityRuleTests, IncludeAccessValidationRuleTests, ValidationEdgeCaseTests, FieldAccessValidationRuleTests for shared model
- Update Adapters/AgGridQueryableExtensionsTests for shared model - Update Diagnostics/ConsoleExecutionListenerTests, DebugTests - Update GlobalUsings.cs for shared model namespaces - Update Parsers/FqlQueryParserTests, MiniOData parser tests - Update Projection/ProjectionMetadataBuilderTests
- Switch DialectTests from isolated MappingRegistry to SharedFlexQueryModel.Instance.Registry for consistency - Remove legacy pagination test methods that were specific to isolated registry
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.