Skip to content

studio: the view / page-block FilterBuilderField builds fields without multiple, so a multi-value field offers = / $in #36169

Closed

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

Filing gate ① · Source: fleet · same family as #35992 (found by area a4-D's dev, os-dev report 7066498044), outside that card's surface.

What happens

Studio's view and page-block filter editor (FilterBuilderField, ui/packages/app-shell/src/views/metadata-admin/widgets.tsx) builds its field list without each field's multiple, so on a multiple: true field it offers and saves = / $in, which the data door refuses (400 INVALID_FILTER, #35559) and the dataset door answers wrongly. PR #36165 passes multiple to the shared builder for the other editors; this one is not covered.

Done when

FilterBuilderField passes the field's multiple to the shared builder like the editors #36165 fixed, so a multi-value field offers the JSON-column operators; a pin on a multiple: true field with a scalar control.

reach: Studio form (a saved view / page-block filter), by code reading against the shared builder's contract fixed in #36165; to be measured once by the claimant.
Business reason: list views and page blocks authored in Studio on a multi-value field fail or show wrong rows.
Reader: a domain:ui lane (Studio metadata-admin widgets).
Dedupe: FilterBuilderField multiple → 0 hits.
Grade: p2 — same class as #35992's condition editors.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    area:studio
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (Studio FilterBuilderField) · pm:queue; rationale: area:studio · Bug · the view and page-block filter editor builds fields without multiple, so a multi-value field offers = / $in, which the server then refuses for every reader of that view; family of #35992 → p1 (non-topic standard: a common function that errors; family of p1 #35992) · size S.

  3. added
    priority:p1
    and removed
    priority:p2
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

    Claim: PM loop · area a4-D · 2026-11-21T18:57Z
    Session: session_01FEkQ5okniknzVVR3KTSVr1
    Account: os-project-manager
    Branch: claude/issue-36169-filterbuilderfield-multiple
    Worktree: objectstack-issue-36169
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-D
    File surface: ui/packages/app-shell/src/views/metadata-admin/widgets.tsx (FilterBuilderField and the field list its callers pass), its tests, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; seat order a4-D, dispatch-gates --tier: no path-derived mandate on ui/**), effort: high (seat order a4-D)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: Studio's view / page-block filter editor in objectstack ui/** | the shared builder offers the JSON-column operators once a field carries multiple (PR #35991, PR #36165 for the other editors) | Studio authors saving a view or page-block filter on a multi-value field; every reader of that view then gets a refusal or wrong rows
    Thread-read: 7066822196
    Premise: holds
    Pre-claim lane: repo:objectstack whole-repo lane; path ui/packages/app-shell/src/views/metadata-admin/widgets.tsx (no other seated area leases it; seat 3's o3-D names "Studio" with no in-flight file overlap).
    Pre-claim deps: none named; #35992's merged half PR #36165 is the precedent; open-PR scan finds none touching widgets.tsx.
    Prior rulings read: studio,view,page-block,filterbuilderfield,builds,fields,multiple,multi-value,field,offers → 201 hits; on the surface: objectui#4871 joint ruling (2026-08-17, points 1 and 4; no host keeps a local copy) — none rules on operator sets. thread: none.
    Fold-or-serial: not folded with #36167 (different mechanism: a CEL builder plus a possible validator narrowing with another landing tier) nor with #35992's route-A branch (different files); each its own PR.
    Serial constraints cleared: none (no open PR or in-flight claim on widgets.tsx at origin/main 6943af1)

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
    os-dev-report

    {
     "issue": 36169,
     "status": "done",
     "branch": "claude/issue-36169-filterbuilderfield-multiple",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36182",
     "session": "session_01FEkQ5okniknzVVR3KTSVr1",
     "premise_still_valid": true,
     "summary": "FilterBuilderField now forwards each field's declared multiple to the shared FilterBuilder (as PR #36165 did for the other editors), so a multiple: true select / lookup / user column is offered operatorsForField's set (Contains, Does not contain, Is empty, Is not empty); no operator table copied. Zone 2 #1 measured and corrected: three call sites in two files (widgets.tsx x2, PageBlockInspector FilterRulesField), and the field list is built in five places, each now carrying the served multiple: ResourceEditPage (loader extracted to exported objectCatalogOf), ObjectListViewInspector, ViewVariantInspector, ViewConfigPanel.mapObjectFields (exported, internal) and PageBlockInspector. Zone 2 #2: this editor has no Source fallback; a stored equals rule on a list column opens as its row (the builder mounts the held operator beside the offered set), writes nothing on open, and can be changed; pinned. Reach of the data-door refusal is borrowed from PR #36165's measurement on the same door, not re-measured live.",
     "tests": "New ui/packages/app-shell/src/views/metadata-admin/widgets.filterBuilderMultiple-36169.test.tsx: `pnpm --dir ui exec vitest run --maxWorkers=2 THAT_FILE` at b8e29a32 gives Test Files 1 passed (1), Tests 12 passed (12) (lock VERDICT command-exit 0). Affected existing suites at 903d9ca0 (137 files: widgets*, ResourceEditPage*, ViewConfigPanel*, PageBlockInspector*, ViewVariantInspector*, ObjectListViewInspector*, ListView*, StudioDesignSurface.listViewInspector*, viewFilterOrGroup*, WidgetContext*, SchemaForm*) gives Test Files 137 passed (137), Tests 933 passed (933), VERDICT command-exit 0. `pnpm --filter @object-ui/app-shell run type-check` (src + tsconfig.test.json) exit 0 at 903d9ca0, after `pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build` (VERDICT command-exit 0). Reverse verification on the committed fix, one site at a time via scripts/ablation-replace.mjs (anchor 1 to 0, blob moved, restored: blob == HEAD, git diff HEAD empty): FilterBuilderField forward 7 failed/5 passed; objectCatalogOf 5 failed; mapObjectFields 2 failed; ViewVariantInspector 1 failed; PageBlockInspector 1 failed; ObjectListViewInspector 1 failed. The first ViewVariantInspector/PageBlockInspector mutations deleted closing brackets and failed to transform ('no tests'): void, redone with an anchor on the spread alone. Subject resolves to src through ui/vitest.config.mts aliases and relative imports, so no dist preflight applies. test:repo not run locally (CI's Test Core; diff touches no repo-project test).",
     "gates": "Local: all 39 families from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` run, exit captured before any pipe, all exit 0 except check:test-source-alias first exit 1 (new test reached the lazy @objectstack/lint import via ResourceEditPage; fixed with a module-top import, re-run on head b8e29a32: exit 0). Re-run on final head b8e29a32: check:test-source-alias 0, check:type-check-coverage 0, check:type-check-debt 0, check:undeclared-dep-imports 0, check:cross-package-test-inputs 0, check:nul-bytes 0. `--ran` reconciliation: 39 derived, 39 run, 0 NOT-MEASURED (a DERIVED zero, every family carries an exit code). node ui/scripts/check-new-cross-file-line-citations.mjs: 0 new, exit 0. overlap-check before each push: VERDICT clean exit 0. check-platform-checklist not run (no export renamed or deleted; two exports added). CI on PR #36182 head b8e29a32 at report time: in_progress (Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint * lanes, Type Check * lanes, PR-body guards); Test UI / Type Check UI / Lint UI / Build & E2E UI not yet listed. Not awaited per os-dev.md.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (relay pr_create gives POST /repos/objectstack-ai/objectstack/pulls, draft, PR #36182, read-back identical 8297 bytes); POST /repos/objectstack-ai/objectstack/issues/36169/comments (this os-dev-report via post-stamped.mjs). git push x4 not counted (not REST).",
     "files_changed": [
      ".changeset/36169-filterbuilderfield-multiple.md",
      "ui/packages/app-shell/src/views/ViewConfigPanel.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/inspectors/PageBlockInspector.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/inspectors/ViewVariantInspector.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/widgets.filterBuilderMultiple-36169.test.tsx",
      "ui/packages/app-shell/src/views/metadata-admin/widgets.tsx",
      "ui/packages/app-shell/src/views/studio-design/ObjectListViewInspector.tsx"
     ],
     "line_budget": "none stated in the order (size S)",
     "net_added_lines": "411 (+429 / -18 vs 6943af17; 350 of the additions are the new test file, 13 the changeset, 66 source)",
     "deviations": [
      "File surface: the claim names widgets.tsx (FilterBuilderField and the field list its callers pass). The field list is built outside widgets.tsx, so five more source files carry a one-line multiple projection: ResourceEditPage.tsx, ObjectListViewInspector.tsx, ViewVariantInspector.tsx, ViewConfigPanel.tsx, PageBlockInspector.tsx. Read as inside 'the field list its callers pass'; no other open PR touches them (overlap-check clean). Seat to confirm.",
      "ResourceEditPage's inline catalog loader was extracted verbatim into exported objectCatalogOf, and ViewConfigPanel.mapObjectFields was exported (marked internal), so both projections could be pinned without mounting either page.",
      "Commit trailers use the AGENTS.md model-free pair (Co-authored-by: Claude) over the harness reminder's model-named Co-Authored-By; PR footer uses AGENTS.md's session-URL form instead of the reminder's two-line footer. AGENTS.md and the order outrank the reminder.",
      "Zone 2 #1 premise corrected by measurement: three FilterBuilderField call sites in two files, field list built in five places (not two call sites in one file).",
      "Reach not measured on a live backend: the data-door refusal of $eq / $in on a list column is PR #36165's measurement, cited as borrowed.",
      "The order asked for a new card-named test file; ruling 6583487846 sends a new pin into an existing shared harness file. None exists for FilterBuilderField (its pins are card-named files), so the new file stands.",
      "PR body: no signed trailer line (the order did not ask for one)."
     ],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "class: a (candidate) · reach: NOT MEASURED, code reading only, so not fileable as-is · evidence: objectCatalogOf (ResourceEditPage), ViewVariantInspector's widget context and PageBlockInspector's FilterRulesField drop each field's declared options, which ObjectListViewInspector carries for the objectstack#27515 picklist value picker; on those hosts a picklist column in the filter-builder gets a free-text value box, so a typed label saves a rule no record matches · dedupe words: filter-builder options picklist, FilterBuilderField options, objectCatalogOf options, 27515 value picker · carrier: none · noted in PR Acceptance notes, not filed"
     ]
    }
  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1

    Delivered · area a4-D · 2026-11-21T20:55Z
    PR #36182 merged (L1-b ACCEPT 7068858904, landing record 7068867132); the card closed through its Fixes line. pm:dispatched removed in this stroke; the assignee stays as the delivery record.
    Not measured by anyone: the filter builder painted in a browser, and the data-door refusal of =/$in on a list column is borrowed from PR #36165's measurement. Dev's unfiled candidate (code reading only, reach not measured): objectCatalogOf, ViewVariantInspector and PageBlockInspector drop each field's declared options, so a picklist column there gets a free-text value box.

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

Metadata

Metadata

Labels

area:studiobugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions