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
Conversation
setup.py
Outdated
| 'djangorestframework-queryfields', | ||
| 'drf-nested-routers', | ||
| 'drf-yasg', | ||
| 'gunicorn', | ||
| 'PyYAML', | ||
| 'PyYAML>=5.1', |
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.
why does it need to be at least 5.1?
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.
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?
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.
I don't think it's necessary to put this minimum requirement here. Let's remove it.
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.
Fine by me. Removed.
83a8bb2
to
9cc7ebc
Compare
pulpcore/app/openapigenerator.py
Outdated
| # needed due to https://github.com/axnsan12/drf-yasg/issues/386 | ||
| consumes = multipart | ||
| import pydevd | ||
| pydevd.settrace('localhost', port=3013, stdoutToServer=True, stderrToServer=True) |
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.
This breakpoint is probably causing most of the test failures on travis.
3e4a29e
to
431fa28
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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
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.
Thank you! This looks right to me.
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