Skip to content

resume upload part concurrently #440

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

Merged
merged 8 commits into from
Oct 8, 2023
Merged

Conversation

lihsai0
Copy link
Collaborator

@lihsai0 lihsai0 commented Sep 25, 2023

KODO-18759

@lihsai0 lihsai0 force-pushed the feat/resume-upload-part-concurrently branch from 5f0dbd1 to 111422a Compare September 25, 2023 07:29
----------
up_token: str
kwargs
key, file_crc32, costume_vars, metadata
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lihsai0 costume => custom

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lihsai0 file_crc32 => crc32

file_name: str
costume_vars: dict
kwargs
up_token, file_crc32
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lihsai0 file_crc32 => crc32

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

标准库和 utils 里都有 crc32 这个名字,感觉容易混淆。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file_crc32 => crc32_int

mime_type: str
metadata: dict
file_name: str
costume_vars: dict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lihsai0 costume => custom

_ResumeUploadV2Context
"""
if not isinstance(context, _ResumeUploadV2Context):
raise TypeError('context must be an instance of _ResumeUploadV1Context')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lihsai0 _ResumeUploadV1Context => _ResumeUploadV2Context

qiniu/compat.py Outdated
@@ -51,6 +51,13 @@ def s(data):
def u(data):
return unicode(data, 'unicode_escape') # noqa

def is_seekable(data):
try:
data.seek(0, 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lihsai0 1 => os.SEEK_CUR


Returns
-------
ret: dict
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dict => _ResumeUploadV2Context

@codecov
Copy link

codecov bot commented Oct 3, 2023

Codecov Report

Merging #440 (bcc1423) into master (7d6eb2d) will decrease coverage by 6.02%.
The diff coverage is 59.83%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #440      +/-   ##
==========================================
- Coverage   76.06%   70.04%   -6.02%     
==========================================
  Files          26       35       +9     
  Lines        2452     3108     +656     
==========================================
+ Hits         1865     2177     +312     
- Misses        587      931     +344     
Files Coverage Δ
qiniu/region.py 61.58% <100.00%> (-8.17%) ⬇️
qiniu/services/storage/uploaders/__init__.py 100.00% <100.00%> (ø)
qiniu/services/storage/uploaders/abc/__init__.py 100.00% <100.00%> (ø)
qiniu/utils.py 92.94% <100.00%> (+0.94%) ⬆️
qiniu/auth.py 97.50% <83.33%> (-0.56%) ⬇️
qiniu/compat.py 92.45% <77.77%> (-3.01%) ⬇️
...ices/storage/uploaders/abc/resume_uploader_base.py 94.28% <94.28%> (ø)
test_qiniu.py 95.95% <94.44%> (+0.13%) ⬆️
qiniu/services/storage/uploader.py 82.69% <85.29%> (+6.10%) ⬆️
...iu/services/storage/uploaders/abc/uploader_base.py 74.35% <74.35%> (ø)
... and 5 more

... and 4 files with indirect coverage changes

@bachue bachue merged commit f04c995 into master Oct 8, 2023
@bachue bachue deleted the feat/resume-upload-part-concurrently branch October 8, 2023 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants