sfbrigade / compass

https://compass-chi.vercel.app
12 stars 12 forks source link

IEP check within schema #337

Open katconnors opened 4 weeks ago

katconnors commented 4 weeks ago

-check inside the schema

Originally posted by @KCCPMG in https://github.com/sfbrigade/compass/pull/335#pullrequestreview-2097335164

KCCPMG commented 4 weeks ago

Add a check to the IEP table schema in initial_migrations to make sure that the end_date is always greater than or equal to the start_date. This issue should include two quick tests on the student router in student.test.ts, one on addIep and one on editIep, both to ensure that a an iep cannot be submitted when an end date is earlier than a start date, and that the correct postgres error is thrown if this is attempted.