Skip to content

merge: shared model migration and test modernization#11

Merged
peterjohncasasola merged 9 commits into
mainfrom
feature/regression-test
Jul 16, 2026
Merged

merge: shared model migration and test modernization#11
peterjohncasasola merged 9 commits into
mainfrom
feature/regression-test

Conversation

@peterjohncasasola

Copy link
Copy Markdown
Owner

No description provided.

- 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
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flexquery Ready Ready Preview, Comment Jul 16, 2026 9:04am

@peterjohncasasola
peterjohncasasola merged commit 55f0d49 into main Jul 16, 2026
4 checks passed
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