You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
New Features
Added lifecycle-policy management for standard storage buckets. You can retrieve configured rules, replace them with new rules, or delete the policy.
Retrieving a bucket with no lifecycle policy returns an empty list. Updates return the stored rules, including identifiers generated by the service.
The SDK adds lifecycle rule models and StorageClient methods to retrieve, replace, and delete bucket lifecycle policies. Retrieval returns an empty list for NoSuchLifecycleConfiguration and propagates other API errors. Updates return the stored rules, including server-generated identifiers. Tests cover request and response behavior, error handling, and preservation of fields not defined by the models.
Change: Feature
Merge Risk: Minimal · up to 5879c
This adds bucket lifecycle get, update and delete operations to the storage client, with tests for the main request and response behavior. No merge-blocking risk was identified.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: aa697ba6-9c00-4f0e-8975-6f50c535a404
Commits
Reviewing files that changed from the base of the PR and between 3ad73d9 and 5879c0f.
Files selected for processing: 4
sdk-compliance.yaml
src/storage/src/storage3/client.py
src/storage/src/storage3/types.py
src/storage/tests/test_client.py
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 4 remain after this review.
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.
Adds
get_bucket_lifecycle,update_bucket_lifecycleanddelete_bucket_lifecycleto the storage client (SDK-2774).LifecycleRuleandNoncurrentVersionExpirationmodels with snake_case fields;filterdefaults to{}.get_bucket_lifecyclereturns[]when the bucket has no policy.sdk-compliance.yaml.