Repository navigation
fix(console): confirm the install-local door's unique-scope and access refusals, and the org card's - #39219
Merged
Conversation
…s refusals, and the org card's The install-local door stops an install for three decisions in turn (unique scope, access upgrade, schema upgrade). The console confirmed only the schema family, on the package page. Both install-local callers now read all three refusals, draw each one's findings, and resend with every confirmation given so far; the catalog org card gets the same confirm, and on a hosted environment confirms the schema family through the tenant-runtime door. Claude-Session: https://claude.ai/code/session_01Utp6Cb2GKmDs8GGmGrdccJ Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd 维护者速读
席位核对ACCEPT · head
|
Contributor
Author
|
repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd Landing · 2026-12-03T00:58Z · seat ACCEPT 7363806301 at head |
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 Bill · project thread
repo:objectstack@os-bill · os-bill · session_01Utp6Cb2GKmDs8GGmGrdccJ
Fixes #39183
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The install-local door (
packages/cloud-connection/src/marketplace-install-local-plugin.ts) stops an install409for three decisions, one at a time, in this order on main6a3e3ac5:UNIQUE_SCOPE_CONFIRMATION_REQUIRED(:3600-3628, ADR-0120 D5e):details.findings[]each withidanddescribe; confirmed byconfirmGlobalUniques, the listed ids (confirmWith.body). Confirming some ids still stops on the rest, so the console sends exactly the listed ones.ACCESS_UPGRADE_CONFIRMATION_REQUIRED(:5034-5065, ADR-0126 §6 wall 3):details.findings[].describe+details.findingSet; confirmed byconfirmAccessUpgrade.SCHEMA_UPGRADE_CONFIRMATION_REQUIRED: confirmed byconfirmSchemaUpgrade(Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149).A confirmation is recorded by the door only when the install goes through, so each resend carries every confirmation sent before it.
installConfirmations.ts.installConfirmRefusalOf(error)reads which family stopped the install and its findings with what confirms them (orrefusal: nullwhen the answer lists nothing confirmable);confirmationsWith(sent, refusal)adds that family's confirmation to the ones already sent (a re-refused family's token is replaced by the fresh one). The schema family delegates toschemaUpgradeRefusalOf.InstallConfirmFindings.tsx. The schema family renders the Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149SchemaUpgradeFindings; uniques and access findings render one line each in the door's owndescribesentence (what the CLI prints), under a refusal line, a heading and an intro.marketplaceApi.ts.installLocaltakesconfirmAccessUpgradeandconfirmGlobalUniques(all three overloads), each sent only when set.MarketplacePackagePage.tsx.localSchemaRefusalbecomeslocalConfirm: { packageId, pending, sent }.runInstallLocalsendsconfirmationsWith(sent, pending); on any of the three refusals the confirm in front of the local Install (install-preview-dialog) opens again with that refusal's findings and a family-specific button. A refusal with no findings says, in the console's words, that the install cannot be confirmed from the console. Opening the confirm from the page starts over.MarketplacePage.tsx, catalog org card (scope comment 7361476765).doOrgInstall(pkg, confirmations)sends the confirmations on install-local; on any refusal a neworg-install-confirm-dialogdraws the findings and its button installs again with them confirmed; Cancel installs nothing. On a hosted environment the tenant-runtime door forwards onlyconfirm_schema_upgrade(Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149), so the card confirms the schema family there; a uniques or access refusal on that branch keeps the door's message.marketplace.install.uniqueScope.*andmarketplace.install.accessUpgrade.*(heading, intro, refused, refusedUnreadable, confirm) andmarketplace.org.confirmTitle, in all 11 marketplace locales; zh-Hant regenerated withgen:zh-hant.Enumeration pin from the card:
git grep -n "confirmAccessUpgrade\|confirmGlobalUniques\|ACCESS_UPGRADE_CONFIRMATION\|UNIQUE_SCOPE_CONFIRMATION" -- 'ui/**' ':!*test*'→ 0 hits on main, 24 on this head.Tests
ui/packages/app-shell/src/console/marketplace/__tests__/MarketplaceInstallConfirmFamilies-39183.test.tsx(8 new; real pages, realinstallLocal/installPackage, real runtime-config boot; onlyfetchand the org card's catalog lists stubbed):{packageId},+confirmGlobalUniques: [ids],+confirmAccessUpgrade,+confirmSchemaUpgrade, then success.accessUpgrade.refusedUnreadableand opens no confirm.confirm_schema_upgrade.Local runs (head c22348d)
cd ui && npx vitest run --maxWorkers=2on the new suite →Tests 8 passed (8).cd ui && npx vitest run --maxWorkers=3 packages/app-shell/src/console/marketplace packages/i18n→Test Files 177 passed (177),Tests 2518 passed | 13 skipped (2531)(the Package upgrades with field changes still fail through the console's install-local door and the tenant-runtime install door (schema-upgrade confirmation family) #39149 and #38958 应用市场安装对话框无法确认结构变更,有字段变更的升级一律失败 #38958 suites included, andzh-hant-generated).npx eslinton the six touched app-shell files → 0 errors (58 warnings,no-explicit-any, pre-existing style).ui/packages/app-shelltsc --noEmit: NOT MEASURED, reason: the@object-ui/*workspace packages it imports are not built in this container (allTS2307or itsTS7006cascade; none ininstallConfirmations.ts).Type Check UIin CI is the verdict.Ablations (committed first, mutated with `scripts/ablation-replace.mjs`, restored to the HEAD blob, `git diff HEAD` empty)
...confirmations→ 2 red (three-family chain, stale access token), 6 green.confirmationsWithdrops earlier confirmations on access → 2 red (package-page chain, org-card chain), 6 green.confirmSchemaUpgrade→ 1 red (hosted schema), 7 green.installLocalbody withoutconfirmGlobalUniques→ 2 red (both chains), 6 green.Derived gates run locally (the rest to CI)
Changed lines: 982 (+950 / -32) vs the 3000 threshold: under.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6Cb2GKmDs8GGmGrdccJ