Skip to content

feat(storage): support delete source objects on compose#34665

Open
nidhiii-27 wants to merge 2 commits into
mainfrom
compose-delete-source-ruby
Open

feat(storage): support delete source objects on compose#34665
nidhiii-27 wants to merge 2 commits into
mainfrom
compose-delete-source-ruby

Conversation

@nidhiii-27

Copy link
Copy Markdown

Updates compose file sample to support deleting source objects optionally. Fixes b/441557254

Updates compose file sample to support deleting source objects optionally. Fixes b/441557254

[Generated-by: AI]
@nidhiii-27 nidhiii-27 marked this pull request as ready for review June 25, 2026 14:34
@nidhiii-27 nidhiii-27 requested review from a team and yoshi-approver as code owners June 25, 2026 14:34
refute_nil bucket.file remote_file_name
end

it "compose_file with delete_source_objects" do

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.

Nit: For resiliency against edge cases, it would be awesome to add a test to cover how the client behaves if a compose operation fails midway (ex. due to a transient API error). Otherwise LGTM!

@@ -431,6 +431,26 @@ def mock_cipher.random_key
refute_nil bucket.file remote_file_name

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.

Nit: What do you think about asserting that the source files remain intact in this default test block above? I looked at the previous PR that adds in the delete_source_objects param and I'm wondering if we can add an extra check to validate the delete_source_objects: false value doesn't accidentally delete the source files.

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