Skip to content

console: a parent record's whole-record hand lock (object uiReadonlyWhen) does not cover its inline master-detail line rows in the edit form #38249

Backlog

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

Filing gate: ③ (maintainer-directed) · Source: maintainer — in seat repo:objectstack#8's session, on the L2 escalation of PR #38169 (#37402): 「本 PR 按字面落地+立跟进卡」. #37402 lands its literal reading (every field of the record); this card carries the inline lines.

What happens

Read by the contract review on PR #38169 (record 7236877945, ③ escalation): on a confirmed order with inline lines, the edit dialog shows every parent field locked by hand while every line row stays hand-editable. Line-item columns carry the CHILD object's predicate (ui/packages/plugin-form/src/deriveMasterDetail.ts), and ui/packages/app-shell/src/utils/editFormLockedByState.ts returns false whenever the object places an inline child collection. A child object's own uiReadonlyWhen cannot read the parent's status, because it is limited to the record's own columns.

Expected

When a parent record is hand-locked by its object-level uiReadonlyWhen, its inline master-detail line rows are hand-locked too in the console (create, edit and delete row by hand), unless the child field declares its own opt-out. Declared writes stay untouched (API, import, actions, flows), as the ruling on #36806 keeps them. Align with #37768 (closedStates), which freezes lines server-side for a closed record: the hand lock is its console half for documents that are not closed.

Business reason

The maintainer summary of #37402 promises 「整单人手锁定」 for a confirmed order; a person can still edit its lines.

Reader who acts

A ui-lane seat after PR #38169 lands (Blocked-by: #38169).

Blocked-by: #38169

Dedupe

is:issue hand lock inline child lines master_detail uiReadonlyWhen → only the triage seat post.

Grade: area:data · Feature · p2 · reach: every app that hand-locks a document with inline lines

Activity

  1. added
    priority:p2
    pm:blocked
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:data · domain:ui · Feature · p2 · pm:blocked · size S; rationale: a parent record's whole-record hand lock (uiReadonlyWhen) does not cover its inline master-detail line rows in the edit form, so lines stay editable on a locked document. The filer's p2 stands. It waits per its Blocked-by: line. Recorded 2026-11-28T10:15Z.

  3. added
    domain:ui
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Path: none
    Unlock: its only blocker, PR #38169 (Blocked-by: #38169), merged at 2026-11-28T13:11Z ⇒ pm:blocked → pm:queue. The 10:15Z triage (area:data · domain:ui · Feature · p2) stands. Before dispatch, confirm that "unless the child field declares its own opt-out" uses an existing field-level uiReadonlyWhen/uiReadonly override (#37402: fields override the object lock). If it needs a new key, split a spec Feature card first: that is a contract change.

    Recorded 2026-11-28T14:05Z.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 28, 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

    area:datadomain:uipm:queuepriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions