Repository navigation
fix(marketplace): the install confirm names the sample-data language, the install note agrees with the clear, and a reinstall offers no accepted grant - #39724
Conversation
… went, and a read names the language they load in The install answer's `seeded` gains `objects`: the run split by object, which objects the package defines, and why each skipped row was not written (a row already there, one removed after an earlier load, or an update that found no row). `GET /api/v1/marketplace/install-local/seed-locale` answers the language an install now would load locale-scoped sample data in, from the install's own resolver. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzuc2GU96KTJbcqdg8
…uage, the install note agrees with the clear, and a reinstall offers no accepted grant Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzuc2GU96KTJbcqdg8
📓 Docs Drift CheckThis PR changes 1 package(s): 7 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 3 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 7 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin a0c40054984dc064d990c9c93ba7bf8811fd4451 && git checkout a0c40054984dc064d990c9c93ba7bf8811fd4451
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 758cd97a8d8eef6879760cf3d4102a109c90177b 7c119ca4af25f2fe238c3ac6f1df4aefa797a101 && git checkout -B drift-repro 758cd97a8d8eef6879760cf3d4102a109c90177b && git merge --no-ff 7c119ca4af25f2fe238c3ac6f1df4aefa797a101
node scripts/docs-audit/affected-docs.mjs --json 758cd97a8d8eef6879760cf3d4102a109c90177b
|
…one, never a failed seed Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzuc2GU96KTJbcqdg8
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF 席位核对L1-c · PR #39724 · Verdict: REWORK (declaration only). The only owed change is one line in the changeset and the PR body. The rest of the L1 read is clean. Clause-② is
Both are additive. That is the same reading #39622 took for its new preview route ( Owed:
This moves the head. After the push I write the L2 at The rest of the L1 read holds on this head:
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzuc2GU96KTJbcqdg8
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF Contract reviewServed-tier: Face: the review is owed by the ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF 席位核对L1-c · PR #39724 · Verdict: ACCEPT (delta), on green.
Delta. The only change since REWORK 7415452667 is the changeset:
The PR body carries the same lines, and claim amendment 7415481313 records the declaration on the card. L2. Record 7415523376 is a PASS at L1. The rest of the read in 7415452667 still holds at this head, because no code moved. |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibzVCaQPuEu6rGmqH8J 2026-12-04T15:38Z · Landing · head
Fallback order unchanged per reading 7414358295 (precedent A). The one skipped row on an empty database is unmeasured; the note now names its object, as accepted by L1-c 7415452667. State: ready + auto-merge. |
Requested by Tesla · project thread
Fixes #39681
repo:objectstack@os-tesla · os-tesla · session_01L9qibzuc2GU96KTJbcqdg8
Clause-②: yes (widening)
Metadata-protocol: none
The widening: a new read-only route,
GET /api/v1/marketplace/install-local/seed-locale, served tomanage_metadataholders, and a newobjectsmember on the install answer'sseeded; nothing that was served before changes.维护者速读
What changes
Server (
@objectstack/cloud-connection)GET /api/v1/marketplace/install-local/seed-locale?appDefaultLocale=answers{ locale, source }fromresolveSeedLocaleForLoad, the install's own resolver, for the caller and the caller's active organization. Same gate as the install (manage_metadata), closed query set, ledgered and pinned in both auth-gate pin suites. A read that throws is a 500 naming no language.seededgainsobjects: per object,inPackage,inserted,updated, and the skipped rows split intoexisting/withdrawn/noRowToUpdate, derived from the loader's own per-dataset results (landedIds,mode). The new code lives inmarketplace-install-seed-report.ts; the 8.8k-line plugin only calls it.inserted/updated/skippedkeep their meaning.Console (
@object-ui/app-shell,@object-ui/i18n)/apps/setup/system/settings/localization, wherelocalization.localeis set; the card said 公司信息, but the organization language lives on Language & Region).GET …/sample-data. Rows written to objects the package does not define and updates that found no record are named. "Already here, or deleted after an earlier load" covers onlyexisting + withdrawn. An older runtime withoutobjectsreads as before.reinstallIntro; suggested grants whose Everyone suggestion isconfirmedare not offered again. fix(app-shell): an installed current version reads as up to date, and the reinstall confirm says customizations are kept #39683's customization line is untouched.Seed-locale fallback order: unchanged. The zone settled the design question by precedent as option A (reading 7414358295 on the card); analysis at
/mnt/project-files/card-39681/seed-locale-fallback-analysis.md.Tests
packages/cloud-connection:marketplace-install-seed-report.test.ts(new, 7),cloud-connection-auth-gate.pin.test.ts,marketplace-install-local-api-key-account-posture.pin.test.ts: 24 passed.tsc --noEmitclean.ui:MarketplacePackagePage.installConfirm-39681.test.tsx(new, 7),sampleDataCounts-39681.test.ts(new, 4), plus the existing install-preview, sample-data notice and installed-suggestions suites: 84 passed in total.check:i18n-keys,check:i18n-drift,check:i18n-dead-keys: green.Acceptance notes
leadInteractionPointersinsrc/sales/data/activity.seed.tsseedssys_activitypointers for held lead calls/meetings younger than 14 days; there are exactly 4.sys_activityis a platform object, so the purge matcher and the count never see them.salesOrderQuoteLinks(mode: 'update',sales-order-quote.seed.ts) finding no order row on the install path, which would mean the Acme order has no Source Quote after a marketplace install. That would be an ordering defect in hotcrm or the loader, outside this card. After this PR the install note names the object, so a retest reads it directly.uiapp-shell typecheck NOT MEASURED: its@object-ui/*dependencies were not built in this container (all errors are TS2307 or callbacks typed through those unresolved modules, none on changed lines). Left to CI.Verification
Two-minute check: on a fresh database with a 简体中文 console and no organization language, open HotCRM in 浏览应用市场 and press Install. The confirm shows 示例数据语言: 英语 and the amber notice with 打开「语言与区域」. After the install, the note says 482 sample records plus 4 other records (
sys_activity (4)), and 清除示例数据 says up to 482.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibzuc2GU96KTJbcqdg8