Skip to content

Commit 327fab0

Browse files
committed
docs(upgrading, v19): the stored half, as os migrate meta --stored now judges served-invalid rows and a stored view's bulkActions
Claude-Session: https://claude.ai/code/session_01QSeKYoSKoNUygbCoMBTbGc Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5d2a46b commit 327fab0

2 files changed

Lines changed: 45 additions & 7 deletions

File tree

‎content/docs/releases/v19/index.mdx‎

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ the same 102 among those changesets at `6eb23c87`.
5757
- **Protocol 19.** `PROTOCOL_VERSION` reads `'19.0.0'`, so a runtime from this
5858
line refuses a manifest whose `engines.protocol` admits 18 and not 19
5959
(`'^18'`) with `OS_PROTOCOL_INCOMPATIBLE`, before any of its metadata
60-
loads; on `main`, `os validate` and `os build` refuse it too. Registered as
61-
`protocol-18-range-refused`, on the protocol-19 step.
60+
loads; from the cut after `19.0.0-next.3`, `os validate` and `os build`
61+
refuse it too. Registered as `protocol-18-range-refused`, on the protocol-19
62+
step.
6263
[#37314](https://github.com/objectstack-ai/objectstack/pull/37314)
6364
- **67 translation keys retired from `@object-ui/i18n`.** Keys 18.6.0 shipped
6465
and no code reads any more are gone from every locale; an override of one
@@ -598,7 +599,9 @@ of the other 30 landed after 18.6.0 on the protocol-18 step, which
598599
## Coming from 18.x
599600

600601
Reach 18.6.0 first, walking each 18.x page's upgrade checklist, through the
601-
[18.6.0 checklist](/docs/releases/v18/18-6#upgrade-checklist). Then:
602+
[18.6.0 checklist](/docs/releases/v18/18-6#upgrade-checklist). Where a step
603+
says "after `next.3`", it describes `main` on 2026-12-02, which ships in the
604+
cut that follows `19.0.0-next.3`. Then:
602605

603606
1. **Move every pin together, to one exact `19.0.0-next.N`.** Every
604607
`@objectstack/*` and `@object-ui/*` dependency, with `@objectstack/skills`
@@ -617,14 +620,14 @@ Reach 18.6.0 first, walking each 18.x page's upgrade checklist, through the
617620
literal to rewrite, so there the command writes nothing and lists the range;
618621
change it by hand in each package manifest. Until the range admits 19, a 19
619622
runtime refuses the stack before any of it loads
620-
(`OS_PROTOCOL_INCOMPATIBLE`), and on `main` so do `os validate` and
623+
(`OS_PROTOCOL_INCOMPATIBLE`), and after `next.3` so do `os validate` and
621624
`os build`, naming `os migrate meta --from 18`; `19.0.0-next.3`'s
622625
`os validate` and `os build` still pass `'^18'` with a warning.
623626

624627
On `19.0.0-next.3`, `--write` does not follow the `exportsOf(…)` call that
625628
every `create-objectstack` project wires its collections through, so it
626629
writes none of such a project's edits and lists each as
627-
`not written [helper]`: make them by hand from that list. On `main` it
630+
`not written [helper]`: make them by hand from that list. After `next.3` it
628631
follows that wiring, writes what stands on its own when part of the write
629632
cannot be made, says `Wrote N of M mechanical change(s)`, and exits `1`
630633
while it leaves a change or the range for you.
@@ -649,7 +652,7 @@ Reach 18.6.0 first, walking each 18.x page's upgrade checklist, through the
649652
Modify All entry. That moves the matrix, so `os build` stops on
650653
"Access matrix drift" (`os validate` does not run this gate). Run
651654
`os build --update-access-matrix`, then review and commit the matrix
652-
diff, the review of who can do what. On `main`, `os migrate meta`
655+
diff, the review of who can do what. After `next.3`, `os migrate meta`
653656
lists this drift and prints the same step.
654657
5. **Remove overrides of the retired translation keys.** An i18next resource
655658
or Studio catalogue that overrides one of the 67 keys in
@@ -679,14 +682,25 @@ Reach 18.6.0 first, walking each 18.x page's upgrade checklist, through the
679682
Packages or from an app.
680683
[#37166](https://github.com/objectstack-ai/objectstack/pull/37166),
681684
[#38318](https://github.com/objectstack-ai/objectstack/pull/38318)
685+
9. **Check each deployment's stored metadata.** Studio-saved rows are not
686+
your sources: run `os migrate meta --stored` with the 19 CLI against the
687+
deployment's database, then `--apply`. A stored list view that still
688+
carries `bulkActions` is served invalid on 19 until it is rewritten or
689+
re-saved without it. On `19.0.0-next.3` the pass tells such a view its
690+
actions are "not declared as an action of that object" and stays green;
691+
after `next.3` it judges the view with the actions the deployment declares,
692+
rewrites it on `--apply` where those actions already carry `selection`,
693+
and exits `1` while any stored row would be served invalid, naming the row
694+
and its fix ([the stored half](/docs/upgrading#the-stored-half)).
695+
[#39136](https://github.com/objectstack-ai/objectstack/pull/39136)
682696

683697
<Callout type="warn">
684698
**Compiled from the changesets, then walked once.** These steps were compiled
685699
from the changesets and walked on 2026-12-01 from 18.6.0 to `19.0.0-next.3`,
686700
over two apps: a blank app given data and Studio customizations, and the
687701
18.6.0 showcase. Both reached a working 19 with their data and
688702
customizations, but only after edits this page did not name then; steps 2, 4,
689-
7 and 8 now carry them. The walk has not been repeated against `main`.
703+
7, 8 and 9 now carry them. The walk has not been repeated after `next.3`.
690704
</Callout>
691705

692706
## How a breaking change lands on this line

‎content/docs/upgrading.mdx‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,30 @@ It reads **your source** and no database. (Its sibling,
313313
`os migrate meta --stored`, does the opposite — it rewrites one deployment's
314314
stored metadata rows and reads no config. The two are mutually exclusive.)
315315

316+
### The stored half
317+
318+
Run `os migrate meta --stored` with the new release's CLI
319+
against each deployment's database, a dry run first, then `--apply` (with
320+
`--yes` where no terminal answers its prompt). From the first 19 release after
321+
`19.0.0-next.3`, the pass judges every stored row it reads the way the runtime
322+
serves it, and is red while any row would be served invalid: it lists each
323+
such row with its fix, says the run is not clean until each is fixed, and
324+
exits `1`:
325+
326+
```text
327+
✗ 1 row(s) are served INVALID by the runtime on protocol 19.0.0 (it registers them marked invalid and its reads badge them with _diagnostics):
328+
• view/lead_grid [env-wide, package=app.crm] id=r_7 — list.bulkActions: …
329+
fix: correct the row (sys_metadata id r_7) at the site named and save it again — in Studio, or with PUT /api/v1/meta/view/lead_grid carrying the corrected body — or delete it by name through the metadata API once nothing needs it. Re-run this pass to confirm (protocol 19.0.0).
330+
```
331+
332+
A Studio-saved list view whose `list` still carries `bulkActions` is judged
333+
with the actions the deployment declares. Where those actions already carry
334+
the `selection` location, `--apply` rewrites the row without `bulkActions`.
335+
Where they do not yet, the row is left as stored, and its TODO names the
336+
actions and the two fixes: add `'selection'` to their `locations` in the
337+
package source and deploy it, then re-run the pass, which then rewrites the
338+
row; or re-save the view without `bulkActions`.
339+
316340
### What it does not do — read the output
317341

318342
<Callout type="warn">

0 commit comments

Comments
 (0)