feat(objectql): adopt orphaned metadata into a base — ADR-0070 D5 migration#2301
Merged
Conversation
…ration protocol.reassignOrphanedMetadata bulk-rebinds package-less orphans (null/''/ sys_metadata) onto a target base, leaving owned rows untouched. + POST /packages/:id/adopt-orphans. +tests. Migration affordance to retire the Local/Custom stopgap scope (D5). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 2 package(s): 25 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ADR-0070 D5 — the migration affordance that retires the pre-package-first stopgaps.
protocol.reassignOrphanedMetadata— bulk-rebinds every package-less orphan (package_idnull /""/ thesys_metadatasentinel) onto a target base; already-owned rows are untouched.POST /packages/:id/adopt-orphans— "move all loose items into this base".Once an env runs this and has no orphans, objectui can drop the "Local / Custom" scope from the selector (the UI side of D5 + the D6 single-tenant guardrail) — a follow-up objectui change. Pairs with D1 (
writable_package_required) which already stops NEW orphans.Tests
@objectstack/objectqlgreen incl. newreassignOrphanedMetadatatests (rebinds null/""/sys_metadata, leaves owned rows, no-orphans → count 0).tscclean. Stacked on D4 (#2299, merged) then rebased — diff is D5-only.🤖 Generated with Claude Code