-
Best way to establish has_many and belongs_to relationships bt/ models
- nesting collections as model attributes?
- backbone-relational?
-
Graph data spec
-
Model-View bindings:
-
API: modification (local) vs. save (server)
- model.save() // save to server (possibly only saving a diff of the data?)
- delete all models/views that have been removed
- model.remove() // temporarily remove model's view DOM element, but don't delete the model
- model.save() // save to server (possibly only saving a diff of the data?)
-
D3Views
- Do nodes/edges get their own views? (currently, their wrapped up in the graphView)
- how to associate D3 DOM data with model data
script.js
|
|----App
| |----Graph
| |----Nodes----Node
| |----Edges----Edge
|
|----AppView
|----GraphView
- Non-destructive data editing:
- apply diffs to the data, but don't permanently alter the dataset, unless that modification can be applied to the upstream source
- create an immutable graph history object that records changes
- creating/destroying nodes/edges modifies the collections/models, and writes changes to history, but does not sync w/ server
- commit event writes all changes as a changeset to server
- fetch:data fetches raw data
- fetch:changeset fetches and applies changeset