ucldc / public_interface

Calisphere public interface source code (UCLDC Project) master branch should match live site
https://calisphere.org/
2 stars 5 forks source link

Upgrade to Django 3.2 #316

Closed amywieliczka closed 7 months ago

amywieliczka commented 7 months ago

[This PR is paired with: https://github.com/ucldc/exhibitapp/pull/31]

Also ran a survey of requirements.txt and upgraded/removed some low-hanging fruit:

Removed python2 to python3 compatibility layers:

Removed exhibitapp dependencies; instead, we should prefer the requirements.txt file in that repository: https://github.com/ucldc/exhibitapp/blob/main-3.2/requirements.txt - I think this will require an update to our CodeBuild buildspec, though, because beanstalk only installs one requirements.txt file in the root of the application version.

These were some easy version bumps with no need for codebase changes:

These packages were already at their most current versions (which are quite old):

Finally, I skipped over any upgrades to redis packages django-redis v4.7.0 (most recent version 5.4.0), redis v2.10.5 (most recent version 5.0.3), hiredis v0.2.0 (most recent version 2.3.2) - these were all big version jumps, and I don't have a complete understanding of how exactly Calisphere and Django use redis.

I also skipped upgrades to aws-xray-sdk 0.93. This was a major jump to v2.13.0, and I don't understand how Calisphere is related to AWS X-Ray.

I also skipped upgrades to other critical underlying packages - mysqlclient 1.3.12 (most recent version is 2.2.4), elasticsearch 7.13.4 (most recent version is 8.13.0), and django-statis-sitemaps 4.2.1 (most recent version is 5.0.0). Since these are all major version upgrades that are also critical to our application, I'd like to perform those upgrades in isolation.