stevebrownlee / learn-ops-client

Learning Platform client application for students and instructors. Tracks student data as they progress through their core and technical learning objectives.
1 stars 8 forks source link

Process to export, scrub, and anonymize data #46

Open stevebrownlee opened 1 year ago

stevebrownlee commented 1 year ago

Currently, there is a fixture named complete_backup.json that is a snapshop of the database used to work locally. There needs to be an automated process that can take a snapshot of the database at any time and perform all of the following tasks that anonymize the data for use in a local dev environment.

The following changes were made manually in the current file.

  1. Allslack_handle values changed to the id of the #testing channel.
  2. All github_handle values changed to "student"
  3. All student names were replaced with randomly generated names from Faker.
  4. Erased token value in all socialaccount.socialtoken objects.
  5. Erased token_secret value in all socialaccount.socialtoken objects.

Other tasks

Additionally, the following task needs to be done

  1. Make all extra_data objects the same fake data.