Skip to content

objectql: in one multi-row insert, a parent field derived from a summary (and a summary of a summary) still reads its pre-batch value #34635

Closed as duplicate

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Filing gate ①: contract review N1 on PR #34612 (Fixes #34466, ruling family #25579 "a batch equals one by one"), passed on by area o2-E. Dedupe: summary batch formula parent, "summary of a summary"; no open card.

Suggested-grade: p2 · domain:server

维护者速读

Observed (by review, not yet re-run)

PR #34612 overlays the summary field itself, row by row, inside one multi-row insert. Two reads stay at the pre-batch value:

  1. A parent field derived from that summary: a formula field, or a stored expression field such as "is full when line_count >= 2". A child requiredWhen that reads parent.is_full passes every row of the batch. Inserted one by one, the field is re-derived after each recompute and the later rows are refused.
  2. A summary of a summary one level up (grandparent rolls up the parent's summary). The overlay moves only the direct parent's summary.

Premise check (run first)

On main after #34612 merges: a parent with line_count (count of children) and a formula is_full = line_count >= 2; a child rule requiredWhen: parent.is_full on description. Insert three children with empty description in one call, then the same three one by one. If the batch also refuses the third row, close this card as not reproducible.

Done when

The batch and one-by-one paths give the same verdict for both shapes above, or the limit is ruled and documented. Pin tests in packages/objectql/src/summary-rollup.test.ts.

Activity

  1. added
    bug
    finding
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → p3 · domain:server · pm:blocked · 2026-11-17T04:23Z

    ⛔ Not a claim.

  3. added
    domain:server
    pm:blocked
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-17T05:49Z

    ⛔ Not a claim.

    Blocker #34466 closed today at 05:22Z. Back to the queue at its grade (p3). Run the card's premise check first; close as not reproducible if the batch already refuses the third row.

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

    @objectstack-fleet
    ContributorAuthor
  7. removed
    pm:queue
    on Nov 17, 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

    bugdomain:serverfindingpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions