iPlantCollaborativeOpenSource/troposphere — pull request #22 by jchansen (2014-06-08 23:22:42+00:00)
Title: Jchansen/create instances store

1. Added VolumeStore, central location to retrieve all Volume related data.

2. Added InstanceStore, central location to retrieve all Instance related data.

3. ProviderStore now lazy loads.

4. Renamed many files to follow conventions. Routers are now [resource]Router (ProviderRouter). Collections are now [resource]Collection (ProviderCollection). Not the singular convention on collections. Models are just the resource name (Provider). Someone could argue that should be ProviderModel to fit with the theme, but at least for now, the Model suffix is implied. Controllers are [resource]Controller (ProviderController), though all Controllers will end up being removed and any current functionality will shift to the Actions. Actions are now [resource]Actions (ProviderActions). Stores are now [resource]Store (ProviderStore).

5. Made several modifications to resolve console warnings from React, mostly related to collections of DOM elements not being given a key (this is important if the order of data changes and React needs to know which element corresponds to which data to maintain consistent state. An example would be sorting search results).

6. Added code that displays a project immediately after it's created (optimistically) but in a simplied state - i.e. it doesn't search for volumes/instances (which don't exist) and there are no edit buttons. It's intended to confirm to the user that the project is being created, and let them see it, but not interact until the project is returned.