Has-all chip filtering (AND within a field)
Implemented per the plan (has-all-plan.org), no deviations:
- predicates.lisp: inert
operator-sql:has-allentry (never emitted as SQL text — accepted sooperator-key-pand the REST operator parser take it);filter-value-type-p(:in :not-in :has-all)member list (same non-empty-cons value contract). - backend.lisp:
valid-filtergates:has-allon:join-table(report-ve);has-all-conditions+has-all-exists-fragmentbuild one correlatedEXISTSper value through the field's joiner (FKs resolved from compiled:targetfields, display column from:source :column-name);add-where-clausearm emits the parenthesized EXISTS group, values bound element-wise like:in.measure-request-grain-filters:has-allarm added for completeness (rollups still reject non-grain filters). - Frontend
App.tsx: chip rows now send[type, fieldKey, "has-all", values]; thefield.tablewire mapping and the hardcoded"name"column are gone (the not-ilike Phase-2 rows read list-form meta locally now). Built withnpm run build. :users :rolescarries:join-table :role-users(live probe, Step 0.2 open branch resolved) — users Roles chips sendhas-alllike every other chip-eligible field; nofe-fieldsmeta-flag contingency was needed.- docs/rest.md operator list updated.
- Tests: predicate
filter-p/operator-key-p:has-allcases; backendvalid-filteraccept (todos:tags) / reject (non-M2M, empty list); m2m suitem2m-has-all-intersection/m2m-has-all-with-sort-and-second-field(intersection semantics, empty intersection, single-value-equals-:in, sort compose, second joiner, two fields AND). (run-tests): 1788/1788 checks pass across 31 groups. Live REST smoke on restarteddataui@books/@todos/@modelbankunits: co-author pair narrows to 1, roleshas-all, sort + search + chip compose,:inuntouched, non-M2M field 400s.
Files: lisp/predicates.lisp, lisp/backend.lisp,
tests/predicate-tests.lisp, tests/backend-tests.lisp,
tests/m2m-tests.lisp, docs/rest.md, web/src/App.tsx.
- Slot
- 28000
- Status
- 60 Done
- Tags
- mvp, backend, frontend
- Contributors
- Donnie