Skip to content

feat(storage)!: add copy and move options and return the object id from upload - #2104

Merged
spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-2777-storage-copy-move-options
Nov 17, 2026
Merged

spydon merged 2 commits into
mainfrom
lukasklingsbo/sdk-2777-storage-copy-move-options

Conversation

@spydon

@spydon spydon commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

copy and move gain destination bucket and metadata options, and uploads return the object id.

  • copy(..., destination_bucket=, upsert=, copy_metadata=, metadata=, cache_control=, content_type=, content_encoding=); the overrides require copy_metadata=False.
  • move(..., destination_bucket=).
  • Breaking: UploadResponse is now id, path, full_path, version instead of Key. Returned by upload, update, upload to signed URL and copy.
  • copy_cross_bucket and move_cross_bucket marked implemented in sdk-compliance.yaml.

SDK-2777

…om upload

UploadResponse now has id, path, full_path and version instead of Key.

Refs SDK-2777
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added support for copying and moving files between buckets.
    • Copying files now supports upsert behavior and options for copying or overriding metadata and content settings.
    • Upload and copy results now include file paths and may include an object ID and version.

Upload responses now include the request path and full path, with nullable ID and version fields. Copy and move accept an optional destination bucket. Copy also supports upsert, metadata-copy control, and metadata and content overrides. Tests cover response parsing, request options, and synchronous and asynchronous copy and move behavior.

Change: Feature

Merge Risk: Minimal · up to 04915

This change adds copy and move options and reshapes the upload response, with a documented breaking change. The supplied evidence shows no concrete merge-blocking risk.

- [ ] 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e9708fb2-dbee-4c8f-897a-49e52a622d69
Commits

Reviewing files that changed from the base of the PR and between bcd6542 and 0491516.

Files selected for processing: 6

  • MIGRATION.md
  • sdk-compliance.yaml
  • src/storage/src/storage3/file_api.py
  • src/storage/tests/_async/test_client.py
  • src/storage/tests/_sync/test_client.py
  • src/storage/tests/test_file_api.py
Files with no reviewable changes: 1

  • sdk-compliance.yaml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 2 remain after this review.

@spydon
spydon merged commit a0797de into main Nov 17, 2026
26 checks passed
@spydon
spydon deleted the lukasklingsbo/sdk-2777-storage-copy-move-options branch November 17, 2026 08:55
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.

1 participant