Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: integrate disable Lifecycle rule api for to remove lifecycle rule of bucket #28
feat: integrate disable Lifecycle rule api for to remove lifecycle rule of bucket #28
Changes from all commits
a73af3e
22351d8
2332a13
e1bc3ab
42c932c
f635369
bd15eed
32a716e
1e4b71c
affa5e1
08e5c39
5918c7e
398a771
d48d6b6
9e4d3fe
57045a3
dd3a276
f722f70
4d273fe
c3b1e81
6a9da63
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Following up, did you try deleting a single lifecycle rule?
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.
@frankyn
I have tried to find the feasible way to delete a single lifecycle rule but its look like there is no possible way to do that and also found that across all the languages have same behavior which we have currently implemented.
Suggestion
I think we should have to update the method name like
clearLifecycleRules
ordisableLifecycleRules
instead ofdeleteLifecycleRules
to be more clear,deleteLifecycleRules
might confused to user.we can also place a
Note
there like delete individual rules through the console because currently this library have limited support to delete rule.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.
Hi @athakor, apologies for the delay.
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.
Did this help? I think we can merge this change once you add a helper to Storage interface but no change is required for StorageRpc.java.
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.
@frankyn thanks for this, I tried your sample code but its not working please check the below response.
does it works on your end? i think bucket lifecycle rule's not updated properly.
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.
storage.delete(bucketName)
is clean up for the example and not required by remove lifecycle rule.Please let me know if there is still confusion with the workaround. In short, the library should not require the workaround.
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.
@frankyn thanks for the clarification. It's works i will raise separate PR by adding these helper to Storage interface.
Thank you for your help.
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.
Thank you! I appreciate your patience.
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.
@athakor I might be confused, you're going to close this PR and make another right?
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, will close this once newly created PR gets Approved