-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: limit inventory by prefix #43
Conversation
📝 WalkthroughWalkthroughThe pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant SO as StorageObject
participant SB as S3Bucket
SO->>SB: Retrieve S3 bucket (s3bucket())
SO->>SB: Call objects.filter(Prefix=os.path.dirname(self.key))
SB-->>SO: Return filtered list of objects
SO->>SO: Process returned objects in inventory method
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
snakemake_storage_plugin_s3/__init__.py
(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.py`: Do not try to improve formatting. Do not suggest ...
**/*.py
: Do not try to improve formatting.
Do not suggest type annotations for functions that are defined inside of functions or methods.
Do not suggest type annotation of theself
argument of methods.
Do not suggest type annotation of thecls
argument of classmethods.
Do not suggest return type annotation if a function or method does not contain areturn
statement.
snakemake_storage_plugin_s3/__init__.py
🔇 Additional comments (1)
snakemake_storage_plugin_s3/__init__.py (1)
7-7
: Good addition of required importAdding the
os
module import is necessary for theos.path.dirname()
function used in the updated code.
Okay this should be good to go |
🤖 I have created a release *beep* *boop* --- ## [0.3.0](v0.2.13...v0.3.0) (2025-03-11) ### Features * allow specification of location (e.g. AWS region) ([#38](#38)) ([c78fa78](c78fa78)) ### Bug Fixes * limit inventory by prefix ([#43](#43)) ([f9331e8](f9331e8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
resolves #24
Summary by CodeRabbit