-
Notifications
You must be signed in to change notification settings - Fork 193
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
MPP-3390: Update django-allauth to 0.60.0 #4246
Conversation
c5f6e42
to
17fed21
Compare
17fed21
to
f9306da
Compare
Force-push to rebase and add 0.60.0 update. |
f9306da
to
ac63fa0
Compare
All historical accounts that arrived from FxA have emails that were verified before the Relay account was created. Before django-allauth 0.55.0, Relay ignored email verification.
With this update, a provider that has a database-backed SocialApp (for example, for OpenID client credentials) needs to be initialized with that SocialApp. Switch to using the socialaccount app adapter to load the FirefoxAccountProvider, and setup the SocialApp in tests. With this update, non-null provider_id and settings fields are added to the socialaccount_socialapp table. This is OK as long as a new social app is not added during a database migration. For Relay testing, add a migration with default values.
This release requires a new allauth middleware
We added indexes on upper(email) for the account_emailaddress and auth_user tables. The upper(email) index for account_emailaddress was also added by django-allauth in 0.56.0. This migration removes Relay's copy of that index.
ac63fa0
to
e496846
Compare
With PR #4177 merged, this is ready for review. |
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.
Code looks almost 100% good but I have a blocking concern/question on the migration that removes the index.
Spot-checks: sign-up with a new account works, and sign into existing account works too.
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.
Thanks @groovecoder. I've made the suggested test changes and answered some questions about the migrations.
This updates django-allauth from 0.54.0 to 0.59.0 for MPP-3390.
Changes needed for upgrades:
provider_id
andsettings
, were added tosocialaccount_socialapp
to support OpenID providers in the Django admin. These are both non-nullable with Django-level defaults. A new migration adds database-level defaults for our migration tests.terms_accepted_view
, which was manually creating aFirefoxAccountsProvider
in order to create a new account.SocialApp
is now needed for some tests which previously did not need them.request
in a global context, so the code doesn't need to pass it around as much.