You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(storage)!: make upload and vector options keyword-only - #2199
Positional options could swap silently: upload(path, file, "image/png") sent Cache-Control: image/png.
upload, update and upload_to_signed_url take their options keyword-only, like resumable_upload.
Vector list_buckets, list_indexes, list and the query options after topK are keyword-only too. list_buckets and list_indexes took the same options in opposite orders.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
API Changes
Optional settings for storage uploads and updates must now be passed by keyword.
Optional settings for vector bucket and index listing, and vector queries, must now be passed by keyword. Query vectors and result limits can still be positional.
Update existing calls that pass these settings positionally to use named arguments.
Documentation
Added migration guidance with examples of the updated calls.
Storage upload options and optional parameters for vector listing and query methods are now keyword-only. The query_vector and topK parameters remain positional-capable. The migration guide shows updated calls, and tests check that positional option arguments raise TypeError.
Possibly related PRs
supabase/supabase-py#1997: This PR also changes the public upload() and update() parameter contracts in the v3 Storage API.
Change: Bug fix
Merge Risk: Minimal · up to 5339c
This breaking change makes storage upload options and vector list and query options keyword-only. Callers that pass those options positionally will get a TypeError, and the migration guide documents the replacements. No merge-blocking risk remains.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: cbf1997f-02b5-4b80-bb92-938217a648fa
Commits
Reviewing files that changed from the base of the PR and between 69db287 and 5339c1f.
Files selected for processing: 5
MIGRATION.md
src/storage/src/storage3/file_api.py
src/storage/src/storage3/vectors.py
src/storage/tests/test_file_api.py
src/storage/tests/test_vector_index.py
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 0 remain after this review.
spydon
changed the title
fix(storage)!: make upload and vector listing options keyword-only
fix(storage)!: make upload and vector options keyword-only
Dec 4, 2026
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
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.
Positional options could swap silently:
upload(path, file, "image/png")sentCache-Control: image/png.upload,updateandupload_to_signed_urltake their options keyword-only, likeresumable_upload.list_buckets,list_indexes,listand thequeryoptions aftertopKare keyword-only too.list_bucketsandlist_indexestook the same options in opposite orders.SDK-3377