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): disable soft delete policy using 0 duration #11226

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

frankyn
Copy link
Member

@frankyn frankyn commented Dec 4, 2024

I found the API doesn't allow disabling Soft delete policy sending a 'nil' for raw.BucketSoftDeletePolicy field. Updated implementation to disable soft delete using 0 seconds on retention duration.

Fixes: #11199
Updates #10761

@frankyn frankyn requested review from a team as code owners December 4, 2024 23:15
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Dec 4, 2024
@frankyn frankyn changed the title fix(storage): disable soft delete policy using 0 retentionDurationSeconds fix(storage): disable soft delete policy using 0 duration Dec 4, 2024
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Should this close out the integration test failure issue as well?

@frankyn frankyn enabled auto-merge (squash) December 5, 2024 00:06
@frankyn
Copy link
Member Author

frankyn commented Dec 5, 2024

I see the change for Updates that sounds good; let's wait until we know for sure.

@frankyn frankyn merged commit f087721 into main Dec 5, 2024
9 checks passed
@frankyn frankyn deleted the fix-soft-delete-integration branch December 5, 2024 00:15
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 update
2 participants