mirror of
https://github.com/zenstackhq/zenstack
synced 2026-05-24 10:08:55 +00:00
- 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> |
||
|---|---|---|
| .. | ||
| e2e | ||
| regression | ||
| runtimes | ||