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

Update Django to 3.2 #1323

Merged
merged 11 commits into from
Aug 19, 2021
Merged

Update Django to 3.2 #1323

merged 11 commits into from
Aug 19, 2021

Conversation

kewlguy781
Copy link
Contributor

@kewlguy781 kewlguy781 commented Aug 13, 2021

Description

This PR will update the Django web application to 3.2 (which is the next LTS release)

Additional information

Changes done to work with Django 3.2:

  • We no longer can mix the numbers' data type. For example:
    billable = Coalesce(Sum('timecardobjects__hours_spent', filter=billable_filter), 0) ->
    billable = Coalesce(Sum('timecardobjects__hours_spent', filter=billable_filter), Decimal('0')) The former code set the variable as integer 0, while the rest is in Decimal. We changed it to Decimal to play nice with other variables that are already in Decimal. See Value() Changes under Model
  • Change of Autofield. They have changed the autofield to 64-bit integer. See the documentation. For now we have set it as AutoField instead of new default BigAutoField however, we will need to revisit this and migrate into database.
  • We also updated cg-django-uaa to support Django 3.2 (Special shout out to @bengerman13 for working with me)

@kewlguy781 kewlguy781 requested a review from kfoley-18F August 13, 2021 17:31
@kfoley-18F kfoley-18F requested a review from Jkrzy August 13, 2021 21:55
@kfoley-18F
Copy link
Contributor

Woohooooo!! Thank you @kewlguy781 !!!

Requesting some review of the Decimal and AutoField changes from @Jkrzy pretty please.

I'm super-excited to get this merged... ❤️

Copy link

@Jkrzy Jkrzy left a comment

Choose a reason for hiding this comment

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

This looks great! There's one small opportunity I noted to align requirements.txt with the lock file

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2021

Codecov Report

Merging #1323 (9ccab64) into main (e670d74) will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1323      +/-   ##
==========================================
+ Coverage   88.61%   88.63%   +0.02%     
==========================================
  Files          51       51              
  Lines        2222     2226       +4     
==========================================
+ Hits         1969     1973       +4     
  Misses        253      253              
Impacted Files Coverage Δ
hours/apps.py 100.00% <0.00%> (ø)
projects/apps.py 100.00% <0.00%> (ø)
employees/apps.py 100.00% <0.00%> (ø)
utilization/utils.py 95.91% <0.00%> (+0.08%) ⬆️

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 e670d74...9ccab64. Read the comment docs.

@kewlguy781 kewlguy781 merged commit 7a15dae into main Aug 19, 2021
@kewlguy781 kewlguy781 deleted the jon2 branch August 31, 2021 17:50
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.

4 participants