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

feat!: Upgrading to django4.2 #266

Merged
merged 10 commits into from
Sep 22, 2023
Merged

feat!: Upgrading to django4.2 #266

merged 10 commits into from
Sep 22, 2023

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Sep 17, 2023

Upgrading to django42 and dropped django32 support.

  • PR created under the issue Django 4.2 Upgrade #244
  • verified stage and prod are using mysql8. Its django42 main requirment.
  • make migrations executed, no new migration came
  • Removed django32 from tox and gha.
  • Owning team will test and merge.

Owning team or SRE can confirm mysql8.

Testing instruction

  1. Due to sha1 removal all existing signin users will signout. So before deploying on stage login on portal designer site and after upgrading to django42 please check the behaviour. It will ask for login.

@codecov-commenter
Copy link

codecov-commenter commented Sep 17, 2023

Codecov Report

Merging #266 (3ca458f) into master (6b7b9e5) will decrease coverage by 0.02%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #266      +/-   ##
==========================================
- Coverage   84.68%   84.67%   -0.02%     
==========================================
  Files          61       61              
  Lines        1208     1207       -1     
  Branches      130      130              
==========================================
- Hits         1023     1022       -1     
  Misses        160      160              
  Partials       25       25              
Files Changed Coverage Δ
designer/settings/base.py 98.52% <ø> (-0.03%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -57,7 +57,7 @@ defusedxml==0.7.1
# python3-openid
# social-auth-core
# willow
django==3.2.21
django==4.2.5
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Version bumped to 4.2

@awais786 awais786 marked this pull request as ready for review September 17, 2023 19:59
@iamsobanjaved
Copy link
Member

We still have MySQL 5.7 on production, so we can't merge this now

@iamsobanjaved iamsobanjaved linked an issue Sep 18, 2023 that may be closed by this pull request
8 tasks
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.9
Copy link
Member

Choose a reason for hiding this comment

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

We should run make upgrade using python 3.8 virtualenv since we haven't updated to Python 3.9 yet.

@@ -118,8 +118,6 @@
root('conf', 'locale'),
)

DEFAULT_HASHING_ALGORITHM = "sha1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@iamsobanjaved iamsobanjaved left a comment

Choose a reason for hiding this comment

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

Just two changes, otherwise 👍

requirements/constraints.txt Show resolved Hide resolved
tox.ini Show resolved Hide resolved
@awais786 awais786 merged commit 4a3384e into master Sep 22, 2023
6 checks passed
@awais786 awais786 deleted the upgrade-django42 branch September 22, 2023 13:16
@awais786 awais786 restored the upgrade-django42 branch September 22, 2023 13:43
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.

Django 4.2 Upgrade
6 participants