Skip to content

feat(storage): add storage.errors.error_codes capability - #71

Merged
mandarini merged 1 commit into
mainfrom
feat/storage-error-codes-capability
Jul 31, 2026
Merged

feat(storage): add storage.errors.error_codes capability#71
mandarini merged 1 commit into
mainfrom
feat/storage-error-codes-capability

Conversation

@mandarini

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new errors group and storage.errors.error_codes feature to capabilities/storage.yaml
  • Covers exposing the machine-readable service-specific error code (e.g. NoSuchKey, AccessDenied) returned by the Storage server on a thrown client error

Why

supabase-js PR supabase/supabase-js#2537 adds a code property to StorageApiError (inherited by StorageVectorsApiError), which the SDK compliance check flags as new public API with nowhere to register. There was no existing capability anywhere in the matrix for exposing service error codes, so this adds one. It's area-level (group: errors, no file_buckets/vector_buckets split) since the field lives on the shared error base class and applies to both.

Once this merges, supabase-js's sdk-compliance.yaml will reference storage.errors.error_codes with symbols StorageApiError.code and StorageVectorsApiError.code.

Registers a new area-level feature for exposing the machine-readable
service error code (e.g. NoSuchKey, AccessDenied) on thrown storage
errors, covering both file and vector bucket operations. Needed to
map StorageApiError.code / StorageVectorsApiError.code being added in
supabase/supabase-js#2537.
@mandarini
mandarini requested a review from a team as a code owner July 31, 2026 10:19
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5d61b018-7022-46ae-bef4-54f069085faf

📥 Commits

Reviewing files that changed from the base of the PR and between 825ab0c and 382d9cd.

📒 Files selected for processing (1)
  • capabilities/storage.yaml

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added support for machine-readable error codes across Storage file and vector bucket operations.

Walkthrough

The Storage capability manifest adds an errors capability group titled “Errors.” It also adds the storage.errors.error_codes feature. The feature documents access to service-specific error codes returned by Storage errors for file and vector bucket operations.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mandarini
mandarini merged commit fabb9a7 into main Jul 31, 2026
5 checks passed
@mandarini
mandarini deleted the feat/storage-error-codes-capability branch July 31, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants