-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent induction start dates that are too early #47
Prevent induction start dates that are too early #47
Conversation
Review app deployed to https://cpd-ec2-review-47-web.test.teacherservices.cloud |
b1407da
to
d7aa2bb
Compare
@peteryates I tested this with TRN 3002585 and a date pre-September 2021 and just got one of these: |
d7aa2bb
to
d309f30
Compare
@emily-prudence-dfe - I've fixed this and made as much of the validation overlaps between pending induction submissions and induction periods shared (rather than duplicated) so hopefully this works a bit better. |
d309f30
to
4e0d1b6
Compare
@peteryates @emily-prudence-dfe reviewed this and all looks good, re-tried with the TRN Emily had problems with and validation error appears as it should. Happy to merge. |
There's a chance we'll want to allow some earlier dates when importing so maybe we should relax this rule for the migration.
Induction periods and pending induction submissions share a lot of validation and we didn't have them perfectly aligned, which caused many bugs. This change introduces a shared place to put common validation, which should hopefully make things easier to manage in the future.
4e0d1b6
to
318f386
Compare
Review app ECF2 deployed to https://ec2-review-47-web.test.teacherservices.cloud was deleted |
I chose 1 September 2021 as the cutoff. Seems sensible but happy to change if there's a cause to be creating them before then.