jbholden / cdcpool_google

0 stars 1 forks source link

Make sure player picks and trends are not available until the week is Locked #6

Closed blreams closed 10 years ago

blreams commented 10 years ago

There are three times that should be demarcated for the purposes of gaining access to information about players' picks.

Time 1: "Invalid" A week is considered invalid before the commissioner has selected all the games and spreads for the week.

Time 2: "Open" This is after the commissioner has selected games and spreads for the week, but before picks have been locked.

Time 3: "Locked" After the pick deadline has passed a week is considered locked, meaning no pick modifications can be made.

Invalid weeks cannot be referenced at all by players. Once the commissioner has selected the games and entered spreads, the week can be transitioned from Invalid to Open.

For an open week, a player can only access their own pick. They are free to modify their pick as they see fit while the week is Open. The pick deadline defines when the week transitions from Open to Locked. This could be done automatically.

Once a week is Locked, then players are free to view everyone's picks, but no picks can be modified. I couldn't think of any reason a week needed to be transitioned out of the Locked state.

Is there any reason that a week's state would need to change from Locked (to something like Complete) once the commissioner validates scores?

blreams commented 10 years ago

The above reference was inadvertent...don't know how to delete the comment.

blreams commented 10 years ago

Apparently, when you add a reference to this Issue from another Issue, you get something like the above. I'm going to re-close this Issue.