Closed Bug 1253269 Opened 8 years ago Closed 8 years ago

make it easier to fix account for use

Categories

(developer.mozilla.org Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

When we pull down an anonymized db dump and load it into a dev environment database, it's impossible to log in with an existing account with Persona until you've fixed the data for that account in the db. This is because the data has been anonymized and that process involves removing all email addresses and wiping the socialaccount_socialaccount able among other things.

In order to fix the account, you have to create an entry in socialaccount_socialaccount, fix the email address for the user in auth_user, fix the email address in account_emailaddress and then sacrifice a tree frog that's not too big and not too small. Acquiring a tree frog is difficult depending on the season and the rest is a pain in the ass.

This bug covers writing a management command to do it.
Grabbing this since I wrote it already.
Assignee: nobody → willkg
Status: NEW → ASSIGNED
In a PR: https://github.com/mozilla/kuma/pull/3805

This only works with Persona accounts. I tried to do the least amount of work possible. It's "clever" enough that if you run it twice, it doesn't do anything bad.
Commits pushed to master at https://github.com/mozilla/kuma

https://github.com/mozilla/kuma/commit/556b84a419bffe80da7e73390ebdab330e2498d0
Fix bug 1253269: Add fixaccount command

This command fixes an account in an anonymized database so that you
can use it to log in with in a dev environment.

https://github.com/mozilla/kuma/commit/927e3a5d127315ff95e22ee233d406976fc258f7
Fix bug 1253269: Fix issues from pr comments

https://github.com/mozilla/kuma/commit/aab14847e74737a51def381bf7ce333eef92859f
Merge pull request #3805 from mozilla/1253269-fixaccount

Fix bug 1253269: Add fixaccount command
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.