You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli + docs: judge --code before boot in os migrate record-currency-codes, and document the command and the record-mode switch (multi-currency, epic #8345) #28168
Filed by the epic PM from the contract review of PR #28128 (#27577), should-fix S2 and S3. Part of #8345. ⛔ Not a claim. Not release-paired; ⛔ needs #28128 on main first.
两分钟验证:os migrate record-currency-codes --object x --field y --code usd 在不 boot 的情况下立即以 INVALID_FIELD 退出。
需要您做的: 无。
Task
S2. In packages/cli/src/commands/migrate/record-currency-codes.ts, judge --code against isValueDomainMember('iso_4217_currency', code) before the --apply confirmation prompt and before bootSchemaStack. Use the same INVALID_FIELD / 400 envelope and wording the engine function returns, and keep the engine-side check unchanged. Add a test showing the boot is never reached for a non-member code.
S3. In content/docs/deployment/cli.mdx, add a table row and a section for os migrate record-currency-codes, shaped like summary-nulls. In content/docs/data-modeling/currency.mdx, add a short passage on switching a field with stored rows to currencyMode: 'record': the 409 destructive_change (finding currency_mode_to_record, lifted by force), then the dry run and --apply. Say that the code is the operator's and is never derived.
Acceptance
A non-member --code exits before any prompt or boot, with the same envelope as today.
Both docs pages name the command, and currency.mdx names the 409 and the dry-run/--apply steps.
dispatch-gates --commands exit codes captured.
Lane: server (cli + docs) · Size: S · Review: default. Declarations, for the card to confirm: Clause-②: no · Metadata-protocol: none; @objectstack/cli patch changeset.
⛔ Out of scope: skills/** and docs/adr/**. The epic PM's Tier H PR carries those.
Epic: #8345. Dedupe: PR #28128 review record (S2, S3); no open card carries this.
Activity