Skip to content

Commit 7f3638c

Browse files
committed
chore(changeset): spec minor, Metadata-protocol added, Skills-docs none (contract review 6546633648)
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FEkQ5pEcJ17rvFVfE3NXzN
1 parent 8bfac91 commit 7f3638c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.changeset/28001-cascade-delete-objects-beside-item.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
'@objectstack/spec': patch
2+
'@objectstack/spec': minor
33
'@objectstack/objectql': patch
44
'@objectstack/metadata-protocol': patch
55
'@objectstack/rest': patch
@@ -8,7 +8,8 @@
88
feat: the object read names the objects a delete can cascade into, beside the item
99

1010
Clause-②: yes (widening)
11-
Metadata-protocol: none
11+
Metadata-protocol: added
12+
Skills-docs: none — `cascadeDeleteObjects` is a served-only key beside the object read with no authorable spelling; no file under `skills/**` teaches the object read's envelope keys (a `git grep` of `skills/` for `cascadeDeleteObjects` and `disabledActions` names nothing), and every taught `deleteBehavior` use stays true.
1213

1314
- **Served beside the object** (`@objectstack/metadata-protocol`, `@objectstack/rest`). `GET /api/v1/meta/object/:name` serves `cascadeDeleteObjects` beside `item`: the names of the objects that deleting a record of this object can also delete. That is every object whose relation into it cascades (a `master_detail` by default, a `lookup` or `tree` that declares `deleteBehavior: 'cascade'`), and the objects that cascade into those in turn, each once. A `restrict` or `set_null` relation removes nothing and is not named. The default cached door carries it too, and the list is folded into that door's ETag, so an object registered later that cascades into this one changes the ETag. The key is absent where no engine answered, on a draft read, on the list read and on every type other than `object`; `[]` means nothing cascades. `item` is unchanged. A delete confirmation can now name what else a delete removes without keeping its own copy of the rule.
1415
- **The fact it serves** (`@objectstack/objectql`). `ObjectQL.getCascadeDeleteObjects(object)` answers that list from the delete walk's own relation scan, which the delete and this read now share. It reads the registry and no row, so it never says which records or how many. It returns `undefined` for an object the registry does not hold.

0 commit comments

Comments
 (0)