itay/picshare — Issue #11: Models are broken
Author: itay
Created: 2011-10-11 18:07:45+00:00
State: open

The current models are broken. What follows is a general list of issues, so that I don't lose track:

- We still have separate Picture and PictureMetadata models. Picture also has PictureComments. We can probably simplify this, though this isn't too bad.
- Currently, saving an album will save all the pictures even if nothing has changed. Instead, we should save pictures first, and then add them to an album. The album should just update its own metadata, nothing else.
- The save methods of the various models are very complicated due to the relations. Need to find a way to fix this (perhaps using backbone-relational)?
- What happens on dropping images is also complicated. Need to fix.
- The upload progress/done/fail callbacks are currently both in views.js and models.js. Need to see if we can fix this.