10 Commits

Author SHA1 Message Date
Rufus Pollock
9518d2483d [backend,refactor][xs]: move Backbone.sync override into recline.Model from recline.Backend.base. 2012-05-25 09:01:03 +01:00
Rufus Pollock
a577866932 [#61,backend/elasticearch][s]: refactor plus support for setting request headers (e.g. Authorization) plus can set backend url on initialization.
* support for headers went into new _makeRequest method on backend base class
* support for setting backend url on initialization (rather than depending on it being on Dataset/Document objects)
* move upsert and delete methods out into distinct methods from being inside backbone sync

The two last of these pave the way for use of ElasticSearch backend standalone (both independent from Recline and independent of Backbone)
2012-04-23 02:30:16 +01:00
Rufus Pollock
31d829f53f [#17,backend][s]: add readonly attribute on backends indicating whether they are 'read-only'. 2012-04-22 00:03:59 +01:00
Rufus Pollock
7743534eac [#88,backend][s]: add __type__ attribute to all backends to identify them and provide a more robust and generic way to load backends from a string identifier such as that __type__ field.
* Also remove recline.Model.backends registry as can be replaced with this more generic solution.
* This refactoring is necessitated by our need to serialize backend info for save/reload of a dataset and explorer state in #88.
2012-04-15 22:19:43 +01:00
Rufus Pollock
3c9a18ba88 [#78,jshint][s]: cleaning up backends as per jshint instructions. 2012-04-10 12:19:39 +01:00
Rufus Pollock
157d77ebb1 [#57,backend,model][m]: switch to having backend query methods return a QueryResult object - fixes #57. 2012-04-01 11:45:42 +01:00
Rufus Pollock
e5e24f72de [#52,doc,refactor][s]: move instructions re creating a backend into backend/base source docs and tidy doc page a bit. 2012-04-01 11:11:38 +01:00
Rufus Pollock
767f9a23d6 [#57,backend,refactor][s]: create a recline.Backend.Base model which other backends inherit from.
* At the moment this added little other than a cleaner structure but will help with change for #57.
2012-04-01 10:49:22 +01:00
Rufus Pollock
57978c324b [docs,build][m]: build latest version of the docs doing some tidying of the docs along the way. 2012-02-28 22:58:20 +00:00
Rufus Pollock
e3a0615e43 [backend,refactor][s]: split backends in separate files and put in separate module recline.Backend. 2012-02-24 14:12:45 +00:00