Skip to content

Commit 615d995

Browse files
docs(qa): re-point dashboards.cross-object-where-engine-path to the post-#33626 contract (#36056)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoH1SLb7yGpZj1NnaFvhbT6W)_ Fixes #35542 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改内部测试清单里一条看板跨对象筛选的验收条目,产品行为不变。 - 属于看板跨对象筛选那组工作:测试清单还在按旧规则判,新规则已上线,条目跟着产品走。 - 若写错,下次按清单测试的人会把正确行为判成失败或漏判;纯文档改动,可直接撤回。 - 无。 ## What changes Re-points `dashboards.cross-object-where-engine-path` (revision 1 to 2) in `docs/qa/platform-checklist/areas/dashboards.json` to the post-#33626 contract, per the card's re-point list (`checklist-test` section 5, stale spec; the product is not changed): - **acceptance[4]**: the 1,000-parent `400 INVALID_FILTER` refusal is replaced by: 1,003 and 21,003 matching parents each answer 200 with the hand count, exactly 1,000 is served, `nope` still answers no rows. The verify text cites the semi-join (`packages/objectql/src/relation-semi-join.ts`) and its pin, and attributes the numbers (count 13, sum 40; 21,003 in 24 ms on PostgreSQL 16 at 9212119) to QA run #35539 as that run's readings. - **acceptance[5]**: the hop refusal moves from two relationships to four (`CROSS_OBJECT_WHERE_MAX_HOPS = 3` in `cross-object-where.ts`; refusal text "traverses 4 relationships ... up to 3 relationships deep"). The `$not` and `$field` refusals are kept unchanged. - **title** and **steps 4 and 5** follow those two clauses (step 4 adds the 21,003-parent seed; step 5 probes a four-relationship path). - **fixtures.knownGaps[0]**: updated rather than dropped, because `fixtures.requires[2]` points at it: #33792 is closed and #35539 measured 5/500 on both paths; the item still scores the engine path only. - **history**: revision 2 row citing #33626, #35539 and this card. ## Tests No code changed, so no unit test is owed. Sources re-read at origin/main 8145424: `cross-object-where.ts` (hop limit 3, structural `multi-hop` refusal), `objectql-strategy.ts` (refusal wording), `relation-filter-lowering.ts` and `relation-semi-join.ts` (subquery on read verbs for a single-valued relation; id cap only where ids are read). The existing pins already carry both behaviours: `packages/rest/src/analytics-nested-relation-filter.test.ts` ("a single-valued match past the id cap is served") and `crossobject-conjunct-refusal.test.ts` (four relationships refused). Both are already in the item's `automated.ref`. ## Acceptance notes - `source[2]` still reads "content/docs/ui/dashboards.mdx (the engine path's orphan rule and the 1000-parent cap)". The doc itself is already current (the subquery with no cap on a SQL datasource; the cap only where ids are read). That source label is outside this claim's declared file surface, so it is left as it is and noted here. - Step 5's four-relationship path is written with placeholders (`order.R2.R3.R4.name`) because the scratch fixture declares no four-lookup chain. The refusal is structural (segment count, checked before any hop is resolved), so any declared chain will do. - No changeset: `docs/qa/**` is in no package's `files[]`; `skip-changeset` is declared on this create. ## Verification Read first: the acceptance[4] verify text in the diff (the riskiest hunk: it changes a refusal into a served answer). Two-minute check: `pnpm check:platform-checklist` prints `check-platform-checklist: OK — 16 areas, 436 items`. <details><summary>Local gates at 97b61af (17 derived, 17 run)</summary> Every command `dispatch-gates.mjs --commands` derived for this diff exited 0 at head 97b61af: check-adr-links (+ self-test), check-closing-keyword-parity (+ self-test), check-comment-mask-corpus, plan-test-core-shards self-test, lint check:doc-formula-expressions (after building formula and lint), check:adr-anchors, check:ci-filter-parity, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:platform-checklist, check:refd-timer-probe, check:watch-hint-literal. `--ran` reconciliation: 17 derived, 17 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L9qibxWPiQYXSf1jxGbN3W Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7ba22bb commit 615d995

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

‎docs/qa/platform-checklist/areas/dashboards.json‎

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,10 +1455,10 @@
14551455
},
14561456
{
14571457
"id": "dashboards.cross-object-where-engine-path",
1458-
"title": "An analytics where with a one-hop dotted leaf ('order.status') is served on the engine path: it equals the /data nested-relation filter, never selects an orphan detail, answers no rows on an empty parent match, refuses more than 1000 matching parents 400 INVALID_FILTER rather than truncate, keeps two hops, $not and $field refused, reads the parent as the caller, and answers a related field the caller cannot read 403",
1458+
"title": "An analytics where with a one-hop dotted leaf ('order.status') is served on the engine path: it equals the /data nested-relation filter, never selects an orphan detail, answers no rows on an empty parent match, serves more than 1,000 matching parents with the hand count rather than refuse or truncate, keeps four relationships, $not and $field refused, reads the parent as the caller, and answers a related field the caller cannot read 403",
14591459
"since": "v18.5",
14601460
"status": "active",
1461-
"revision": 1,
1461+
"revision": 2,
14621462
"priority": "P2",
14631463
"surface": "api",
14641464
"personas": [
@@ -1473,15 +1473,15 @@
14731473
"the engine path: the detail's inferred object cube queried with a time bucket (timeDimensions with granularity 'month'), which the ObjectQL strategy serves (its answer carries no `sql`). Without a bucket an admin query is served natively, its answer carrying `sql`, which this item does not score (knownGaps[0])"
14741474
],
14751475
"knownGaps": [
1476-
"the native SQL path selects the orphan line under $ne where the engine path and /data do not (#33792, open), so adding a time bucket changes a widget's total. This item scores the engine path; a native-path $ne reading is that card's evidence, never a verdict here"
1476+
"the native SQL path and the engine path now agree on the orphan under $ne: #33792 is closed, and QA run #35539 measured 5/500 on both paths. This item still scores the engine path only; a native-path reading is evidence beside it, never a verdict here"
14771477
]
14781478
},
14791479
"steps": [
14801480
"POST /api/v1/analytics/query {cube: the detail's cube, measures: [count, the amount sum], timeDimensions: [a month bucket], where: {'order.status': 'cancelled'}}, then the same with the nested form {order: {status: 'cancelled'}}; as the same persona GET /api/v1/data/DETAIL?filter={\"order\":{\"status\":\"cancelled\"}}",
14811481
"where {'order.status': {$ne: 'open'}}, then {$or: [that, {order: {$null: true}}]}",
14821482
"where {$or: [{'order.region': 'APAC'}, {name: ONE_LINE_NAME}]}, then {'order.region': 'APAC', 'order.status': 'open'}",
1483-
"where {'order.status': 'nope'}; {'order.status': 'open'} (1,003 matching parents); {'order.region': 'NA'} (exactly 1,000)",
1484-
"where 'order.owner_id.name' (two hops); {$not: {'order.status': 'cancelled'}}; {'order.status': {$eq: {$field: 'name'}}}",
1483+
"where {'order.status': 'nope'}; {'order.status': 'open'} (1,003 matching parents); {'order.region': 'NA'} (exactly 1,000); then seed 20,000 more open parents with no lines through createMany and repeat {'order.status': 'open'} (21,003 matching parents)",
1484+
"where a leaf through four declared relationships ('order.R2.R3.R4.name', each R a lookup on the object before it; the scratch copy may add the chain); {$not: {'order.status': 'cancelled'}}; {'order.status': {$eq: {$field: 'name'}}}",
14851485
"as the reader: {'order.secret_note': 'TOPSECRET'} and {'order.secret_note': 'NOPE'}; then the controlled_by_parent detail's cube with {'order.status': 'cancelled'}, beside the admin's answer",
14861486
"POST /api/v1/analytics/sql with a bucketed {'order.status': 'cancelled'}"
14871487
],
@@ -1511,15 +1511,15 @@
15111511
"evidence": "the two answers and the hand count"
15121512
},
15131513
{
1514-
"clause": "an empty parent match answers no rows, and more than 1,000 matching parents is refused, never truncated",
1514+
"clause": "an empty parent match answers no rows, and more than 1,000 matching parents is served with the hand count, never refused or truncated",
15151515
"oracle": "api",
1516-
"verify": "'nope' answers rows []; 1,003 parents answers 400 INVALID_FILTER saying the filter matched more than 1000 records of the parent and was not applied; exactly 1,000 is served",
1517-
"evidence": "the three answers"
1516+
"verify": "'nope' answers rows []; 1,003 and 21,003 matching parents each answer 200 with a count and amount sum equal to the hand count for that seed; exactly 1,000 is served. On a SQL datasource the single-valued relation reaches the driver as one in-database semi-join, no id list and no 1,000-id cap (#33626; packages/objectql/src/relation-semi-join.ts, pinned in packages/rest/src/analytics-nested-relation-filter.test.ts '...a single-valued match past the id cap is served'). QA run #35539 measured 1,003 parents at count 13, sum 40, and 21,003 parents served in 24 ms on PostgreSQL 16, at 92121196; those are that run's readings, re-measure at the run subject sha",
1517+
"evidence": "the four answers, each beside its hand count"
15181518
},
15191519
{
1520-
"clause": "two hops, a leaf under $not and a $field comparand stay refused",
1520+
"clause": "four relationships, a leaf under $not and a $field comparand stay refused",
15211521
"oracle": "api",
1522-
"verify": "each answers 400 INVALID_FIELD naming its reason (two relationships, under a $not, a $field comparand)",
1522+
"verify": "each answers 400 INVALID_FIELD naming its reason (traverses 4 relationships, up to 3 relationships deep; under a $not; a $field comparand). Up to three relationships are served (#33626; CROSS_OBJECT_WHERE_MAX_HOPS in packages/services/service-analytics/src/strategies/cross-object-where.ts, the four-relationship refusal pinned in crossobject-conjunct-refusal.test.ts)",
15231523
"evidence": "the three bodies"
15241524
},
15251525
{
@@ -1558,6 +1558,12 @@
15581558
"date": "2026-11-15",
15591559
"change": "initial — new coverage for #33512's one-hop cross-object analytics where (ledger 6896511848 of #33761, row 15): no item cited cross-object-where.ts, objectql-strategy.ts or dashboards.mdx, and dashboards.cube-query scores the showcase_delivery cube's reconciliation, not this filter. Steps and answers follow QA run #33785's live run at a557fa38 (comment 6893199839); its native-path observation is #33792 (knownGaps[0]). Sources re-read at main 159757ab. Card #33969",
15601560
"ref": "#34068"
1561+
},
1562+
{
1563+
"revision": 2,
1564+
"date": "2026-11-21",
1565+
"change": "re-point to the post-#33626 contract (checklist-test section 5, stale spec found by QA run #35539): acceptance[4] now serves 1,003 and 21,003 matching parents with the hand count instead of refusing past 1,000 (the single-valued relation is an in-database semi-join on a SQL datasource); acceptance[5] moves the hop refusal from two relationships to four (the hop limit is three); the $not and $field refusals are kept; title and steps 4-5 follow; knownGaps[0] updated, #33792 is closed. Sources re-read at main 8145424b. Card #35542",
1566+
"ref": "claude/issue-35542-repoint-cross-object-where"
15611567
}
15621568
]
15631569
}

0 commit comments

Comments
 (0)