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

Fix breaking changes from DRF 3.10 #213

Merged
merged 1 commit into from Jul 29, 2019
Merged

Conversation

CodeHeeler
Copy link
Contributor

Django restframework 3.10.0 has introduced breaking changes
Unpinning DRF now that a drf-yasg blocker has been fixed

fixes #5125
https://pulp.plan.io/issues/5125

setup.py Outdated
'djangorestframework-queryfields',
'drf-nested-routers',
'drf-yasg',
'gunicorn',
'PyYAML',
'PyYAML>=5.1',
Copy link
Member

Choose a reason for hiding this comment

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

why does it need to be at least 5.1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DRF now pins there because of a human readability feature in OpenAPI schema generation:
encode/django-rest-framework#6680

I'm not sure if this is strictly necessary, what are your thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think it's necessary to put this minimum requirement here. Let's remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fine by me. Removed.

# needed due to https://github.com/axnsan12/drf-yasg/issues/386
consumes = multipart
import pydevd
pydevd.settrace('localhost', port=3013, stdoutToServer=True, stderrToServer=True)
Copy link
Member

Choose a reason for hiding this comment

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

This breakpoint is probably causing most of the test failures on travis.

@CodeHeeler CodeHeeler force-pushed the issue-5125 branch 2 times, most recently from 3e4a29e to 431fa28 Compare July 29, 2019 14:59
@codecov
Copy link

codecov bot commented Jul 29, 2019

Codecov Report

Merging #213 into master will decrease coverage by 0.05%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
- Coverage   67.32%   67.27%   -0.06%     
==========================================
  Files          69       69              
  Lines        3223     3224       +1     
==========================================
- Hits         2170     2169       -1     
- Misses       1053     1055       +2
Impacted Files Coverage Δ
pulpcore/app/openapigenerator.py 19.23% <0%> (-0.13%) ⬇️
pulpcore/app/viewsets/upload.py 88.52% <100%> (ø) ⬆️
pulpcore/app/viewsets/task.py 93.42% <0%> (-1.32%) ⬇️

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 ce2a964...249323e. Read the comment docs.

Django restframework 3.10.0 has introduced breaking changes
Unpinning DRF now that a drf-yasg blocker has been fixed

Required PR: pulp/pulp_file#263

fixes #5125
https://pulp.plan.io/issues/5125
Copy link
Member

@dkliban dkliban left a comment

Choose a reason for hiding this comment

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

Thank you! This looks right to me.

@dkliban dkliban merged commit 0a5608d into pulp:master Jul 29, 2019
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