Skip to content

ValueDataSource: refuse a nested-relation condition in the filter AST arm instead of matching no rows silently #35447

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

From the contract review of PR #35423 (comment 7005257036, S1 should-fix; does not hold that PR).

Defect

#35423 lets convertFiltersToAST (@object-ui/core) lower the nested-relation form { rel: { field: value } } to ['rel', '=', { field: value }]. A server data source serves it. The in-memory ValueDataSource (ui/packages/core/src/adapters/ValueDataSource.ts) does not:

  • its object arm refuses a nested relation by name ("the in-memory matcher does not descend into a nested relation constraint");
  • its AST arm (matchesComparisonNode) compares the plain-object comparand by reference on =, so no row matches and nothing is logged.

Before #35423, toFilterNode threw on the same filter, so a value-provider surface composing a view filter through toFilterNode / toFilterNodeSafely (ListView, ObjectGrid, ObjectChart and other composers) was told. Now the same filter silently yields an empty list: the "fails as an empty list" outcome the converter's README says lowering-time refusal exists to prevent. The row set is unchanged (empty either way); the diagnosis is lost.

Done when

matchesComparisonNode gives a no-$ plain-object comparand the object arm's refusal (same wording), with a pin: the AST form and the object form of the same nested condition are refused alike on a value source, and a CONTROL showing a plain scalar = still matches.

Grade

p2 · area:data · domain:ui. Silent empty result on value-provider views using a nested-relation filter; no wrong rows shown.


Generated by Claude Code

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Folded · area data-2 · 2026-11-19T09:35Z
    Seat 5 picked fixing this in PR #35423 itself (the PR whose widening exposes it) rather than a second PR. Claim amendment on #34990 widens that PR's surface to ValueDataSource.ts; the PR body will carry Fixes #35447, so this card closes on its merge. Not for separate dispatch.

    Blocked-by: #35423

  3. added
    pm:blocked
    and removed
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:blocked; rationale: area:data · Bug · Impeded (the in-memory source matches no rows for a nested-relation condition instead of refusing it) · developers and previews → p2 as set.

  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Claim: PM loop round 9 · area data-2 (fold: seat 5 pick 2026-11-19T09:34Z "fix it in this PR", contract review 7005257036 S1 on PR #35423) · 2026-11-19T10:12Z
    Area: data-2
    Session: session_01Utp6CajiB6BSQKWowy6YLB
    Account: os-bill
    Branch: claude/issue-34990-nested-relation-filter-node
    Worktree: objectstack-issue-34990-r2 (removed after push)
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/core/src/adapters/ValueDataSource.ts (matchesComparisonNode refuses a nested-relation comparand), its pin in ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts, ui/packages/data-objectstack/README.md lowering-table row, the existing .changeset/34990-nested-relation-filter-node.md. Folded into PR #35423 (already pushed at def1213f); the PR body carries Fixes #35447.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: medium
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: @object-ui/core in objectstack: after #34990's widening, a nested-relation filter on an in-memory value source matches no row silently (=) or every row (!=) instead of being refused; no platform path covers it; every value-provider view composing such a filter
    Thread-read: 7005299603
    Premise: holds — reproduced by the fold's ablation (refusal removed → = warn 0 times, != returns every row)
    Serial constraints cleared: the only open PR touching these files is #35423 itself (overlap-check VERDICT clean at def1213f)
    Pre-claim lane: domain:ui (ui/packages/core/**), area data-2
    Pre-claim deps: #34990 / PR #35423 (this card rides it by the seat's pick)
    Prior rulings read: nested relation, ValueDataSource, filter lowering → seat ruling 6961225798 (#34907, the grammar node is the exit of the bounded exception); seat pick A on #34990 (7004740847); contract review 7005257036 S1; none conflicts

  6. added
    pm:dispatched
    and removed
    pm:blocked
    on Nov 19, 2026
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

    Closed-out · area data-2 · 2026-11-19T14:58Z

    Folded into PR #35423 (merged as eed422ea; the body named this card Part of #35447 so the land gate read one card, #34990). Delivered: ValueDataSource's AST matcher refuses a plain-object comparand with no $ key, under every operator that reads the comparand, with the object arm's sentence through one builder (nestedRelationRefusalReason). Pins in ValueDataSource.astFilterVocabulary.test.ts; README lowering-table row in data-objectstack. Contract reviews 7008152912 / 7012075575 PASS.
    State: pm:dispatched removed; closed completed.

  8. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:datadomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions