Commit 551f899
`MetadataFacade.unregisterPackage` and `SchemaRegistry.uninstallPackage` both
reached only `objectContributors`, so every non-object item a package shipped —
`page`, `view`, `flow`, `app`, `api` … — stayed registered and fully resolvable
after the package was gone, and the facade additionally orphaned the
generic-map half of the package's objects.
Measured before writing: after `uninstallPackage('crm')` the package record was
gone while `getItem('page', 'home')` kept serving the uninstalled package's page
and `metadata.get('flow')` still held `crm:onboard`. Both callers share the gap,
which is why the new verb sits on `SchemaRegistry` rather than privately on the
facade — a facade-local scan would have been a second expression of the same
package-ownership rule and would have left the registry-direct caller half-done.
`unregisterItemsByPackage(packageId)` is scoped to composite `${packageId}:${name}`
keys, the exact inverse of `registerItem`'s construction. Bare-key ADR-0005
runtime/DB overlays are deliberately kept — they are tenant-authored and an
uninstall does not delete tenant data — and the orphan that leaves behind is made
loud rather than silently deleted or silently kept, following ADR-0029 D9.5. What
nothing yet does with that report is filed as #7951.
In both callers the sweep runs after the object verb, which can refuse on
ADR-0029 extenders, so a refused uninstall removes nothing at all.
Claude-Session: https://claude.ai/code/session_01BtbjfNQKy7DXqNF7Y26vmP
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 627e65a commit 551f899
4 files changed
Lines changed: 514 additions & 1 deletion
File tree
- .changeset
- packages/objectql/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
262 | 284 | | |
263 | 285 | | |
264 | 286 | | |
| 287 | + | |
265 | 288 | | |
266 | 289 | | |
267 | 290 | | |
| |||
0 commit comments