Repository navigation
Commit 8ce138a
docs(cli): rollback, revert and extension delete fill stored expressions at the change (#34106)
<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi93PPcd7BvYcYsgHCZCgqxzx)_
Fixes #33612
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:CLI 文档里 `os migrate stored-expressions`
那一行,不再说「回滚/还原不会回填」,改为列出会当场回填的全部变更(发布式保存、发布、回滚、还原、删除重声明字段的对象扩展)。
- 为什么改:回滚与还原从 #32700 起、删除对象扩展从 #32958 起都会当场回填存储计算字段,旧句会让人以为回滚后还要手动跑这条命令。
- 风险与回滚:纯文档一行,无代码、无发布内容;回滚即 revert 本提交。
- 先看:`content/docs/deployment/cli.mdx` 第 1479 行(唯一改动)。
- 两分钟验证:`git show --word-diff HEAD --
content/docs/deployment/cli.mdx`,预期只见该行的门列表扩充与末句替换。
- 需要你做的:无,席位落地。
## What changes
One row of `content/docs/deployment/cli.mdx`, the `os migrate
stored-expressions` row. It said the command is for "a rollback or
revert, which does not fill". Since #32700 the history doors fill a
changed stored computed field at the change, and since #32958 so does
the delete of an `object_extension` that re-declared one. The row now:
- names those doors beside the save and publish doors as changes that
fill at the change, with their routes;
- keeps the command for a definition changed in a repository and booted
(unchanged), and for rows a door's fill could not write, which the
`stored-expression-fill-incomplete` warning names the command for.
Nothing else in the file is touched (open PRs #33675 and #34047 may edit
other rows).
### The code this teaches (origin/main `27c2f1ea`)
`packages/metadata-protocol/src/protocol-stored-expression-fill.ts`, the
docblock of the door list:
```text
* [#32700] …and the history doors that make a restored definition live
* (`protocol-package-commits.ts`) fill it the same way, after the storage
* sync they now run as the save door does:
*
* - `rollbackMetaItem` (`POST /api/v1/meta/:type/:name/rollback`);
* - `revertCommit` (`POST /api/v1/packages/:id/commits/:commitId/revert`),
* which captures each object before its first restore and fills it once
* after the loop; and `rollbackToPackageCommit`
* (`POST /api/v1/packages/:id/rollback`), a loop of `revertCommit`, whose
* answer carries every step's notices.
*
* [#32958] …and the delete door that hands an object back the definition
* beneath it (`protocol-diff-delete-load.ts`): `deleteMetaItem`
* (`DELETE /api/v1/meta/:type/:name`) removing an `object_extension` that
* re-declared a stored computed field captures before its registry heal and
* fills after it.
```
The call sites behind it: `protocol-package-commits.ts` lines 2273 /
2348 (`rollbackMetaItemUnaudited`: capture, then
`fillStoredExpressionChange`), 1568 / 1754 / 1903 (`revertCommit`:
capture per object, fill once after the loop); `rollbackToPackageCommit`
(line 1920) loops `revertCommit`; `protocol-diff-delete-load.ts` lines
828 / 887 (`deleteMetaItem`, active target only).
The remedy text of the incomplete-fill warning (same file, `fillRemedy`,
lines 133–137):
```text
'Each such row is computed when it is next written. To fill them all at once, run '
+ `\`os migrate stored-expressions --object ${object} --field ${field} --changed --apply\` against the `
+ 'database (its dry run, without --apply, lists them first).'
```
### Other copies of the claim
Grepped `content/docs/**` for `does not fill`, `stored-expressions`, and
rollback/revert within 200 characters of fill/stored
computed/expression:
- `ui/translations.mdx:149` ("`label` does not fill it") and
`kernel/services-checklist.mdx:103` ("the package named does not fill
the …"): different claims, untouched.
- `releases/v18/18-4.mdx:799` already says a rollback or revert fills
(release-owned, correct).
- `releases/v18/18-4.mdx` lines 79, 956, 1112, 1221: describe the
command, make no rollback claim.
No other copy; this PR edits one row.
## Tests
Docs-only; no test edits, forced or otherwise.
## Acceptance notes
None.
## Verification
Head `5336b254`. Build closure under `os-verify-lock`
(`@objectstack/lint...`, `@objectstack/spec...`,
`@objectstack/client-react...`): `VERDICT command-exit 0`, 4m55s.
`dispatch-gates --commands`: 44 derived. `--ran`: "44 derived famil(ies)
accounted for — 44 run, 0 NOT-MEASURED (a DERIVED zero)".
<details><summary>44 commands, exit codes</summary>
```text
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-docs-section-name.mjs :: exit 0
node scripts/check-docs-section-name.mjs --self-test :: exit 0
node scripts/check-section-landing-index.mjs :: exit 0
node scripts/check-section-landing-index.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cli-examples-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-anchors :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:doc-frontmatter :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:docs-redirects :: exit 0
pnpm check:docs-single-h1 :: exit 0
pnpm check:docs-spec-enumerations :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-readme-links :: exit 0
pnpm check:react-page-adapter-contract :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:vendor-version-stamps :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
</details>
Type-check lanes and `Plan Test Core shards` are CI's own; no TypeScript
is touched.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmRrQB4tkFVtnqiS8an)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5c0b6f6 commit 8ce138a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | | - | |
| 1479 | + | |
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
| |||
0 commit comments