-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add progress callback for transferred object keys in copy_files_from #192
Conversation
This allows us to hook the key iteration without an override for each provider transfer.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #192 +/- ##
==========================================
+ Coverage 73.41% 73.48% +0.06%
==========================================
Files 34 34
Lines 4085 4224 +139
==========================================
+ Hits 2999 3104 +105
- Misses 1086 1120 +34 ☔ View full report in Codecov by Sentry. |
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.
Small comments, overall looks good
73ae675
to
9a596fc
Compare
688c04f
to
31f4254
Compare
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.
Few small typing style nits but nothing blocking and looks great
Added callback progress_fn to copy_files_from which tracks the progress of transferred objects with completed and total files. This does not measure the number of bytes in order to avoid a provider based implementation.
31f4254
to
e030ab6
Compare
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.
Comments addressed, thank you for the contribution
About this change - What it does
This adds a callback function in
copy_files_from
, which provides the transferred object key with completed and total files.We want to measure the progress of transferred files. However measuring the amount of transferred bytes requires a provider based implementation. Therefore we measure the keys which is provider independent.