Skip to content
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 support for chunked uploads #18

Merged
merged 1 commit into from
Mar 5, 2019
Merged

Conversation

daviddavis
Copy link
Contributor

@daviddavis daviddavis force-pushed the issue4196 branch 2 times, most recently from 750b7d5 to 50749ea Compare March 4, 2019 19:16
@daviddavis daviddavis force-pushed the issue4196 branch 2 times, most recently from fb1b8c1 to 701deed Compare March 4, 2019 19:39
@codecov
Copy link

codecov bot commented Mar 4, 2019

Codecov Report

Merging #18 into master will decrease coverage by 1.68%.
The diff coverage is 76.08%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #18      +/-   ##
==========================================
- Coverage    76.2%   74.52%   -1.69%     
==========================================
  Files          64       65       +1     
  Lines        2824     2865      +41     
==========================================
- Hits         2152     2135      -17     
- Misses        672      730      +58
Impacted Files Coverage Δ
pulpcore/app/settings.py 97.77% <ø> (ø) ⬆️
pulpcore/app/serializers/__init__.py 100% <ø> (ø) ⬆️
pulpcore/app/urls.py 92.18% <100%> (+0.25%) ⬆️
pulpcore/app/views/__init__.py 100% <100%> (ø) ⬆️
pulpcore/app/viewsets/content.py 89.47% <100%> (ø) ⬆️
pulpcore/app/models/content.py 66.42% <100%> (+0.75%) ⬆️
pulpcore/app/views/upload.py 100% <100%> (ø)
pulpcore/app/models/__init__.py 100% <100%> (ø) ⬆️
pulpcore/app/files.py 78.78% <22.22%> (-21.22%) ⬇️
pulpcore/app/serializers/content.py 90% <80%> (-2.96%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14f4be9...3b83507. Read the comment docs.

validated_data (dict): Data to save to the database
"""
artifact = super().create(validated_data)
if hasattr(self, 'upload'):
Copy link
Member

Choose a reason for hiding this comment

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

I would think that the upload attribute is always there. However it's value is None or HyperlinkedRelatedField. Is my understanding correct? In that case I would check if self.upload is None or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the upload attribute gets optionally created in the validate method. See line 173 above.

@daviddavis daviddavis merged commit 7917eb5 into pulp:master Mar 5, 2019
@daviddavis daviddavis deleted the issue4196 branch July 8, 2021 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants