ucsb-cs156-m23 / proj-happycows-m23-10am-3

https://ucsb-cs156-m23.github.io/proj-happycows-m23-10am-3/
0 stars 0 forks source link

FEATURE: As an admin, I can control dates for game play #6

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

User Story

Discussion

There is currently a start date associated with each commons. In this issue we are just adding an end date for the game. We'll use that end date in many ways in future issues (see "Future Issues" below), but in this issue we are just adding it.

This PR may be useful as a reference; it was not merged into the main code base yet, but outlines what needs to be done:

Note: don't just blindly copy/paste code from this; some of it is relevant, and some of it may not be. But it can be a useful reference.

Future Issues

Once this issue is done, it opens up the possibility of these:

  1. For the automatic jobs that manipulate cow health, milk the cows, etc. we should restrict which commons these are done on to only the commons that have games in progress. There is no reason to milk cows, update health, produce instructor reports etc. for a game that's already over. It's important that these activities STOP at some point, or else we'll be filling up the database with useless rows indefinitely. That's how you crash a server.

  2. A clean start/end date will likely make future graphs and visualizations easier to make.

  3. We may want to restrict users from joining a commons before the game start date so that the instructor can set things up in advance, but students all start at the same time.

Acceptance Criteria

Acceptance Criteria for Future Issues: