Skip to content

design mode 3/9: optimistic concurrency for every design-mode commit (two admins editing the same item) #39372

Backlog

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

Part of epic #39368 (rulings and invariants there).

Depends on child 0. Verify the current behaviour first: this was not read.

Today

  • Drafts pin first-write (ifNoneMatch: '*'), publish pins to the draft just written, and a conflict returns 409 (ui/packages/app-shell/src/views/runtime-metadata-persistence.ts, around 873-877).
  • The menu additionally pins the published version it read (design mode menu save: id-less twins, a 404 stored read, moves into a contributed group, and no version pin #36538; layout/designModeMenuSave.ts:22-24, 46-52).
  • Unverified: whether a dashboard, report, view or object-layout commit pins the published version read when the item was opened. If it does not, the later writer silently overwrites the earlier one. Longer staging (epic) widens that window.

Change

Every design-mode commit pins to the published version read when the item was first staged, the same way the menu does. A conflict marks that item failed in child 0's result list with a clear reason ("changed by someone else since you opened it"), and its staged edits stay.

Acceptance

  • One test per staged kind: change the published document after staging, then save. The item is refused, nothing is overwritten, and the edits stay staged.

Activity

  1. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Feature · p2 · pm:blocked · size M, touched 2026-12-03T16:17Z. Rationale: The maintainer approved the epic's rulings, scope and card split on 2026-12-03 (「按建议整体通过,立专题卡」), so the feature is pre-authorised. Runtime design mode is how the app looks and is used in place (area:ux ①②), and the grade is the epic's p2. Child 3 (optimistic concurrency) depends on child 0; the card says to verify current behaviour first.
    Blocked-by: #39369
    Grade: area:ux · Feature · p2 · admins in design mode · read (epic #39368).

  2. added
    domain:ui
    pm:blocked
    priority:p2
    on Dec 3, 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:uxdomain:uienhancementpm:blockedpriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions