-
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
chore: better submission status #421
Conversation
Ignore the failing tests: both frontend and backend tests succeed, Cypress fails. |
return [ | ||
{ | ||
value: (submissionsPassed / groups) * 100, | ||
value: (extraChecksPassed / groups) * 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it possible to have extrachecks passed but structure checks not? I would change this to the min of those 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That code is not extrachecks and structurechecks for a single submission, but for a whole project (PojectMeter).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should round this to the nearest integer to account for representation errors, it could happen that the meter now displays 22.3333333333331%.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, the MeterGroup component already rounds these values by default.
closes #418
structure_checks
andextra_checks
in backend instead of theis_valid
field.