zenstack/tests/e2e
ymc9 9cd6c8ec0b refactor(policy): overhaul auth CTE system
- Fix currentModel()/currentOperation() in auth collection predicates by
  removing them from EVALUATOR_BUILTIN_FUNCTIONS (forces SQL path) and
  using context.thisType instead of context.modelOrType in transformCall
- Move auth CTE analysis from constructor-level (all policies) to
  per-operation (only the filter being injected), via on-the-fly AST
  scanning with new AuthCteUsageCollector/collectAuthCteUsageFromQuery
- Replace mutable requiresAuthCte/authCteFieldsNeeded class fields with
  ShallowColumnCollector that stops at SelectQueryNode boundaries
- Merge four identical injectAuthCtes conditions into one compound check
- Treat absent to-many auth relations as empty lists instead of null,
  making every/none predicates vacuously true for unprovided collections;
  removes the ABSENT_SENTINEL/AUTH_ABSENT_COL mechanism entirely

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 19:33:18 -07:00
..
apps/rally refactor(schema): widen types for attributes, default, and foreignKeyFor in generated schema 2026-03-12 19:51:43 -07:00
github-repos refactor(schema): widen types for attributes, default, and foreignKeyFor in generated schema 2026-03-12 19:51:43 -07:00
orm refactor(policy): overhaul auth CTE system 2026-04-16 19:33:18 -07:00
performance test: add basic memory stress test (#620) 2026-01-25 21:01:39 +08:00
package.json [CI] Bump version 3.6.0 (#2571) 2026-04-11 19:18:20 -07:00
tsconfig.json perf(orm): avoid unnecessary pre-mutation read and transactions (#2484) 2026-03-14 12:18:11 -07:00
vitest.config.ts feat: creating zod schemas for zmodel constructs and ORM query input validations (#2389) 2026-02-20 06:31:00 -08:00