iPlantCollaborativeOpenSource/troposphere — pull request #9 by jchansen (2014-05-27 22:35:31+00:00)
Title: Jchansen/refactor models and collections

1. Dropped reference to Base Model/Collection from many models and collections. The reason for this was a) to make it more explicit what each model/collection is doing, but also b) forward planning for when the API doesn't require the deep url structure. This will make it simpler to switch over. Also, dropping the Base inheritance meant I could remove the model_name property in the *defaults* property, which shouldn't really be used for that.

2. Added a slash() method to globals that (when incorporated into model and collection) urls will add a slash if required depending on which server is being communicated with (Apiary can't have a slash, while the Django server currently still requires one).

3. Added some switches in globals that allow the developer to specify which API server they want to communicate with (Apiary, dalloway or alom).

4. Modified how data is passed to the Volume details view so that all of it is fetched in the root VolumeDetailsPage component, and then passed down through the components. None of the components will fetch data themselves. This makes it more clear where data is coming from, but also prevents multiple API calls where not required. Only 3 calls are made at the root, as opposed to what I think was 4 or 5.

5. Changed HTML

back to Atmosphere. It was wrongly changed to Troposphere.