Closed
Bug 980874
Opened 10 years ago
Closed 10 years ago
[remo] Prod database dump
Categories
(Data & BI Services Team :: DB: MySQL, task)
Data & BI Services Team
DB: MySQL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: giorgos, Unassigned)
References
Details
We need a prod database dump to run same data migration tests before pushing to production. Preferably today or on Monday we want to have this if possible. Host: reps.mozilla.org Because this contains some private emails can you please send it to my google drive? Thanks!
Updated•10 years ago
|
Assignee: server-ops-webops → server-ops-database
Component: WebOps: Engagement → Server Operations: Database
Product: Infrastructure & Operations → mozilla.org
QA Contact: nmaul → scabral
Comment 1•10 years ago
|
||
Moving this to the database team as they have familiarity with the rules and procedures around providing a dump of production data with PII to developers for local development and testing
Comment 2•10 years ago
|
||
Can we sanitize the emails at all? or do you need the exact data?
Comment 3•10 years ago
|
||
:sheeri, sanitizing emails is great. Thanks for asking.
Comment 4•10 years ago
|
||
I have sanitized the e-mails by doing a SHA1 hash of the e-mail address, and taking the first N letters of that as the username. N is the number of letters in the original email username. e.g. scabral@company.com becomes 0954718@company.com Here's how I did it - I imported a backup to a new db (sanitized_reps_mozilla_org), and then: use sanitized_reps_mozilla_org; UPDATE profiles_userprofile SET private_email = CONCAT(LEFT(sha1(private_email) , LOCATE('@',private_email)-1), SUBSTRING(private_email,LOCATE('@',private_email))) WHERE 1=1; UPDATE auth_user SET email = CONCAT(LEFT(sha1(email) , LOCATE('@',email)-1), SUBSTRING(email,LOCATE('@',email))) WHERE 1=1; I'll export this and get this to you post-haste.
Comment 5•10 years ago
|
||
Put up in Google Drive...resolve if it looks good!
Reporter | ||
Comment 6•10 years ago
|
||
Thanks for the quick response Sheeri!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → Data & BI Services Team
You need to log in
before you can comment on or make changes to this bug.
Description
•