-
Notifications
You must be signed in to change notification settings - Fork 21
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: add object restore functionality #677
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #677 +/- ##
==========================================
+ Coverage 98.69% 98.74% +0.04%
==========================================
Files 50 50
Lines 8492 8738 +246
==========================================
+ Hits 8381 8628 +247
+ Misses 111 110 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This does not add the ability to list/get soft deleted objects. Should it? |
Will add get / list operations as well. Looks easy enough. |
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.
LGTM, just have a few questions. Thanks for adding this!
blob.metadata.metageneration = 1 | ||
blob.metadata.generation = blob.metadata.generation + 1 | ||
if bucket_with_metadata.metadata.autoclass.enabled is True: | ||
blob.metadata.storage_class = "STANDARD" |
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.
Nice catch!
Fixes #654