csmberkeley / scheduler

For managing our students, mentors, and sections
MIT License
8 stars 5 forks source link

Update the seed so it includes Data8 and excludes lecture times. #33

Closed attang closed 8 years ago

attang commented 8 years ago

Currently the seed does not include the Data8 course. Adding this new course will allow students to sign up for Data8 group tutoring.

These sections will be 30 minutes long, starting every hour and in between every hour, from 10 am to 5 pm.

Additionally, we want to exclude sections that overlap with lecture. Update the courses so that they don't include sections that overlap with lecture time, including sections that start in the middle of lecture. Ideally, putting variables at the top of the seeds file that we can store the lecture times would be nice, so we can just change these variables at the beginning of each semester.

CS61A Lecture Time: MWF 2-3 pm CS61B Lecture Time: MWF 3-4 pm CS70 Lecture Time: TH 12:30 - 2 pm Data8 Lecture Time: MWF 10-11 am

Relevant files

Running rake db:drop; rake db:migrate; rake db:seed and then starting the server should give us the desired results. No manually clicking on the application to add sections or courses.