-
Notifications
You must be signed in to change notification settings - Fork 13
Upgrade Django to 2.2 and upgrade Django-related libraries to latest versions #676
Conversation
702f4ef
to
92466b7
Compare
I ran this with Python warnings enabled to see all deprecation warnings:
And got the following unique warnings:
which are all in libraries, not in our code, which is good. |
a71e284
to
9a9b585
Compare
Cool. It appears that most of these reference Python 3.8, which is ahead of our version (and doesn't exist in a final version until October 2019). I didn't update Dedupe or anything because that seemed like a separate set of things to test. |
33cff61
to
27d48a6
Compare
After rebuilding my VM, I set a value on OAR_CLIENT_KEY and restarted my `./scripts/server diff --git a/docker-compose.yml b/docker-compose.yml
index a769732..1f477a4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -25,7 +25,7 @@ services:
- DJANGO_SECRET_KEY=secret
- DJANGO_LOG_LEVEL=INFO
- AWS_PROFILE=${AWS_PROFILE:-open-apparel-registry}
- - OAR_CLIENT_KEY=
+ - OAR_CLIENT_KEY=clientkey
build:
context: ./src/django
dockerfile: Dockerfile The django-rest-swaggar UI is not sending the auth header There is an open issue Rolling back to |
Correction. 2.1.2 is the latest release before 2.2.0. |
I pushed 3706843 which upgrades DRF to 3.10.1 and downgrades DR-Swagger to 2.1.2 |
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 did not find any regressions when evaluating these changes on staging.
These are the library diffs I browsed through
azavea/django-amazon-ses@2.0.0...2.1.1/
azavea/django-ecsmanage@1.0.1...1.1.0
django-extensions/django-extensions@2.1.4...2.1.9
Tivix/django-rest-auth@v0.9.3...0.9.5
marcgibbons/django-rest-swagger@2.1.2...2.2.0
jazzband/django-waffle@v0.16.0...v0.17.0
mwarkentin/django-watchman@0.15.0...0.17.0
encode/django-rest-framework@3.9.4...3.10.1
We ended up not upgrading django-rest-swagger because of an incompatibility with DRF TokenAuthentication. Implementing #691 will allow us to upgrade.
I read through the incompatibility sections of the 2.1 and 2.2 Django releases
https://docs.djangoproject.com/en/2.1/releases/2.1/#backwards-incompatible-2-1
https://docs.djangoproject.com/en/2.2/releases/2.2/#backwards-incompatible-2-2
Nothing on these lists affects our application.
Thanks for checking this! Going to squish and then merge. |
- Upgrade Django to 2.2 - Upgrade some django-related libraries to the latest versions - Adjust `DEFAULT_SCHEMA_SETTING` for Django-REST-Framework so that we continue to use CoreAPI rather than OpenAPI
3706843
to
6ebe6be
Compare
Overview
I dd not upgrade libraries related to dedupe or batch processing, as I don't know how easy it is to test regressions there.
Connects #455
Demo
Testing Instructions
vagrant destroy
then./scripts/setup
and verify that everything sets up as it should./scripts/resetdb
and./scripts/server
batch_process
and verify that that still worksChecklist
fixup!
commits have been squashed