The points total in the users collection is buggy: editing a match to save a result adds to the points value, even if the match has already been edited. (e.g. in the case of a result that was recorded incorrectly, editing again to fix the mistake will increase users.points.)
But stepping back, we really want to remove the points field from the users collection, for reasons of database normalization and to make the system less error-prone.
We already store the points along w/ the picks, and -- though it can be expensive to manipulate those number across all users/picks -- it's better to just keep the data there.
Assigning to you, Benj, since you recently made the change. Let me know your thoughts.
The points total in the users collection is buggy: editing a match to save a result adds to the points value, even if the match has already been edited. (e.g. in the case of a result that was recorded incorrectly, editing again to fix the mistake will increase users.points.)
But stepping back, we really want to remove the points field from the users collection, for reasons of database normalization and to make the system less error-prone.
We already store the points along w/ the picks, and -- though it can be expensive to manipulate those number across all users/picks -- it's better to just keep the data there.
Assigning to you, Benj, since you recently made the change. Let me know your thoughts.