Skip to content

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

Merged
gcf-merge-on-green[bot] merged 2 commits intogoogleapis:mainfrom
tritone:soft-delete-fix
Jun 19, 2024
Merged

fix(storage): allow empty soft delete on Create#10394
gcf-merge-on-green[bot] merged 2 commits intogoogleapis:mainfrom
tritone:soft-delete-fix

Conversation

@tritone
Copy link
Copy Markdown
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 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
@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