Skip to content

fix(dashboard): a global filter on a multi-value field is sent as $contains, not = / $in - #36181

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-35992-dashboard-filter-arity
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-35992-dashboard-filter-arity

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #35992

Clause-②: yes (widening)
Metadata-protocol: none

repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1 — os-dev, area a4-D, route A per seat note 7066557346. The other half of this card, the condition editors, merged before this PR opened (PR #36165), so this PR closes the card.

维护者速读

  • 仪表盘查看者按「项目标签」「团队成员」这类可多选的字段筛选时,图表和指标现在显示匹配的数据,之前显示为 0。
  • 属于「仪表盘与条件编辑器在多值字段上发出服务器拒收的筛选」这张卡的后一半(前一半条件编辑器已合并),替仪表盘查看者解决筛选后空白的问题。
  • 出错时查看者会看到部件先短暂显示加载占位再出数;读不到字段定义时退回旧行为并在控制台提示;本改动可直接撤回。
  • 无

What changes

A dashboard select / lookup global filter bound to a field that holds several values (multiple: true on a select, lookup or user field, or a multiselect / checkboxes / tags field) was sent as field = value, or $in for several values. The server refuses both there (data door 400 INVALID_FILTER; dataset door 200 with count 0). It is now sent as { field: { $contains: value } }, and several values as $or over one $contains each.

  • @object-ui/types — DataSource.getDataset?(datasetName, { callerPackage }): an optional read of a dataset definition. It resolves null when no dataset of that name is served, and a failed read rejects.
  • @object-ui/data-objectstack — ObjectStackAdapter.getDataset reads GET /api/v1/meta/dataset/NAME through client.meta.getItem. It sends the reader's package as callerPackage, answers null for the item-less envelope and for a 404, rejects on any other failure, and caches the answer per name and package.
  • @object-ui/core — buildWidgetScopedFilter takes an optional fifth argument: per bound field, the operators the field takes when it is stored as a JSON column. A member filter on such a field becomes $contains / $or. A member filter on a structured JSON field (json, address: no contains) keeps = / $in, as before. New export boundMemberFilterNames. Nothing changes for callers that do not pass the argument.
  • @object-ui/plugin-dashboard — new filterFieldFacts.ts. When the dashboard declares a select / lookup filter, DashboardRenderer reads each widget's object: a dataset-bound widget's Dataset.object through getDataset, or a provider: 'object' widget's own object. It then reads the object's fields through getObjectSchema and gets the operators from jsonColumnFilterOperators, the helper the list quick filter and the filter builder already use, so no second operator table exists. While the definition is in flight, a widget bound by an active member filter draws a skeleton and sends no query. When the definition cannot be read, the old = / $in lowering stays and a console warning names the filter, the source and the reason, once.
  • Docs: content/docs/frontend/data-source.mdx documents getDataset, and the plugin-dashboard README documents the lowering.

Read first, by risk:

  1. ui/packages/plugin-dashboard/src/DashboardRenderer.tsx, the hunk around holdForFieldFacts. This is where a widget's query is held. A wrong condition here would hold a widget forever or send = first.
  2. ui/packages/plugin-dashboard/src/filterFieldFacts.ts, useFilterFieldFacts. The effect is keyed on joined source keys, never on an array identity (ui AGENTS.md chore: version packages #10). A source that cannot be asked answers unavailable synchronously, so a data source without getDataset is never held.
  3. ui/packages/core/src/utils/dashboard-filters.ts, buildJsonColumnMemberClause. The $contains / $or shape.

Tests

New pins (4 files, 34 tests), head 5a0b3c9
  • ui/packages/core/src/utils/__tests__/dashboard-filters.multiValue-35992.test.ts (12 tests): one member gives $contains; several give $or; a one-member list gives no one-arm $or; a multi-value lookup/user; an explicit filterBindings target; a single-value field keeps = / $in; a text filter is unchanged; AND with other filters; no operator answer keeps = / $in; a structured JSON field keeps = / $in, explicit binding included, with no warning (round 2); boundMemberFilterNames.
  • ui/packages/plugin-dashboard/src/__tests__/filterFieldFacts.multiValue-35992.test.ts (8 tests): real field definitions through jsonColumnFilterOperators cover a multiselect, a select/lookup/user with multiple: true, and single-value select/lookup unchanged. A field the object does not declare keeps =. Covers pending and unavailable facts, and the widget source (dataset, provider: 'object' under data and under options.data, inline rows).
  • ui/packages/plugin-dashboard/src/__tests__/DashboardRenderer.multiValueFilter-35992.test.tsx (8 tests), the fixture dashboard: a global filter bound to labels (multiselect) and team_members (user, multiple: true). It checks runtimeFilter is $contains and that no query ever carried labels = frontend. The query is held behind a skeleton until getDataset answers. No hold while the filter is empty. A single-value field keeps =. With no getDataset, or a dataset that is not served, = is kept and the filter is named in a warning. A provider: 'object' table gets the same $contains in its find $filter.
  • ui/packages/data-objectstack/src/getDataset-35992.test.ts (6 tests, real ObjectStackClient over a stubbed fetch): the route, callerPackage, the item-less envelope gives null, a 404 gives null, a 500 rejects with its httpStatus and code, one read per name.
Affected suites and type-check, head 5a0b3c9

Each run was under os-verify-lock.sh, and each result is the lock's VERDICT line.

  • pnpm --filter @object-ui/types --filter @object-ui/core --filter @object-ui/data-objectstack --filter @object-ui/plugin-dashboard run type-check: all four printed type-check: Done.
  • pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-dashboard/ packages/core/src/utils/__tests__/ packages/data-objectstack/ packages/types/: Test Files 836 passed (836), Tests 15976 passed, 6 skipped (15982), VERDICT command-exit 0.
  • These ran after merging origin/main 31b2666 and rebuilding the @object-ui/plugin-dashboard... and @object-ui/data-objectstack... closures.
Reverse verification

At 9d28642 the four source files were restored to base 146b6f9 (dashboard-filters.ts, core index.ts, DashboardRenderer.tsx, data-objectstack index.ts) with the new tests and filterFieldFacts.ts kept. Result: Test Files 4 failed (4), Tests 23 failed, 11 passed (34). The 11 that stay green are the single-value controls, the source classification and the pending/unavailable facts, which do not depend on the restored files. Restored with git checkout HEAD -- PATH: git diff HEAD was empty, and each git hash-object matched its HEAD blob. Tests resolve @object-ui/* to src through the ui vitest alias, so no dist rebuild was involved.

Live measurement, showcase (SqlDriver), fresh backend on a random port, torn down after

showcase_project has 5 rows. Labels were set on 3 of them: [frontend, qa], [frontend] and [qa].

  • GET /api/v1/meta/dataset/showcase_project_metrics returns item object = showcase_project. In the object definition, labels is multiselect and team_members is user with multiple: true. The built adapter's getDataset returned showcase_project for it, and null for a name that does not exist (404).
  • Dataset door POST /api/v1/analytics/dataset/query, project_count: {labels: frontend} returns 0; $in [frontend, qa] returns 0; $contains frontend returns 2; $or of two $contains returns 3; that $or inside an $and returns 3.
  • Data door POST /api/v1/data/showcase_project/query: = and $in return 400 INVALID_FILTER; $contains returns 2; the $or returns 3.

Acceptance notes

  • The filter bar's select control picks one value, so the $or (any of several) arm is reached only when a filter variable holds a list, as a programmatic value. It is pinned at the unit level. The rendered fixture covers the single-member case on a dataset widget and on a provider: 'object' table.
  • A filter bound to a relationship path on a dataset (account.region) is not looked up through the relationship. The base object does not declare that name, so it keeps = / $in with no warning. No multi-value field behind a to-one path was measured.
  • DashboardGridLayout was not changed. It applies no dashboard filters today.
  • The dataset door answers = / $in on a JSON column with 200 and count 0 instead of refusing. That is analytics: the dataset query door answers 200 / count 0 for = or $in on a JSON (multiple) column, where the data door refuses 400 #36168's, and it is not changed here.
  • carrier: none · noted · a select / lookup filter bound to a structured JSON field (json, address, empty checks only) keeps the = / $in lowering it had before this PR, explicit bindings included. The server refuses that filter or answers it with no rows, so the widget shows no data under it. Changing that is outside this card (round 2, L1-b comment 7068252699).

Verification

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-dashboard/src/__tests__/DashboardRenderer.multiValueFilter-35992.test.tsx should report 8 passed. Then delete the jsonColumnOperatorsFor(fieldFacts) argument in DashboardRenderer.tsx and run the file again: the $contains cases fail and receive { labels: 'frontend' }.

Local gate subset, head 5a0b3c9
  • node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 73 families from this tree. All 73 were run, and the exit codes were captured before any pipe. 72 exited 0 on the first run. pnpm --filter @objectstack/spec run check:skill-examples exited 3 (PREREQUISITE NOT MET: client-react dist had no .d.ts after an earlier OS_SKIP_DTS=1 build of mine). After @objectstack/client and client-react were rebuilt with declarations it exited 0: 347 examples type-check.
  • --ran reconciliation: 73 derived, 73 run, 0 NOT-MEASURED (a derived zero: all 73 recorded an exit code and none of them is 3).
  • node ui/scripts/check-new-cross-file-line-citations.mjs: 0 new citations, exit 0. overlap-check: clean before each push. No exported symbol was renamed or deleted, so the platform checklist does not apply.
  • The full farm (Test UI, Lint UI, Type Check UI, …) is CI's.

Generated by Claude Code

@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final green head · area a4-D · 2026-11-21T19:41Z
Head: 5a0b3c978525a65a2e1d234a6809aebc4401bcea
CI: 52 success, 10 skipped, 0 failed; check-expected-skips.mjs --pr 36181 OK; mergeable clean. check-governed-merges --pr 36181: NOT governed, 1015 changed lines.
Owed: L1 (L1-b) and a contract record for the Clause-②: yes (widening) declaration: an optional getDataset member on the published @object-ui/types DataSource interface. No packages/spec/src/**, no governed path, no narrowing.
Dev report: comment 7067965777 on #35992. Route: seat note 7066557346 (route A); claim 7066579738.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-21T19:44Z

席位核对 — REWORK · head 5a0b3c9

One item to fix. Everything else below was checked and holds.

To fix

  1. A select / lookup filter bound to a structured JSON field is now dropped, including on an explicit binding. This is outside the card and changes what a viewer sees.
    • In buildJsonColumnMemberClause (ui/packages/core/src/utils/dashboard-filters.ts), a field whose JSON-column answer has no contains (json, address: is_empty / is_not_empty only) is skipped with a console warning. The widget then draws its unfiltered numbers under an active filter.
    • Today that filter is sent as = / $in, and the server refuses it or answers it with no rows. Either way the widget shows no data, which matches the filter being unmatched.
    • The same function's documented rule (字段多的对象:自适应呈现表面 + 语义 field span(auto/full)+ 表单布局防呆 lint(AI-authored,ADR-0085 对齐) #2578 item 5) only skips a default binding to a field the object lacks. An explicit filterBindings string "is always honoured … so a typo surfaces as a visible (fixable) empty widget rather than being silently dropped". The new branch skips explicit bindings too.
    • The card and route A (seat note 7066557346) cover fields holding several values. A structured field is not one, so nothing ruled this change.
    • Fix, recommended: let a field with no contains keep the = / $in lowering, as today. Change the pin at dashboard-filters.multiValue-35992.test.ts:115 to assert that, and drop the changeset's "skipped with a console warning" sentence. File a card (#N in the body) if the structured case should change.
    • Fix, alternative: confine the skip to default bindings, the same split the knownFields check makes a few lines above. Pin both arms and say so in the changeset.
    • Skipping explicit bindings as well would be a visible-behaviour choice for the seat to take up. It is not something to settle in this PR.

Checked and holding

  • Shape: l1-face.mjs --pr 36181 is clean at 5a0b3c9: open, draft, base main.
    • The first line is Fixes #35992, which is right because the condition-editor half merged in fix(ui): condition editors offer a multiple: true field only what its evaluator answers #36165, so this PR delivers the rest of the card. No closing keyword binds any other card.
    • The one changeset covers all four published packages touched.
    • The declarations are Clause-②: yes (widening) · Metadata-protocol: none, and Skills-docs: is not owed.
    • Dogfood is not owed: there is no ! and no (narrowing).
  • Changeset level, patch (area question 1): correct. Root AGENTS.md Post-Task Checklist step 3 says "the level follows the kind alone … none takes patch; a non-protocol change, widening or breaking, ships patch". The new optional DataSource.getDataset is a TypeScript-interface widening with Metadata-protocol: none, so patch is right, and minor would have broken the rule. ui/AGENTS.md has no level rule of its own.
  • File surface (area question 2): not a breach that needs an amendment. Claim 7066579738 names dashboard-filters.ts, "the dashboard renderer that calls it", the adapter and types/src/data.ts. The four extra files deliver that change and fix no adjacent defect, so the four-condition rule does not apply:
  • Fallback with no getDataset (area question 3): right as built.
    • An adapter without getDataset or getObjectSchema, a dataset that is not served, and a failed read all keep the = / $in lowering. That is today's request, so nothing changes for a third-party adapter. A warning, once per filter, source and reason, names the filter and why.
    • unreadableReason answers unavailable without a read, so such a widget is never held behind the skeleton. The fixture pins this case.
    • Either alternative, skipping the filter (unfiltered numbers) or refusing the widget, would change visible behaviour for adapters outside this repo, which needs a ruling.
  • The --ran record (area question 4): the PR body records the real sequence.
    • check:skill-examples exited 3 (PREREQUISITE NOT MET, after the dev's own OS_SKIP_DTS=1 build). After the declarations were rebuilt, it was re-run and exited 0 with 347 examples. The reconciliation reads 73 derived, 73 run, 0 NOT-MEASURED.
    • The text substitution the classifier refused left no edited record. The report says so in deviations.
    • CI confirms the result independently. check:skill-examples runs in Type Check · consumer gates (lint.yml), and that job is success at 5a0b3c9.
  • Code read:
    • useFilterFieldFacts is keyed on the sorted, joined source keys, not on an array (ui/AGENTS.md chore: version packages #10), and it cancels on re-key.
    • A widget is held only while a bound select / lookup filter has a value and its facts are pending.
    • jsonColumnFilterOperators is the one operator table, reused from @object-ui/components.
    • The adapter's getDataset answers null for the item-less envelope and for a 404, rejects on any other failure, and caches per name and reader package.
    • buildWidgetScopedFilter's fifth argument is optional, so existing callers are unchanged.
  • Pins and controls: 34 tests in 4 files. The single-value = / $in controls pass, and the renderer fixture asserts that no query ever carried labels = frontend. The reverse run is from the dev's reading and I did not re-run it: the source restored to base gives 23 ✗ and 11 ✓, the 11 being the controls and classification cases, with each file restored to its HEAD blob. The live showcase readings (dataset door = 0, $contains 2, $or 3; data door 400 INVALID_FILTER) back the premise.
  • Docs and changeset, read sentence by sentence: the data-source.mdx paragraph and the README bullet match the diff. The changeset matches it apart from the structured-field sentence in item 1.
  • Gates: 52 success, 10 expected skip, 0 unexpected skip, 0 failed and 0 pending at 5a0b3c9. Lint & Repo Gates and TypeScript Type Check are both success.
  • Landing, after item 1: Clause-② yes (widening) on the published @object-ui/types interface, so a contract review at CONTRACT_REVIEW_TIER must PASS before enqueue. The area is arranging it with the seat. After the fix, I will read only the delta.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Final green head · area a4-D · round 2 · 2026-11-21T20:08Z
Head: 084ce1a9e29932733cc56269ce2b31f0065552bb (delta from 5a0b3c9: the REWORK item of 7068252699, +15 / -30 in 3 files)
CI: 54 success, 12 skipped, 0 failed; check-expected-skips.mjs --pr 36181 OK; mergeable clean.
Owed: L1 delta (L1-b), then the TIER_DEFAULT contract record for the Clause-②: yes declaration (seat-confirmed face).
Dev report: comment 7068333211 on #35992.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-21T20:09Z

席位核对 — ACCEPT (delta) · head 084ce1a

Delta read only: 5a0b3c97..084ce1a9, one commit, 3 files, +15/−30. It answers REWORK 7068252699. Everything outside this delta stands as checked in that record.

  • Item 1 is closed by the recommended fix.
    • buildWidgetScopedFilter now takes the $contains path only when jsonColumnOperators?.(field)?.includes('contains').
    • A structured JSON field (json, address: empty checks only) falls through to buildFilterCondition, the = / $in it had before this PR, on default and explicit bindings alike, with no warning.
    • buildJsonColumnMemberClause loses its skip branch and its widget / def / operators parameters, and its TSDoc says so.
    • No other caller changes, and the multi-value path is untouched.
  • Pin: dashboard-filters.multiValue-35992.test.ts now asserts { address: 'x' } on a default binding and { address: { $in: ['x', 'y'] } } on an explicit filterBindings binding, with console.warn not called.
  • Text:
    • The changeset's structured-field sentence is gone, and the rest of it still matches the diff.
    • The PR body's What-changes bullet and test list describe round 2.
    • The Acceptance note records the structured case as today's lowering, unchanged: "carrier: none · noted".
    • No defect class is claimed for it, since an unmatched filter shows no data as it always has, so not filing it is right.
  • Gates: l1-face.mjs --pr 36181 is clean at 084ce1a. Check-runs are 54 success, 12 expected skip, 0 unexpected skip, 0 failed and 0 pending. Lint & Repo Gates and TypeScript Type Check are both success.
  • Landing: Clause-② yes (widening) on the published @object-ui/types DataSource. The contract review at CONTRACT_REVIEW_TIER on this head must PASS before enqueue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5oVqoTJkrRZcyZS4xd
L1-b · 2026-11-21T20:11Z

席位核对 — correction to 7068548859 and 7068252699 (tier only)

Both records said the contract review on this PR is owed at CONTRACT_REVIEW_TIER. That was wrong.

scripts/pm/record-recognisers.mjs serves TIER_DEFAULT for a review owed by "the Clause-②: yes declaration alone (no schema, no governed path and no narrowing declared)". That is this PR's case:

  • No packages/spec path is touched.
  • check-governed-merges reads it as not governed.
  • It declares Clause-②: yes (widening) · Metadata-protocol: none.

The ACCEPT on 084ce1a is otherwise unchanged. The contract review at TIER_DEFAULT must PASS before enqueue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
area a4-D · 2026-11-21T20:15Z · independent reviewer session (not the dev), card #35992

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 084ce1a9e29932733cc56269ce2b31f0065552bb
Local-runs: none
Security-touching: no
Rule-change-verified: none

Inputs read: card #35992 (body and every comment, including the triage re-grade 7063147451, the seat's route-A note 7066557346, both claims, the file-surface amendment and the three os-dev reports), PR #36181 (body, the 13-file list, the net diff against main), and the 66 check-runs on this head. Face: Clause-②: yes (widening) alone. No path is under packages/spec/src/** or on the Prime Directive 14 governed list, and nothing is declared (narrowing), so the tier is TIER_DEFAULT and there is no section ④. No path is under .claude/**, so Rule-change-verified: none holds. Security: no changed hunk teaches permission, sharing, credential, token or auth behaviour. The callerPackage hunks deal with dataset-name resolution (ADR-0150 D3). The jsdoc's mention of a "permission" failure only says such a read rejects. It is not access-control behaviour.

① Derived judgments

Every change to what callers can pass or to the public surface, judged against the tree at this head:

  • @object-ui/types: DataSource.getDataset?(datasetName, options?: { callerPackage?: string }), resolving a Dataset or null. This is a new optional member on a published interface, so it is a widening, and it is named correctly. Dataset is the spec's own z.input type from @objectstack/spec/ui (packages/spec/src/ui/dataset.zod.ts). The file already imported ListViewGroupHeaderRow from that subpath, so this adds no new dependency edge. Existing implementers still conform. No getDataset with a conflicting signature exists anywhere in ui/packages, packages, apps or examples. The jsdoc contract (null = not served, every other failure rejects) matches the implementation.

  • @object-ui/data-objectstack: ObjectStackAdapter.getDataset. This is a new public method on an exported class, so it is a widening, and it implements the interface member with the same signature. It reads through client.meta.getItem('dataset', name, { callerPackage }). It maps both answers for "absent" to null: the item-less envelope (metaEnvelopeCarriesItem) and a 404 (is404Error). Every other error is rethrown. Caching goes through MetadataCache.get, whose load stores a value only on success, so a rejection is never cached as "no dataset". The behaviour matches the types jsdoc, the changeset sentence and content/docs/frontend/data-source.mdx.

  • @object-ui/core. There are three changes, all widenings and all named correctly:

    • buildWidgetScopedFilter gains an optional fifth parameter jsonColumnOperators.
    • boundMemberFilterNames is a new export.
    • The type DashboardFilterJsonColumnOperators is a new export.

    A caller that omits the fifth argument takes exactly the old path. The new branch is reached only when isMemberFilter(def) holds and the answer for the field includes contains. The return type is unchanged (a record or undefined). The one in-repo caller is DashboardRenderer.

  • @object-ui/plugin-dashboard. There are no new public exports. filterFieldFacts.ts is internal: src/index.tsx neither re-exports it nor uses export *, and package.json exports names only .. The behaviour change is in what the Console sends:

    • A select / lookup filter that holds a value and is bound to a field jsonColumnFilterOperators reports as taking contains is now sent as $contains, or as $or over one $contains per member.
    • A widget's query is held behind ChartSkeleton while that field definition is pending.
    • When the definition cannot be read, the old = / $in lowering is kept and a console warning (shown once) names the filter.

    This delivers the meaning the filter already declares; it removes no accepted input. The hook order is sound: useFilterFieldFacts runs unconditionally at line 440, after dashboardPackageId (line 351) and filterDefs (line 421), with no early return in between. Its effect is keyed on the joined source keys, not on the identity of an array.

  • Narrowing check. No member is removed, no type is narrowed, no export is renamed, and no accepted value is refused. Nothing published narrows. No must-fix on this axis.

② Semver level

  • Clause-②: yes (widening) is correct. Every change above is additive (an optional member, a new method, new exports, an optional parameter). Both declaration lines start a line in the PR body and in .changeset/35992-dashboard-filter-arity.md, and Check Changeset is green (2 of 2).
  • Metadata-protocol: none is correct. No spec key, accepted value, metadata type or default changes. An authored globalFilters select / lookup filter keeps its meaning (records whose field holds the chosen value). Only the Console's lowering of it changes, so the server answers the declared meaning instead of refusing it.
  • The level is patch on @object-ui/types, @object-ui/core, @object-ui/data-objectstack and @object-ui/plugin-dashboard. This is correct under root AGENTS.md Post-Task Checklist step 3: kind none takes patch, and a non-protocol change ships patch even when it widens. The changeset covers every published package the diff moves; all four are private: false. content/docs publishes no package. The dev's deviation from the order's suggested minor (report 7067965777) follows the root rule and is accepted. The changeset prose matches the tree at this head: the structured-JSON skip sentence was removed in round 2, and the warn-and-fallback sentence matches filterFieldFacts.ts.

③ Boundary flags

  • Gates. There are 66 check-runs on this head: 54 success, 12 skipped, none failed, cancelled or pending. The skips are by design. One example is UI Published Artifacts, which runs in the full battery only and skips on pull_request (ci.yml, the ui-published-artifacts job). The rest are opt-in or path-gated legs, such as Build Core, Temporal Conformance and Queue verdict. Type Check UI, Test UI (16 of 16), Test Core, Lint UI, Live E2E UI and Governed Surface Queue Guard are green.
  • Report 7066498044 (the condition-editor half, PR fix(ui): condition editors offer a multiple: true field only what its evaluator answers #36165), open question 1 (where the dashboard learns the field's arity). Answered by seat note 7066557346 (route A). This diff implements route A as ruled: an optional DataSource member, no spec key, no server rewrite.
  • Report 7066498044, open question 2 (os-dev.md rule 2 says assign the PR; the order said no assignees). Not answered on the card. It is a process question with no effect on this diff's contract, so it is escalated to the seat, not judged here.
  • Report 7066498044, out-of-scope findings. Already filed by the seat as analytics: the dataset query door answers 200 / count 0 for = or $in on a JSON (multiple) column, where the data door refuses 400 #36168, studio: the CEL ConditionBuilder offers == / != on a list subject, and validateExpression accepts a condition that answers a constant #36167 and studio: the view / page-block FilterBuilderField builds fields without multiple, so a multi-value field offers = / $in #36169 (7066557346).
  • Report 7067965777, deviations.
    • The changeset level is judged in ②.
    • The files beyond the claim's list are accepted. filterFieldFacts.ts is the renderer's own module, the core barrel adds the two exports, and the docs are owed by ui AGENTS.md. None of them is a governed path, and PR-body guards is green.
    • No assignees, and the trailer and footer forms: process only, no contract effect.
    • The OS_SKIP_DTS rebuild and the refused edit of a recorded exit code: the gate was re-run rather than edited, and the CI verdicts at this head govern.
    • The narrowed local test runs are superseded by green Test UI and Test Core at this head.
    • The data-source-* surface tests do not list DataSource members. Accepted.
  • Report 7067965777, contract-face note ("the contract review at CONTRACT_REVIEW_TIER is the seat's"; the seat note also says CONTRACT_REVIEW_TIER). Answered. The tier follows the face. A Clause-②: yes declaration with no published schema, governed path or narrowing is TIER_DEFAULT, and the tier is exact, not a floor (contract-review.md: "仅凭 Clause-②: yes 申报而欠 ⇒ TIER_DEFAULT;档恰等不作下限"). This record is served at that tier.
  • Report 7067965777, out-of-scope findings. The relationship-path binding (account.region) and the analytics: the dataset query door answers 200 / count 0 for = or $in on a JSON (multiple) column, where the data door refuses 400 #36168 carrier are both recorded in the PR's Acceptance notes. See N3.
  • Report 7068333211 (round 2), deviations. These are: pushed before the run, the PR-body signed trailer, and main not merged (mergeable_state clean). None affects the contract. The dispatch-gates set was not re-run locally at this head, but CI at this head is fully green, and that is the gate verdict.
  • Report 7068333211, out-of-scope finding. A filter bound to a structured-JSON field (json, address) keeps its pre-PR = / $in lowering. This was not introduced by this PR and is recorded in the Acceptance notes with carrier: none. See N3.
  • Open questions. Both reports on this branch have an empty open_questions.
  • Author. The PR's user.login is objectstack-fleet[bot], so no extra author note is needed.
  • SQL push-down (Prime Directive 5). No new id materialisation or in-app join. The filter is pushed to the server as $contains / $or, which the data door and the dataset door evaluate in the query (measured: 2 and 3 rows). The two new reads (getDataset, getObjectSchema) fetch definitions, not rows, and both are cached in the adapter. No finding.

Findings:

  • N1 (nit) — useFilterFieldFacts keys its stored answers by reader package and source key, not by dataSource identity. After a data-source swap, the earlier source's ready facts serve until the effect's new read lands. This has no effect against one backend.

  • N2 (nit) — warnFilterLoweredWithoutFacts runs in the render body of DashboardRenderer. The module-level warn-once memo makes it idempotent, so this is only a style point.

  • N3 (nit) — Two bindings still go out as = / $in without a console warning:

    • a filter bound through a relationship path (account.region), which the base object does not declare, so jsonColumnOperatorsFor answers undefined;
    • a filter bound to a structured-JSON field, which takes no contains.

    Both are pre-existing behaviour outside the card's "Done when", and both are listed in the PR's Acceptance notes. If a multi-value field behind a to-one path is ever measured, that warrants its own card.

No must-fix, no should-fix.

Implemented-by: claude/issue-35992-dashboard-filter-arity
Reviewed-by: session_01FEkQ5okniknzVVR3KTSVr1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对

Landing · area a4-D · 2026-11-21T20:17Z · head 084ce1a9e29932733cc56269ce2b31f0065552bb

Reading Value
L1 REWORK (structured-JSON skip) → delta ACCEPT 7068548859 (L1-b, this head); tier correction 7068579993
Contract Clause-②: yes (widening) declaration face ⇒ TIER_DEFAULT; record 7068623546 by a session independent of the dev: PASS, no must-fix, no should-fix, nothing narrows
Check-runs 54 success, 12 expected skip (check-expected-skips.mjs OK), 0 failed, 0 pending; mergeable clean
Governed check-governed-merges --pr 36181: NOT governed (0 of 13 paths), 1000 changed lines
Main K = 6 first-parent commits past base; git merge-tree against origin/main clean
Overlap overlap-check: merges cleanly with origin/main, #36182 and #36089

Ready + auto-merge now. Fixes #35992: merging closes the card (both halves: #36165 condition editor, this PR dashboard filter bar).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 20:17
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit f3d0a9f Nov 21, 2026
67 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35992-dashboard-filter-arity branch November 21, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard filter bar and condition editors still send = / $in on a multi-value field, which the server refuses (follow-up to #35559)

1 participant