-
Notifications
You must be signed in to change notification settings - Fork 172
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
Check that the events and rounds in the submitted results json match the events page #2984
Comments
There's also the possibility that not all events have results - some event was not held at the competition. |
Gathering some notes to myself, mostly to not forget them and eventually get feedback if I'm stating something dumb:
|
Interestingly, the validation currently written here is wrong. I found this out while working on checking the results: according to our validation method the result with id 2222070 is not valid, but it's actually correct!
Average is 5013.66, average in the db: 5014, average expected by the validation: 5013. @SAuroux could you please confirm that in such cases the expected average is 5014? So I'm pretty sure we never run these validations otherwise we would have found this out a long time ago :p |
Hm, what kind of check is this and were should it be executed in theory? Of course, the average should be 5014 in accordance with https://www.worldcubeassociation.org/regulations/#9f1 |
… of integer division. @viroulep noticed this bug in thewca#2984 (comment).
… of integer division. @viroulep noticed this bug in #2984 (comment).
Currently, it's possible for a delegate to submit results for a competition that do not match the information they put in the events page. Ways in which things could differ:
Additional checks in "persons":
We should check for these discrepancies at the time a delegate attempts to submit results. This will save the results team from detecting these issues and wasting time communicating with the delegate about these mistakes.
The text was updated successfully, but these errors were encountered: