Skip to content

Commit 5d2a46b

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/issue-38930-v19-upgrade-docs
2 parents 99ccc0f + 491ea82 commit 5d2a46b

28 files changed

Lines changed: 1356 additions & 42 deletions
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/cli': patch
4+
---
5+
6+
fix(migrate): `os migrate meta --stored` judges a stored view's `bulkActions` with the actions the deployment declares, and is not green over a row the runtime serves invalid
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
**A stored view's `bulkActions`.** The stored pass replays the conversion chain over each `sys_metadata` row on its own, so a Studio-saved list view whose `list` still carried `bulkActions` was told its actions were "not declared as an action of that object", even where the package declares them on that object. The pass now runs the same conversion (`view-bulk-actions-to-action-selection`) again for such a row, with the deployment's declared objects and actions beside it, as the registry holds them:
12+
13+
- the package's actions already carry the `selection` location, and no `actionLayout.selection` is needed: the view row alone is the write, so it is listed as pending and `--stored --apply` rewrites it without `bulkActions`;
14+
- the actions are declared but still lack `selection` (or the bar's order needs the object's `actionLayout.selection`): that write is the package's, not the row's, so the row stays as stored and its TODO says so. It names the actions and both fixes: add `'selection'` to those actions in the package source and deploy it, or re-save the view without `bulkActions`;
15+
- an action really is undeclared, two lists order the bar differently, or the object already declares an arm: the conversion's own reason, now given with the actions in view.
16+
17+
**Rows the runtime serves invalid.** Each row whose body the pass reads is judged with the runtime's own check. That is the body the boot hydration registers for the row (`convertStoredItem`), validated by `computeMetadataDiagnostics`, the check behind the `[metadata_spec_invalid]` boot line and the reads' `_diagnostics` badge. A row that fails it carries `servedInvalid: { path, message }`, and the report counts them in `servedInvalid`. `storedMigrationClean` is false while that count is not zero, so `os migrate meta --stored` exits 1. The output lists each such row with its id, the site the schema refuses and its fix, and says why the run is red. `--json` gains `servedInvalid` (the count, and the per-row field) beside `clean`; no existing field is renamed or removed. Not judged: a row stored under a non-canonical type, an organization-scoped row, and a row the chain yields no item of, because the runtime serves none of them under that type. A row that converts nothing and is served invalid is now listed `skipped` with that reason, where it used to be counted `canonical`.
18+
19+
**Cost.** A deployment holding an unrelated invalid stored row now goes non-green (exit 1) until that row is fixed. The line names the row and its fix. That includes a row whose only finding is a TODO no conversion can rewrite (for example a `controlled_by_parent` object the protocol refuses): those used to be `skipped` and left the run green. The report-only review lists (stored decision nodes, stored permission-set View All / Modify All entries) are unchanged: they still move no count and no verdict.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
'@objectstack/spec': minor
3+
'@object-ui/types': patch
4+
'@object-ui/app-shell': patch
5+
---
6+
7+
feat(spec): a navigation item declares search aliases, `keywords`, and a translation bundle gives them per locale
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: added
11+
12+
Setup pages are being renamed (#39050), so a page must still be found by its old name. Two optional keys carry that:
13+
14+
- **`keywords: string[]` on every navigation item** except `separator` (it sits on the shared nav base, beside `label`). Source-language words a person may type to find the entry, such as its old name. Search only: never shown, never a route, never a gate. Each keyword is one trimmed, non-empty word or phrase of at most 60 characters, and an entry takes at most 20 (the dataset synonym's rule); anything else is refused, not trimmed. `synonyms`, `searchTerms` and `searchKeywords` are refused with "did you mean `keywords`", and so is `aliases`, except on a `group`, where it is answered with both keys it can mean there (`keywords`, or `renamedFrom` for retired group ids). A `separator` refuses `keywords` with its own prescription.
15+
- **`keywords: string[]` on a translation bundle's navigation node**, beside `label`: `apps.<app>.navigation.<id>.keywords` gives this locale's aliases for the entry, keyed by the same entry id as the label, at both translation doors (the file bundle and the registered `translation` item), under the same rule as the item's. The node still owes its `label`, and an unknown key is still refused.
16+
17+
The key is named `keywords`, not `aliases`, because `aliases` already means a retired-key rename map across the AI schemas.
18+
19+
Nothing reads either key yet. The reader is the command palette (#39055), which will match a query against the aliases resolved for the current locale. Until then the key is graded `planned` on the liveness ledger (`navigation.children.keywords`), its describe carries `[PLANNED — not yet read]`, and authoring it raises no warning: an alias nothing reads costs a search hit, not a gate.
20+
21+
The navigation contribution's `group` describe and example now name a current Setup group id, `group_integrations_dev`, instead of the retired `group_integrations`.
22+
23+
`@object-ui/types` declares `keywords` on its navigation item mirror, so `objectui validate` keeps the key, under the spec's rule, instead of stripping it; nothing in the console reads it yet. `@object-ui/app-shell`'s nav editors count `keywords` among the describing keys, so changing an entry's type keeps them.
24+
25+
No action needed for existing metadata: both keys are optional.

0 commit comments

Comments
 (0)