Repository navigation
fix(studio): the OWD overview's Save publishes each object pinned to the published row its load read - #37501
Conversation
… published row its load read Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CY2uhJ1AYNPw5TUSVS
…rite, partial save, control; changeset Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CY2uhJ1AYNPw5TUSVS
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head e572eb2 · 2026-11-26T09:45Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37501 (card #36962), declaration face. Read: the card body and its 4 comments (os-dev report 7187713642 included), card #36511's body, the PR body, the net diff against ① Derived judgmentsWhat holds.
M1 (must-fix) — after "reload" on one row, every later row of the same Save is published unpinned.
S1 (should-fix) — the tests do not hold the two claims the pin logic is most likely to break on.
N1 (nit) — "A row whose author chose reload loses its edit and is read back" is not true for a row that had a draft before the Save. That draft is kept and now carries the edit. The re-read shows the edit as the row's value, not dirty, under the "unpublished draft" badge, while the live row is the other admin's. Nothing goes live, and the guard keeps the publish pinned to the refused version (rule 9), so this is wording plus the missing case in S1. N2 (nit) — a saved row whose N3 (nit) — ② Semver level
③ Boundary flags
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…n load before its publish, so a reload on one row leaves the rest pinned Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CY2uhJ1AYNPw5TUSVS
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37501 (card #36962), declaration face, delta round after the FAIL record 7188573161 on The gates have not concluded on this head. Of 56 check-runs: 18 success, 17 skipped, 20 in progress, 1 cancelled, 0 failed. The verdict below is on the contract and the diff. It does not stand in for the gate verdicts, and landing waits on them (see ③). ① Derived judgmentsM1 — closed. After "reload" on one row, later rows of the same Save were published unpinned.
S1 — closed. The four cases asked for are present and each asserts the right thing.
N1 — closed. The code comment, the PR body and the changeset now say that a reloaded row with a draft pending before the Save keeps that draft, carrying the edit, and is asked again on its next Save. N2 — open, accepted, on record. A saved row whose N3 — carried by #37515. What held before still holds. Single-row race, reload, overwrite and keep-editing; the #36511 partial save; no change for any other ② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Security label: |
|
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS Landing (zone o5-P) · 2026-11-26T10:37Z · ACCEPT 7189568354 at
Security-touching: yes (org-wide sharing default) — |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45803158911 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#5 · os-bill · session_01Utp6CY2uhJ1AYNPw5TUSVS Re-arm (zone o5-P) · 2026-11-26T11:00Z · same head |
Fixes #36962
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
PackageOwdOverviewPanel.tsx(the Studio OWD overview, one Save for every changed object):publishedPinOfLayersover the row's layers read, at the package the publish writes) into auseDraftSaveGuardheld by the panel (recordPublished).If-None-Match: *(no published row of its name). A saved row whose layers read failed pins nothing.publishSavedItem(its existing fourth parameter;studioSaveBar.tsxuntouched). A publish over a row another writer published since is refused409 METADATA_CONFLICTand the existing conflict dialog asks: reload, overwrite after a confirmation, or keep editing.One changeset (
@object-ui/app-shellpatch).Tests
New
PackageOwdOverviewPanel.publishPinned-36962.test.tsx, against a server double whose publish door honoursIf-Match/If-None-Matchand answers its 409 through the realMetadataClienterror parser:currentVersion;If-None-Match: *;overlayVersiongets an unpinned publish, as before;If-Match;If-None-Match: *, not published over.Ablation 1 (drop the pin from the publish call): 10 of 11 red, the unpinned control green. Ablation 2 (never keep a kept edit's original pin across the re-read): exactly the two kept-edit cases red. Ablation 3 (drop the re-send before each publish): exactly the reload-on-the-first-row case red. All restored, blob equals HEAD.
Acceptance notes
client.saveunguarded (no draft pin). It is a whole-document write over a read made a moment earlier, so a draft another writer wrote in between is replaced; andhasDraftis the load's reading, not the Save's. A concurrent change to the livesharingModelis still caught at the publish this PR pins. Both, with the panel's pin-record housekeeping, are carried by Studio OWD overview: the draft save is an unguarded whole-document write, and a draft that appears after page load is published live unseen #37515.declinedto the top bar even when other rows went live in the same pass (no "saved" toast); the rows that went live read back as saved on the page. Same answer the object page gives for a reloaded Save.Verification
Read first, by risk:
PackageOwdOverviewPanel.tsx, therecordPublishedre-send just beforepublishSavedItemindoSave, then the load's pin loop (editPinsRef) and thereloadedNamesbranch.Two-minute check:
pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel.publishPinned-36962.test.tsx, expect 11 passed.All readings at head
dd92c2751(objectstack-ai/objectstack), after building the app-shell dependency closure (turbo run build --filter='@object-ui/app-shell^...', lock VERDICT command-exit 0).Tests: OWD panel suites
Ablations (scripts/ablation-replace.mjs, restored to the HEAD blob f3046b31b11e each time)
Typecheck and lint (app-shell)
Derived gate families (dispatch-gates --commands, 38)
Generated by Claude Code