jac-uk / digital-platform

Firebase/GCP configuration and components for our digital platform
MIT License
2 stars 1 forks source link

Clean Data On Develop #1132

Open drieJAC opened 2 months ago

drieJAC commented 2 months ago

Background

Data in the Develop database is mostly out of date and can cause warnings/errors to display where they shouldn't.

User Story

As a developer/tester I want to have an accurate set of data to test with on Develop

Feature(s) Description

  1. Backup develop db
  2. Clear existing data on develop using nodescript => empty the collections but leave the collections themselves there.

applicationRecords applications applications_temp assessments bugReports candidateForms candidates customReports exercises exercises_temp invitations messages notes notifications panellists panels userInvitations vacancies meta (change counts to 0)

  1. Can we also empty all of the collections with '_deleted' at the end of their names?
  2. Create sample exercises for (legal, non-legal, leadership, leadership non-legal) and add the following to their name ‘TEMPLATE - DO NOT EDIT’. These will become templates which can easily be copied to initialise new exercises.