ocadotechnology / rapid-router

A Blockly and python based educational game aimed at students age 5-14.
https://www.codeforlife.education
Other
57 stars 74 forks source link

seed data #1293

Open razvan-pro opened 2 years ago

razvan-pro commented 2 years ago

Task Description

Whenever we need to demo Rapid Router, either at an event, conference or to teachers, we need to ensure we use an account that has enough students & RR levels data to properly showcase the features of Rapid Router. This is fine if whoever is demoing already has enough data on their machine, but for new demoers or if the local DB has been reset, then the data will need to be recreated manually which can be a painstaking process. This is because we manually need to create classes, students and then ensure that these students has varying success rates in Rapid Router, as well as creating custom levels that are shared with other students, which then need to be attempted.

It would be great if we could semi-automate this process, so that instead of creating the data manually, we could just run a script / function which would populate the local DB with that dummy data.

Acceptance Criteria

The script needs to create the following dummy data:

Base data

Main levels data

Custom levels data

Analytics Requirements

None

Copywrite Requirements

None

SKairinos commented 3 months ago

we need to create a number of fixture in the rapid router service and then run: python manage.py loaddata <fixturename>