Repository navigation
feat(storage): delete a vector bucket - #830
Merged
Merged
Conversation
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
A caller can delete a vector bucket through the new
Vectorsentry point on the Storage client.Capability:
storage.vector_buckets.delete_vector_bucket— Delete Vector Bucket. No capability spec exists for it.Public API
IStorageVectorBucketApiis the home for the other vector capabilities; the index and vector operations will extend it.Behavior
POST {storage}/vector/DeleteVectorBucket, body{"vectorBucketName": "..."}, service-role key.vectorBucketNameis required.ArgumentExceptionfor null, empty or whitespace before any I/O. The name format is not validated client-side; the service owns it.SupabaseStorageExceptionwithStatusCode,Content,CodeandReasonset: 400S3VectorBucketNotEmpty(bucket still has indexes), 404S3VectorNotFoundException, 401/403 for a non-service-role caller (Reason.NotAuthorized), 500InternalError, and the 404 the service answers when the vector service is not enabled.Deviations from supabase-js
SupabaseStorageExceptioninstead of returning{ data, error }; returns nothing instead of{}.Vectors.DeleteVectorBucketAsync, mirroringstorage.vectors.Tests
DeleteVectorBucketContractTestsDeleteVectorBucketApprovalTestsDeleteVectorBucketTestsChanged-line coverage: 100% (19 lines). Mutation: 10/10 killed on changed lines, 0 survivors.
Notes
No E2E ran against a real service: the local stack does not serve the vector routes. The not-empty, missing-bucket, non-service-role and feature-not-enabled responses are pinned from the storage route source, not observed on a live service.
IStorageClientwas reformatted (file-scoped namespace, no BOM) because the format check rejects touched files that were not already conformant.