Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): allow empty soft delete on Create #10394

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

tritone
Copy link
Contributor

@tritone tritone commented Jun 18, 2024

Currently setting an empty soft delete policy to disable the feature does not work on bucket creation (only update). This fixes the issue by forcing the library to send a zero value in this case (sending a null does not seem to work).

Also adds this case to the relevant integration test.

Fixes #10380

Currently setting an empty soft delete policy to disable the
feature does not work on bucket creation (only update). This fixes
the issue by forcing the library to send a zero value in this
case (sending a null does not seem to work).

Also adds this case to the relevant integration test.

Fixes googleapis#10380
@tritone tritone requested review from a team as code owners June 18, 2024 23:57
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jun 18, 2024
@tritone tritone added the automerge Merge the pull request once unit tests and other checks pass. label Jun 19, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit d8bd2c1 into googleapis:main Jun 19, 2024
8 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storage: SoftDeletePolicy is not getting disabled on bucket creation
2 participants