jbholden / cdcpool_google

0 stars 1 forks source link

Coding for edit_week #17

Open blreams opened 10 years ago

blreams commented 10 years ago

I will soon be starting the initial coding on the edit_week handler that can be used by a commissioner to modify the slate of weekly games (ie. the pick sheet as it is called). This will be heavily based on create_week, but will have some additional checks in place to make sure the database is not modified improperly. It will probably use much of the infrastructure of create_week. There are two main differences between create_week and edit_week:

  1. create_week starts with a blank slate, whereas edit_week must query the database for its starting data.
  2. Once the data is properly vetted, create_week can always put everything to the database, whereas edit_week will be limited by the current state of the week.

This was covered in Issue #10, but I will recap here.

After a pick sheet is created with create_sheet, it can be edited as follows: