-
Notifications
You must be signed in to change notification settings - Fork 93
feat: integrate disable Lifecycle rule api for to remove lifecycle rule of bucket #28
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a73af3e
feat: integrate disabling Lifecycle rule api for to removing lifecycl…
athakor 22351d8
feat: code refactor and added method level java doc with example
athakor 2332a13
feat: add unit test and resolve used undeclared dependencies warnings
athakor e1bc3ab
feat: fix methods name
athakor 42c932c
feat: fix formatter and fix method name in unit test
athakor f635369
feat: all the notes has been resolved
athakor bd15eed
build: ignore clirr related errors
athakor 32a716e
fix: fix review changes
athakor 1e4b71c
feat: use default service account to generate accesstoken
athakor affa5e1
build: fix unused declared dependencies
athakor 08e5c39
feat: use defaul service account creadential and add testcase for del…
athakor 5918c7e
feat: modified the code
athakor 398a771
build: fix windows related builds
athakor d48d6b6
fix: resolve conflicts
athakor 9e4d3fe
build: fix deps build
athakor 57045a3
feat: code refactoring
athakor dd3a276
feat: uncomment the prepareKmsKeys
athakor f722f70
feat: update method name in HttpStorageRpcSpans and remove unused code
athakor 4d273fe
feat: fix the typos
athakor c3b1e81
fix: review changes
athakor 6a9da63
build: fix lint error
athakor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: code refactoring
- Loading branch information
commit 57045a398990f30c5808d70b756b36a6f1bc973a
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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?
Uh oh!
There was an error while loading. Please reload this page.
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
clearLifecycleRulesordisableLifecycleRulesinstead ofdeleteLifecycleRulesto be more clear,deleteLifecycleRulesmight confused to user.we can also place a
Notethere 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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.
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