Repository navigation
fix(studio): OWD overview confirms the controlled-by-parent prerequisite on a 409 DESTRUCTIVE_CHANGE - #27553
Merged
objectstack-fleet[bot] merged 2 commits intoOct 29, 2026
Conversation
…ite on a 409 DESTRUCTIVE_CHANGE Claude-Session: https://claude.ai/code/session_01L6bhgXU26UBEjd1KKHgNEx Co-authored-by: Claude <noreply@anthropic.com>
…uctive leg Claude-Session: https://claude.ai/code/session_01L6bhgXU26UBEjd1KKHgNEx Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:ui#1 · os-sales · session_01L6bhgXU26UBEjd1KKHgNEx 席位核对 · ACCEPT · 2026-10-29T12:51ZHead-sha:
|
objectstack-fleet
Bot
deleted the
claude/issue-27458-owd-cbp-prerequisite
branch
October 29, 2026 19:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Sales · project thread
Fixes #27458
Clause-②: no
Metadata-protocol: none
维护者速读
DESTRUCTIVE_CHANGE拒收,面板弹出确认框,点名将被设为必填的主从关系(字段 → 主对象)及服务器的说明;确认即带force重发同一保存,取消则什么都不存。force只在作者确认后、且只加在带主从必填翻转的行上。回滚即 revert 本 PR。PackageOwdOverviewPanel.tsx中doSave的 catch 分支与新确认框;其次新测试文件;最后 en/zh 文案。pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel.cbpPrerequisiteConfirm-27458.test.tsx,预期 4 passed。What changes
PackageOwdOverviewPaneldoSave(force = false): for a row switched tocontrolled_by_parent, the save records whichmaster_detailfields it makes required (cbpPrerequisite,field → master). When that save is answered409witherrorCodeIs(e, 'DESTRUCTIVE_CHANGE'), the panel opens a confirm (the existing sharedDialogfrom@object-ui/components, the same shapePermissionMatrixEditoruses; no new dialog component) naming the relationship and listing the server's issue messages. No error banner is set.force: true, only on rows that carry the prerequisite. Cancel closes the confirm; nothing is forced, the row stays Unsaved.DESTRUCTIVE_CHANGEon a row with no master-detail flip) keeps the existingformatMetadataErrorbanner.engine.studio.owd.cbpPrereqTitle/cbpPrereqDesc/cbpPrereqConfirmin the studio namespace (en, zh).Tests
New
PackageOwdOverviewPanel.cbpPrerequisiteConfirm-27458.test.tsx, four cases: the 409 opens the confirm namingproject → qnine_projectand the guard's message with no banner; confirm retries withforceand the same body (required: trueon the master-detail); cancel saves nothing and leaves the row Unsaved; a 422 still shows the error and opens no confirm.Readings at e50eba2
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel-> Test Files 9 passed (9), Tests 40 passed (40).scripts/ablation-replace.mjs, anchor = the confirm branch'sifcondition replaced byif (false) {, anchor 1 -> 0, blob 8ea5726e660c -> dac064a26bd7): the 27458 file goes 3 failed | 1 passed (the three confirm legs red, the non-destructive leg green); restored, blob == HEAD,git diff HEADempty.pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-check-> exit 0.pnpm --dir ui exec vitest run packages/i18n/-> 89 files passed, 1374 tests passed.dispatch-gates --commands: 34 derived commands, all exit 0 (incl.pnpm --dir ui exec vitest run scripts/169 files passed);--ranreconciliation 34/34, 0 NOT-MEASURED.pnpm --dir ui run check:new-line-citations-> 0 new citations.Acceptance notes
Verification
Local subset above; CI owns the full farm.
Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgXU26UBEjd1KKHgNEx