Repository navigation
feat(storage): add transfer_progress capability and spec - #282
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 2
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. Comment |
QuintinWillison
left a comment
There was a problem hiding this comment.
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.
|
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. |
🤖 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>
Summary
New capability
storage.file_buckets.transfer_progressand its spec: byte progress for uploads, updates, signed-URL uploads and downloads.SDKs do not have to declare the new id:
validate-compliancetreats an undeclared feature asnot_implemented, andsync-complianceadds it as such. An SDK that can only observe download bytes declarespartially_implemented.Evidence
From
packages/capability-matrix:bun test222 pass / 0 fail;bun run format-and-lintclean;bun run knipclean;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.