This PR adds functionality to automatically put our seed students into "dummy" classes when they are created. To accomplish this, I created a DummyClass table whose entries have the form (story_name, class_id) - this way, we can do the same sort of testing for future stories. When a seed student is added to this class, a random number between 20 and 30 is generated. If the current dummy class exceeds this size, a new dummy class is created and the student is assigned to that instead. This new dummy class will be used until it fills up, and so on.
All of these dummy classes are assigned to educator ID 0, which is just a 'sentinel' value that I've put into our database that we can use to identify these.
This PR adds functionality to automatically put our seed students into "dummy" classes when they are created. To accomplish this, I created a
DummyClass
table whose entries have the form (story_name
,class_id
) - this way, we can do the same sort of testing for future stories. When a seed student is added to this class, a random number between 20 and 30 is generated. If the current dummy class exceeds this size, a new dummy class is created and the student is assigned to that instead. This new dummy class will be used until it fills up, and so on.All of these dummy classes are assigned to educator ID 0, which is just a 'sentinel' value that I've put into our database that we can use to identify these.