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

HP-2260 | Add new session serializer for Django 5.0 support #93

Merged
merged 4 commits into from
Mar 4, 2024

Conversation

charn
Copy link
Contributor

@charn charn commented Mar 4, 2024

This PR adds a new session serializer class, which is capable of serializing an expected datetime field in the session data. SOCIAL_AUTH_PIPELINE provided by this package needs to be able to handle a datetime field in the session data. Django 5.0 removes PickleSerializer which was deprecated earlier.

This PR also drops support for old (unsupported) Python and Django versions and adds Python 3.12 and Django 5.0 to tox tests.

charn added 3 commits March 2, 2024 00:44
Remove versions	of Django and Python from tests	which
do not receive updates any longer.

Refs: HP-2260
Django 5.0 removes PickleSerializer which was deprecated in
Django 4.1. SOCIAL_AUTH_PIPELINE provided by this package needs to
be able to handle a datetime field in the session data.

Refs: HP-2260
@charn charn requested a review from a team March 4, 2024 07:57
@danipran
Copy link
Contributor

danipran commented Mar 4, 2024

Need to drop Python 3.7 from the test workflow: https://github.com/City-of-Helsinki/django-helusers/blob/master/.github/workflows/test.yml#L17

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.21%. Comparing base (e6d06a5) to head (e300ae2).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   55.58%   56.21%   +0.62%     
==========================================
  Files          30       31       +1     
  Lines        1047     1062      +15     
==========================================
+ Hits          582      597      +15     
  Misses        465      465              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@nicobav nicobav left a comment

Choose a reason for hiding this comment

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

:shipit:

@charn charn merged commit a659a0f into master Mar 4, 2024
7 checks passed
@charn charn deleted the HP-2260-unpickled branch March 15, 2024 07:18
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.

3 participants