-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Deleting all versions of objects #9637
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
base: s3-delete-versions
Are you sure you want to change the base?
Conversation
99de066
to
979808e
Compare
979808e
to
cf2392e
Compare
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.
Let's also generate a changelog entry.
looks good overall, a few questions/requests
cab6975
to
a8c88b5
Compare
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
@@ -0,0 +1,5 @@ | |||
{ | |||
"type": "enhancement", | |||
"category": "s3", |
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.
non-blocking nit: ``s3`` for fomatting.
e02c3f9
to
f9a1810
Compare
Adding response to delete handler
Updated comments Remove BucketLister class Added change logs Modifying S3 Handler Format display message Changing names of the class changing to marked down
f9a1810
to
4fb3893
Compare
@@ -89,7 +96,10 @@ def __call__(self, transfer_manager, result_queue): | |||
command_result_recorder = CommandResultRecorder( | |||
result_queue, result_recorder, result_processor | |||
) | |||
|
|||
if self._requires_batch_handler(): |
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 not 100% sure about adding logic to change the type returned. In the function signature it says:
:returns: A S3TransferHandler instance
Does a BatchS3TransferHandler
act like the existing S3TransferHandler
?
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.
Yes, but BatchS3TransferHandler
will handler batching operations
Issue :#4070
Description of changes:
Added a flag for deleting all versions of an object present in a versioned-enable bucket. For dealing with versions, a
list-object-versions
api is called to get theversion ids
as well asdelete markers
of the objects. Once the object and their version ids are retrieved, then a batch of objects with their version id is created which is passed todelete-objects
api for deletion.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.