Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Admin interface should disallow entering illegal values for party duedates. #60
I'm working on #59, and I've come up with a solution that's pretty solid. We get assertion errors early if we mix up types, and this exposed the fact that our database has non-duedates in the Party table's last/first duedate columns. The Admin UI allows entering arbitrary dates, and it's annoying (if not impossible) to specify the due date exactly.
The admin UI ought to ensure that only legal values enter the database. The simple thing would be to just call duedate() on the result; it may not be worth doing more than that until we get around to re-vamping the admin UI.