-
Notifications
You must be signed in to change notification settings - Fork 550
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
feat(storage): add support for soft delete #25340
Conversation
eab9373
to
edd38d5
Compare
The acceptance test failures are not related to this PR. I'll fix them in separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of suggestions in tests, but LGTM.
google-cloud-storage/test/helper.rb
Outdated
enable_object_retention: nil | ||
enable_object_retention: nil, | ||
effective_time: DateTime.now, | ||
retention_duration_seconds: 604800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming this number indicates a 7 day retention period? Maybe append a comment like you did for acceptance tests:
retention_duration_seconds: 604800 # 7 days
google-cloud-storage/test/helper.rb
Outdated
}.delete_if { |_, v| v.nil? } | ||
end | ||
|
||
def soft_delete_policy_object retention_duration_seconds: 604800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as mentioned previously about documenting it as 7 days.
Add support for soft delete.
The operations we need are:
closes: #24793