Skip to content

Value data source: under $or a refused comparand or flag is judged per row, so the sibling branch still serves rows for a filter the converter and the server refuse whole #35834

Duplicate

Description

@objectstack-fleet

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Filing gate ①, Source: fleet. Should-fix S5 of the CONTRACT_REVIEW_TIER review of PR #35832 (#35735 fold group), record 7037477278, where it is named as a standing design that predates that PR and is routed to a card. Dedupe: value data source $or refusal per row and loweringConditionRefusal walk find no card.

What happens (read at PR #35832 head 0c86f9c32)

ValueDataSource (ui/packages/core/src/adapters/ValueDataSource.ts) refuses a bad comparand or flag per node and per row (refuseFilterNode inside the matcher). Under $or, a row that satisfies another branch never reaches the refused node. So { $or: [{ id: 'a' }, { nickname: { $null: 'no' } }] } answers row a, and logs only if some row fails the first branch. convertFiltersToAST throws for the same object, and the server answers 400. With the { $now, addDays } anchor, it answers a subset of what the server serves. loweringConditionRefusal already describes this hazard and closes it up front, but only for a zero-key or non-plain condition. $empty has the same shape.

reach: published @object-ui/core ValueDataSource#find (value-provider views, previews). A filter the platform refuses whole serves some rows. Read from code, not run.

Done when

Every per-node refusal the value source makes (the flag doors, objectComparandRefusal, $empty) is judged up front over the whole filter, as the zero-key condition is. A refused node anywhere refuses the whole filter, with no rows served. Pin it under $or and under nested $and/$or, with a CONTROL showing a valid $or unchanged. Narrowing: Clause-②: no (narrowing), BREAKING, ! title, dogfood battery.

Business rationale

In a preview, a filter with one bad branch should say it is wrong, not quietly show the other branch's rows while the same filter fails on the server. Reader: the area:data lane seat (d7-C), after PR #35832 lands (same file).

Grade: p3 · area:data · Bug · previews with $or filters, rarely · evidence read.

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (@object-ui/core ValueDataSource) · pm:queue; rationale: area:data · Bug · under $or a refused comparand or flag is judged per row, so a sibling branch still serves rows for a filter that convertFiltersToAST and the server refuse whole; reach: value-provider views and previews; read from code, not run → p3 as filed · size M (every per-node refusal moves up front). Same file as #35836 (a different mechanism); one claimant may take both.

  2. added
    bug
    domain:ui
    pm:queue
    on Nov 20, 2026
  3. objectstack-fleet commented on Dec 5, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Folded 2026-12-05T01:36Z into this week's area:data sweep card #39764, as row "#35834 — Value data source: under $or a refused comparand or flag is judged per row, so the sibling branch still serves", on the maintainer's word in the triage report: 「同意,14 个专题都开,内部卡并清扫卡」. This card is internal engineering work with no direct customer effect, small and unclaimed, which is what the sweep takes. Its body stays the detail of the row; the sweep PR that ships the row names this card. Reopen it if it turns out larger than one file or one mechanism.

  4. removed
    pm:queue
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:databugdomain:uipriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions