FirstLegoLeague / fllscoring

FLL Scoring app. See Demo:
http://firstlegoleague.github.io/fllscoring/
GNU General Public License v2.0
14 stars 19 forks source link

Common ranking #295

Closed poelstra closed 6 years ago

poelstra commented 6 years ago

Part of #245: Move Ranking computation to common code (used by ng-scores or a new ng-ranking service)

All tests pass for each commit.

The first few commits are only refactors, no functional changes. The last 2 fix two small bugs.

To test:

coveralls commented 6 years ago

Coverage Status

Changes Unknown when pulling 3c26de430a01ac9a7b38d9230e102dd778ef50d1 on common_ranking into on master.

kmeesters commented 6 years ago

Test (npm test) and through the frond-end. (win 10, node 8.6.0). Works okay. Questions though is what to do with scores with incorrect team-numbers, should they disappear from ranking like when the round-number is correct? I.e. prohibit publishing of scores if there is an error? Or should we not force it? However will make an issue for this, for now the current functionality is fine.