Repository navigation
fix(console): View all → New seeds the relationship lookup's dependsOn fields - #37421
Conversation
…n fields The record-trail New on ObjectDataPage wrote the parent formLink pair alone. It now applies relatedCreateSeedOf, the seed the related tab's New writes: the parent record is read once (the trail carries its id only), and only when the relationship lookup declares dependsOn. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 7bcb29c · 2026-11-26T03:43Z The seat runs the at-tier contract review of this head through an isolated sub-agent; L1 is the seat's own. |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: PR #37421 for card #37290. Read: the card body and its four comments (triage 7163981674 and 7167139627, claim 7180634038, dev report 7181920218; no ruling and no earlier record on the card), the PR body, the three-file net diff against Face: no published schema and no governed path in the three files ( ① Derived judgments
Findings:
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
… read and drops a stale result The record-trail New reads the parent before opening the form when the link declares dependsOn. While it reads, New is disabled and aria-busy; the read is bounded (TRAIL_NEW_PARENT_READ_TIMEOUT_MS), past which the form opens with the parent link alone; a read that settles after the page unmounted or the address moved on opens nothing. Pins the refused, empty, hung and stale arms. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
…ng the address Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Delta review of PR #37421 (card #37290), rework round 1, against record 7182025259 on head ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X
Landing on seat ACCEPT 7183461042. The maintainer named this PR on the seat thread's decision card (「合并这三个」 on 「合并 #37394、#37421、#37464 这三个已 ACCEPT 的非受管 PR 吗?」, 2026-11-26T07:11Z). Action: ready + auto-merge. Closes #37290 on merge. |
Fixes #37290
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ObjectDataPage's New under a record trail (a related list's "View all") wrote the parentformLinkpair alone. It now appliesrelatedCreateSeedOf(from@object-ui/plugin-detail/core, already exported and already imported byRelatedRecordActionsBridge): parent pair first, then oneformLinkpair perdependsOnfield, the same URL shape the related tab's New writes.source.i), not the parent record. The related-tab New uses its mounted parent record; here the page reads it once viadataSource.findOne(source.o, source.i), and only when the relationship lookup declares a non-emptydependsOn(looked up withparentRelationshipFieldDef, so array-form field lists count too). NodependsOnmeans no read. A failed or empty read opens with the parent pair alone.Files to read first (by risk):
ui/packages/app-shell/src/views/ObjectDataPage.tsx(the New button'sonClick, the asyncfindOnebranch).Tests
ui/packages/app-shell/src/views/ObjectDataPage.viewAllNewSeed-37290.test.tsx: two cases.contract.opportunitydependsOn: ['account'], trail parentopportunity O-1(accountA-1):formLink=['opportunity:O-1', 'account:A-1'],findOnecalled once with('opportunity', 'O-1').task.opportunitywith nodependsOn:formLink=['opportunity:O-1'], no read of the parent.Pin green with fix, red without (head ad4ceb5)
Test Files 1 passed (1) · Tests 2 passed (2), lockVERDICT command-exit 0.ObjectDataPage.tsxchecked out from baseff6f9768d2(relatedCreateSeedOfcount 0), restored fromHEAD(hash matches the HEAD blob,git diff HEADempty):Tests 1 failed | 1 passed (2),AssertionError: expected [ 'opportunity:O-1' ] to deeply equal [ 'opportunity:O-1', 'account:A-1' ], lockVERDICT command-exit 1. The control stays green both ways.Acceptance notes
relatedCreateSeedOf": yes, the one exported function, no copy.Verification
Local gates
dispatch-gates --ran: 38 derived, 36 run (all exit 0), 2 NOT-MEASURED (check:type-check-debtandpnpm --dir ui exec vitest run scripts/: both need the shared verify lock, held by a sibling run 30+ minutes). CI runs both.pnpm --filter @object-ui/app-shell run type-check: NOT MEASURED locally for the same reason; CIType Check UIcovers it.overlap-check --branch=HEAD:VERDICT clean exit 0. origin/main merged once before opening (no conflict).Two-minute check:
cd ui && pnpm exec vitest run packages/app-shell/src/views/ObjectDataPage.viewAllNewSeed-37290.test.tsx; expect 2 passed.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv