Open kareem opened 11 years ago
This requires a bit of work but I agree it's important.
In the photo
table we have an albums column that simply lists albumId
. We need to modify that to include a collection of album objects. This makes writes a bit more expensive when adding/removing albums but makes the display of albums alongside a photo fairly trivial.
The biggest issue in figuring this out was finding an efficient way of getting this in the /photos/list.json
API. A better solution and one we can implement sooner is to have it available only in the /photo/:id/view.json
API.
There doesn't seem to be a way to see what albums a photo belongs to from the photo page, or to visit those albums from the photo page.