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
[FEATURE] Implement TupleS3StoreBackend::get_all #9692
Conversation
✅ Deploy Preview for niobium-lead-7998 canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9692 +/- ##
========================================
Coverage 82.55% 82.55%
========================================
Files 511 511
Lines 46437 46444 +7
========================================
+ Hits 38335 38342 +7
Misses 8102 8102
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -560,10 +572,6 @@ def _get(self, key): | |||
.decode(s3_response_object.get("ContentEncoding", "utf-8")) | |||
) | |||
|
|||
@override |
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.
Moved up to be with its friend _get
@@ -543,13 +543,25 @@ def _build_s3_object_key(self, key): | |||
return s3_object_key | |||
|
|||
def _get(self, key): | |||
client = self._create_client() |
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.
Hmm do we not create this during init?
@override | ||
def _get_all(self) -> list[Any]: | ||
"""Get all objects from the store. | ||
NOTE: This is non-performant because we download each object separately. |
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.
Is there any reference to docs/code we can put here?
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.
good call. Updated.
See title. This is query is non-performant because
bucket.objects
only exposes methods to get ObjectSummaries, rather than the objects themselves. Here are the docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3/bucket/objects.html#objects.invoke lint
(usesruff format
+ruff check
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!