avram / qbsql

Quizbowl stats tracking
http://quizbowl.gimranov.com/
GNU General Public License v2.0
1 stars 0 forks source link

Sanity checking for round input #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There are some basic sanity checks we can do for rounds:
1. Do any players have more tossups heard than the total tossups heard?
2. Is the number of tossups possible?

This could be done both in PHP and in the UI, with some JavaScript. The
same JavaScript could also auto-fill TUH when the round TUH is changed.

Original issue reported on code.google.com by ajlyon on 11 Feb 2009 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by ajlyon on 28 Nov 2009 at 6:23

GoogleCodeExporter commented 9 years ago
As of r68, we have non-enforced data integrity assertions, in the function
verify_game(..). The logged-in user is notified of problematic data when 
viewing game
details and after submitting new or updated game stats.

It would still be nice to do some of this in JavaScript, but this will probably 
do
well enough for now.

Original comment by ajlyon on 3 Dec 2009 at 5:24

GoogleCodeExporter commented 9 years ago
r81 implements basic JavaScript checks: that the total score is a multiple of 
5, that
no team played more than 4 * numTUsHeard, that the total number of negs by both 
teams
is not greater than the number of questions read, and that the total number of 
TUs
answered by both teams is not greater than the number of questions read.

Original comment by ratiocin...@gmail.com on 17 Jan 2010 at 10:05

GoogleCodeExporter commented 9 years ago
r86 and r81 close this. Other JavaScript-based improvements should be entered as
separate tickets.

Original comment by ajlyon on 20 Jan 2010 at 1:54