394 Commits

Author SHA1 Message Date
Rufus Pollock
702798a285 [view/transform][xs]: move div with css class down one level so that it works in situations even where we pass div in. 2012-07-14 21:58:21 +01:00
Rufus Pollock
d599f75e85 [model,refator][s]: reintroduce summary on Record object deprecating recordSummary on Dataset.
* Reverses change in 1dadc1106bd2dbcad4580d3889e15ac44c865f80
* Record now has fields attribute passed down from Dataset. This is needed in order to support summary method and also makes sense -- as pointed out by @zephod
* Update examples
2012-07-09 01:29:46 +01:00
Rufus Pollock
4e69026881 [be/csv,bugfix][xs]: csv loading from local online file was broken due to copy and paste error. 2012-07-08 16:42:44 +01:00
Rufus Pollock
22dd818183 [view/grid][s]: strip out all the menu stuff as somewhat broken both in UI (overflow not working) and functional terms (transform has changed).
* Felt simpler to remove and possibly reinstate later than try and fix now.
2012-07-08 16:41:34 +01:00
Rufus Pollock
b19eb18cd3 [queryeditor][xs]: remove unnecessary template variable. 2012-07-08 12:55:02 +01:00
Rufus Pollock
ac874c1814 [#176,bugfix,view/transform][xs]: remove unneeded setSelectionRange that failed in FF - fixes #176 (thx to @gka for report). 2012-07-05 20:47:20 +01:00
Rufus Pollock
a58f5e5bb0 [#174,refactor][s]: rename currentRecords to records on Dataset. 2012-07-05 15:37:17 +01:00
Rufus Pollock
b3ac590a58 [model][s]: add a constructor with the name of the object for better debugging. 2012-07-04 15:00:13 +01:00
Rufus Pollock
4721f27487 [be/memory][xs]: micro fix for null fields. 2012-07-03 15:46:43 +01:00
Rufus Pollock
202ca2dce0 [model,bugfix][s]: correction for change introduced in last commit to move summary method from Record to Dataset.recordSummary. 2012-07-03 15:35:40 +01:00
Rufus Pollock
1dadc1106b [#113,docs/tutorial][l]: tutorial-basics written giving introduction to dataset and associated functionality.
* Minor corrections to several other parts of docs.
2012-07-01 15:40:04 +01:00
Rufus Pollock
a8b8c1a59a [view/map][xs]: additional name for geo column ('geo', 'lonlat'). 2012-07-01 14:26:53 +01:00
Rufus Pollock
568eb1e034 [model,bugfix][xs]: prevent query function triggering a second query by using silent: true when setting queryState. 2012-07-01 13:54:00 +01:00
Rufus Pollock
b9555cce6a [refactor][xs]: rename docCount to recordCount. 2012-07-01 09:01:21 +01:00
Rufus Pollock
f06b9ad1b1 [field][xs]: formatter for geo_point type (like an object). 2012-06-29 20:40:15 +01:00
Rufus Pollock
d3c9f30e74 [view/slickgrid][xs]: set recline-slickgrid on view element so that we can pass element in to the view (neede for non-multiview usage e.g. in tutorial). 2012-06-29 20:27:01 +01:00
Rufus Pollock
0e50e99c59 [be/dataproxy][xs]: dataproxy timeout is now configurable (defaults to 5s). 2012-06-29 15:41:10 +01:00
Rufus Pollock
2734f608ba [#94,trasnform][s]: show before / after side by side rather than above and below. 2012-06-29 00:38:30 +01:00
Rufus Pollock
0c767212e2 [#49,transform,bugfix][s]: be careful about selecting col for transform code as may have no fields as yet. 2012-06-29 00:16:45 +01:00
Rufus Pollock
bef8f9ff00 [#94,backend/memory,transform][s]: support for doing transforms without depending on an id field.
* Use index into array instead
* Not totally happy with this but still ...
2012-06-29 00:06:54 +01:00
Rufus Pollock
2b3f6e1c5a [multiview,refactor][xs]: switch to SlickGrid as default view. 2012-06-28 23:57:26 +01:00
Rufus Pollock
aa1a362bb2 [#94,transform][m]: rework transform functionality and integration extensively (+ its working again!).
* view.transform.js: major refactor
  * general record transform rather than column transform
  * Normal dataset view rather than modal
  * Reworked UI
  * split out css from grid.css and simplify
* model.js + backend.memory.js: transform implemented on Dataset and Memory (Dataset passes off to _store).
* multiview: use new transform view
* _includes/recline-deps - rework to use source files rather than built ones
2012-06-28 23:52:58 +01:00
Rufus Pollock
340fedde0d [refactor][s]: get rid of backend subdirectory and instead have prefix backend when naming files. 2012-06-26 20:38:28 +01:00
Rufus Pollock
3a2587bba0 Merge pull request #171 from slmnhq/master
[#162][s]: refactor couchdb.js to be inline with new backend style - from @slmnhq.
2012-06-26 12:33:02 -07:00
Salman Haq
fb9d154834 #162 minor stylistic changes based on feedback. 2012-06-26 09:55:46 -04:00
Salman Haq
39516876fa [#162] refactor couchdb backend. 2012-06-25 15:08:39 -04:00
Rufus Pollock
3d6ad46cc5 [#162,refactor][s]: backend is now string in 'normal' set of Dataset arguments. 2012-06-25 10:10:12 +01:00
Rufus Pollock
5216e23f45 [model/query][s]: tidying up last part of recent filter refactor by removing addTermFilter + addGeoFilter - closes #154. 2012-06-25 09:30:37 +01:00
Rufus Pollock
08fb55bd02 [#168,doc][m]: backend docs including overview and spec of how a backend should function.
* model docs get some improvement and moved to docs/models.markdown
* change default layout to allow spec of where root is ...
2012-06-24 19:50:08 +01:00
Rufus Pollock
f30c7d6273 [#162,app,multiview][s]: minor refactoring to bring up to date with new model/backend setup. 2012-06-24 15:04:01 +01:00
Rufus Pollock
d48115d274 [#162,model/dataset,bugfix][s]: call toJSON on dataset before passing to backend on query. 2012-06-24 15:02:15 +01:00
Rufus Pollock
8cb9ccba9c [be/csv,bugfix][xs]: bugfix to last commit. 2012-06-24 14:47:32 +01:00
Rufus Pollock
3837123eca [#162,be/csv][s]: add fetch method as per new #162 approach and support more methods than just file - string, local online CSV file.
* Also get to remove code obsoleted by recent work in #165 to allow fetch to return simple set of records (see penultimate commit)
2012-06-24 14:37:46 +01:00
Rufus Pollock
1e550e4437 [#165,#162,be/dataproxy][s]: simplify dataproxy to return raw fields and records as cleanup and normalization now done in Dataset (cf previous commit). 2012-06-24 14:36:19 +01:00
Rufus Pollock
1fee4c2821 [#165,model/dataset][m]: new method normalizeRecordsAndFields to ensure we get valid records and fields from fetch (e.g. no duplicate field ids!). 2012-06-24 12:42:22 +01:00
Rufus Pollock
c8c869582f Merge branch 'feature-162-simplify-dataset-to-backend' 2012-06-23 23:28:10 +01:00
Rufus Pollock
bb02f75539 [doc/model][m]: move all main model item docs in jekyll doc library-model.markdown and start tidying up.
* Started this in branch even though general as a pre-cursor to documentation of new backend setup.
2012-06-23 23:27:11 +01:00
Rufus Pollock
31980857a9 [#162,be/elasticsearch][s]: convert elasticsearch to the new setup (remove all Backbone from the Backend!).
* Also convert to new QueryResult format in which no _source, _type etc - cf #159
2012-06-23 22:31:23 +01:00
Rufus Pollock
dd45991321 [#162,refactor][s]: backend fetch method dataset argument is simple JS object not backbone Dataset.
* Helps make Backends simpler and more independent of Model
2012-06-23 22:29:12 +01:00
Rufus Pollock
3f37da089a [#162,refactor][s]: remove recline.Memory.createDataset now that it is obsoleted by recent improvements. 2012-06-23 20:38:47 +01:00
Rufus Pollock
6e5c15a816 [#162,backend,model][l]: major commit addressing several parts of the backend / model refactor in #162.
* Now have Dataset setup and manage "memory store"

  * New fetch API as per issue #162 spec
  * dataproxy utilizes useMemoryStore attribute and just implements fetch
  * Switch gdocs to use Memory.Store properly via new useMemoryStore + fetch methodology
  * Memory backend: query function now follows promise API, remove fetch,upsert,delete and add save function to Store object

* Also refactor to remove _source in QueryResult "hits" attribute on all backends but ElasticSearch - cf #159 (note this means ES currently broken)
2012-06-23 20:23:24 +01:00
Rufus Pollock
1ed3b9f423 [be/dataproxy][m]: switch dataproxy to use Memory data store (fixes #164) and switch to new backend / model setup (#162). 2012-06-23 18:00:30 +01:00
Rufus Pollock
7141b7aafd [#162,model,be/memory][m]: refactor started with the new API on Dataset, Record and Memory backend.
* Tests are passing except for a dataproxy one.
2012-06-23 13:28:32 +01:00
Rufus Pollock
2d7e227869 Merge pull request #163 from slmnhq/master
[backend/couchdb][s]: Important bug fix from @slmhq.
2012-06-23 04:08:31 -07:00
Salman Haq
b5658df96c fix confusion due to magic 'this' object. 2012-06-22 14:28:02 -04:00
Max Ogden
ae81d3aa70 Merge pull request #161 from slmnhq/master
CouchDB Backend.
2012-06-20 08:50:46 -07:00
Salman Haq
8582998643 Added CouchDB backend with support for custom
views and basic client-side search (filtering, faceting, and sorting).
2012-06-20 10:48:38 -04:00
Rufus Pollock
b64daea1a7 [#111,elasticsearch,geofilter][xs]: work out that what ES docs describe as distance_unit field is actually called unit. 2012-06-16 18:27:59 +01:00
Rufus Pollock
92b061ef00 [map,bugfix][xs]: tick / untick autozoom control correctly. 2012-06-16 18:00:53 +01:00
Rufus Pollock
a3ad4a834e [multiview][xs]: show filter editor in sidebar by default. 2012-06-16 18:00:23 +01:00