Skip to content

feat(storage): add transfer_progress capability and spec - #282

Merged
grdsdev merged 2 commits into
mainfrom
guilhermesouza/sdk-2045-spec-transfer-progress
Oct 20, 2026
Merged

grdsdev merged 2 commits into
mainfrom
guilhermesouza/sdk-2045-spec-transfer-progress

Conversation

@grdsdev

@grdsdev grdsdev commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

New capability storage.file_buckets.transfer_progress and its spec: byte progress for uploads, updates, signed-URL uploads and downloads.

report = (bytesMoved, total: known | unknown), total fixed per transfer
  upload total   = body length known before sending
  download total = 2xx Content-Length; unknown without it or under a decoded Content-Encoding
bytesMoved never decreases within one request
final report equals total (or bytes moved); a zero-byte body gets one (0, 0)
resent upload body (retry, 307/308) → report (0, total), count again
resumable uploads → their own spec (supabase/sdk#278)

SDKs do not have to declare the new id: validate-compliance treats an undeclared feature as not_implemented, and sync-compliance adds it as such. An SDK that can only observe download bytes declares partially_implemented.

Evidence

From packages/capability-matrix: bun test 222 pass / 0 fail; bun run format-and-lint clean; bun run knip clean; bun run validate "OK — capability matrix is valid."

Merge Danger

Door: two-way

Blast Radius: registry

Adds one feature id to capabilities/storage.yaml; every SDK sees it as not implemented until it declares it.

@grdsdev
grdsdev requested a review from a team as a code owner October 15, 2026 12:36
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c63a353b-19f7-4e93-a0f7-cf369f767ba6
📥 Commits

Reviewing files that changed from the base of the PR and between e3f5c0e and ef7c126.

📒 Files selected for processing: 2
  • packages/capability-matrix/capabilities/storage.yaml
  • packages/capability-matrix/specs/storage/file_buckets/transfer_progress.md
  • 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.

❤️ Share

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

@QuintinWillison QuintinWillison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the spec for the 'final report' could be a little clearer, as it's left me wondering about the scenario when the total is unknown... would the receiver of that callback get any indication on that event that this is "the final report"? Like some kind of 'finished' indication, or perhaps for that callback to be discrete in some other way from the intermediary updates.

@grdsdev

grdsdev commented Oct 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @QuintinWillison, good catch. With an unknown total, a caller cannot spot the "final report".

I fixed the wording in ef7c126. The SDK never drops the last report, but no report marks completion. The operation does that: the upload returns or throws, and the download body ends.

I left out a "finished" flag. For an upload it would mislead, because the last report comes before the server answers, and the upload can still fail.

@grdsdev
grdsdev merged commit 1d2c1be into main Oct 20, 2026
8 of 9 checks passed
@grdsdev
grdsdev deleted the guilhermesouza/sdk-2045-spec-transfer-progress branch October 20, 2026 08:58
spydon pushed a commit that referenced this pull request Oct 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.18.0](capability-matrix/v1.17.0...capability-matrix/v1.18.0)
(2026-10-20)


### Features

* **storage:** add purge_project_cache capability
([#294](#294))
([94b4da6](94b4da6))
* **storage:** add transfer_progress capability and spec
([#282](#282))
([1d2c1be](1d2c1be))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
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.

3 participants