Repository navigation
Block v2 Storage creation - #399
Merged
Merged
Conversation
em3s
force-pushed
the
feat/issue-398-remove-v2-storage-metadata
branch
from
July 9, 2026 08:23
6326076 to
0ecfc61
Compare
6 tasks done
Remove the Storage create endpoint (POST /graph/v2/storage/{storage}) so
no new Storage can be minted. New labels reference storage via
datastore:// URIs; read and update of existing storages stay available.
This is Phase 1 of removing the v2 Storage type (#398). Because
GraphDefaults.getStorage already resolves both datastore:// URIs and
legacy storage names, blocking creation alone drains new labels to
datastore:// with no read-path change. The dead Storage type, DDL, and
read branch can be deleted mechanically in a follow-up once `doctor`
confirms no active label references a non-datastore:// storage.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
em3s
force-pushed
the
feat/issue-398-remove-v2-storage-metadata
branch
from
July 11, 2026 06:16
dfb136e to
279394b
Compare
1 task done
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.
Summary
Block v2
Storagecreation.POST /graph/v2/storage/{storage}is removed, so no newStoragecan be minted; new labels reference storage viadatastore://<namespace>/<table>URIs. Read and update of existing storages stay available. Phase 1 of removingStorage(#398). Breaking change for clients that create storages.Closes #398
Why create-only is enough
getStoragealready resolves bothdatastore://URIs and legacy storage names:So blocking creation is sufficient: new labels can only carry
datastore://URIs (first branch), and existing labels keep resolving via thestoragesmap (second branch). The read path is unchanged — hence this PR is 2 files, and:server:teststays green.Deleting the whole
Storagetype now would be larger and riskier: it removes thestoragessource the second branch depends on, forcing a rewrite of the read path and the in-use guard in the same change. Deferring avoids that coupling.Changes
Storagecreation (StorageControllerPOST).GET), update (PUT), theStoragetype, andgetStorageas-is — creation is simply unreachable now.Follow-up (separate PR)
Once
doctorconfirms no active label references a non-datastore://storage, the type, its DDL, and thegetStoragelegacy branch are provably dead and can be deleted mechanically.How to Test
POST /graph/v2/storage/...→ no longer routable.datastore://storage works.AI Assistance