Repository navigation
docs(qa): summary-field-authoring revision 3 — a count roll-up carries no summaryOperations.field - #27955
Conversation
…s no summaryOperations.field Acceptance[2] of studio-authoring.summary-field-authoring expected both summaries to carry object, field and function. Since the count roll-up saves without field, the count summary carries object and function with no field; the sum summary keeps all three. Claude-Session: https://claude.ai/code/session_01QSeKYmTYfaPbLQD4BJfomW Co-authored-by: Claude <noreply@anthropic.com>
|
domain:devx#2 · os-justin · session_01QSeKYmTYfaPbLQD4BJfomW 席位核对 — ACCEPT · domain:devx#2 · head
|
Fixes #27608
Clause-②: no
Metadata-protocol: none
维护者速读
studio-authoring.summary-field-authoring升到 revision 3:验收第 3 条改为 count 汇总只带object与function、不带field,sum 汇总仍带三者;补一条 history。summaryOperations.field时也能保存,Studio 在 count 下不再给出字段控件;旧条款要求两个汇总都带 field,会把正确的运行判为失败。docs/qa/platform-checklist/areas/studio-authoring.json中该条目的acceptance[2](clause 与 verify 两行)和新增的 history revision 3。pnpm check:platform-checklist,应见check-platform-checklist: OK — 16 areas, 352 items,退出码 0。What changes
One item,
studio-authoring.summary-field-authoringindocs/qa/platform-checklist/areas/studio-authoring.json, revision 2 to 3:acceptance[2].clause: was "the configured summary is saved spec-valid: summaryOperations { object, field, function }". Now the count'ssummaryOperationsis{ object, function }with nofield, and the sum's is{ object, field, function }.acceptance[2].verify: was "carries both summaries with the authored object, field and function". Now the count carries the authored object and function and nofieldkey, and the sum carries all three. A parenthetical tells the runner to author the count as count from the start. Studio shows no field control for count, but it keeps afieldthat was already stored when a summary is switched to count. The spec accepts that field and ignores it.revision3, plus ahistoryentry in the file's existing{ revision, date, change, ref }shape. The entry cites fix(spec): a count roll-up saves without summaryOperations.field #27533 (fbb8bec3e7) and this card.No other clause, step, fixture, negative or source line changed.
Premise, measured at
origin/mained0e71db94fbb8bec3e7(fix(spec): a count roll-up saves without summaryOperations.field #27533) is an ancestor of the base (merge-base --is-ancestorexit 0).packages/spec/src/data/field.zod.ts:summaryOperations.fieldisz.string().optional(). Its describe reads "Required for sum, min, max and avg; count counts the child rows and reads no field, so a count may omit it (ignored when given)".refuseSummaryWithoutFieldrefuses a missingfieldonly whensummaryFunctionReadsField(function)is true, which is every function exceptcount.ObjectFieldInspector.tsxSummaryConfigFields: the field combo renders only whensummaryFunctionReadsField(fn)is true. Its comment says "Afieldalready stored on a count is left as it is (ignored), so switching back keeps it". So a count authored as count saves with nofieldat all. A summary switched to count keeps anyfieldit already had.Tests
No code changed. No test applies.
Acceptance notes
fixtures.knownGaps[0](acceptance[0] and [1] fail today) is untouched. fix(spec): a count roll-up saves without summaryOperations.field #27533 changed neither the hold nor the numeric-only picker.Verification
Derived gates at head 6521b16: 16 derived, 16 run, all exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 16 commands, and each exit code was captured before any pipe:check:platform-checklist:check-platform-checklist: OK — 16 areas, 352 items (347 active, 1 planned).--ranreconciliation:16 derived famil(ies) accounted for — 16 run, 0 NOT-MEASURED (a DERIVED zero — all 16 recorded an exit code and none of them is 3).Generated by Claude Code