Skip to content

Cross-object atomic batch write (master-detail parent+children in one transaction) #1604

@xuyushun441-sys

Description

@xuyushun441-sys

Follow-up from master-detail (ObjectUI ADR-0001). Children-create is already atomic via createMany / /data/:object/batch (defaultAtomic). Missing: a cross-object transactional write (parent object A + children object B in one transaction). Proposal: POST /api/v1/data/batch accepting { operations:[{object,action,data}], atomic:true }, wrapping ops in engine.transaction(); masterDetailTx uses it when present, else falls back to client orchestration. Touches rest-server.ts + protocol (hot files) — dedicated reviewed change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions