Rufus Pollock
56285f0a07
[#62,model][xs]: trigger re-query (and facet computation) whenever facets change.
...
* This is far from perfect (we recompute query results as well as facets) but optimizing can come later.
2012-04-01 16:45:31 +01:00
Rufus Pollock
ae8a3ddab0
[model][xs]: remove HACK code that is no longer needed.
...
* Code is obsolete because issue it addressed arose from binding to all event on queryState and we no longer do that.
2012-04-01 16:37:43 +01:00
Rufus Pollock
7a95302760
[#62,facets,backend/memory][m]: add faceting support to memory backend.
2012-04-01 16:31:36 +01:00
Rufus Pollock
80165659b1
[#62,faceting][s]: basic faceting fully functional on ES.
2012-04-01 14:20:12 +01:00
Rufus Pollock
6ba8c82408
[#62,facets][s]: partially working faceting with elasticsearch.
2012-04-01 13:51:15 +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
3412962a35
[#62,faceting][s]: introduce Facet and FacetList models and use them.
...
* Conceptual breakthrough on how Faceting and Filtering interact (have updated issue #62 as a result).
2012-03-31 18:06:41 +01:00
Rufus Pollock
905659d86f
[#62,view/query][m]: start of faceting support with QueryFacetEditor.
...
* QueryFacetEditor in DataExplorer which displays facets but nothing yet happens.
* NB: very much less than half way through (things look worse rather than better atm).
2012-03-31 15:08:27 +01:00
Rufus Pollock
93d4b84080
[doc][s]: minor correction to model docs.
2012-03-15 00:47:32 +00:00
Rufus Pollock
733a9d3275
[#34,view][s]: query state in url (store into and read from).
...
* Also change so that query values are not automatically JSON.stringify-ied (bad idea since it leads to repeated jsonification of same value ...)
2012-03-14 19:45:28 +00:00
Rufus Pollock
bd6123403e
[#34,query][s]: rename offset to from on query object.
...
* More natural in fact and we may as well go whole hog with ES structure.
2012-02-27 20:54:02 +00:00
Rufus Pollock
aaa01b2191
[refactor,model,view][s]: add explicit query start, done and fail events for dataset and use them in DataExplorer to generate notifications.
2012-02-24 09:11:17 +00:00
Rufus Pollock
4074f380d8
[#25,view,refactor][s]: get views working with new field setup ( fixes #25 ).
...
* One nastiness along the way (30m delay!) that is worth noting: flot graph was a problem because it turned out that a) (re-)render triggered by dataset attributes change and fields only got set *after* core dataset attributes and so info was rendering.
* model.test.js: basic test for Dataset.toTemplateJSON
2012-02-18 09:07:35 +00:00
Rufus Pollock
a75e04701f
[#25,model][xs]: turns out the hack to allow simple arguments to Field ctor does *not* work.
2012-02-18 08:11:38 +00:00
Rufus Pollock
2da6c1a297
[#25,model][xs]: remove artificial field attribute (follow up to penultimate commit cf42e43ff0f32ba24e940455b060ae278025942b).
2012-02-18 07:48:14 +00:00
Rufus Pollock
0364f3e847
[#25,typo][xs]: left in console.log.
2012-02-18 07:44:35 +00:00
Rufus Pollock
cf42e43ff0
[#25,model][s]: introduce new Field Model and FieldList collection and attach to Dataset.
...
* NB: no refactoring elsewhere yet to take account of this
* model.test.js: tests for Field (first proper model tests!)
2012-02-18 07:33:15 +00:00
Rufus Pollock
3ea18aa715
[#25,refactor][s]: rename header(s) -> field(s) throughout.
2012-02-17 23:43:27 +00:00
Rufus Pollock
866ad12a15
[#49,query][s]: introduce Query model object and use it in Dataset.
...
* tests: refactor Memory backend tests so that tests are independent (to avoid issues of carry over of query state)
* TODO: use query stuff in views - NB sorting seems broken in DataTable.
2012-02-17 23:05:34 +00:00
Rufus Pollock
7fa2517450
[whitespace][xs]: whitespace.
2012-02-17 22:36:22 +00:00
Rufus Pollock
2d4e6a2ecc
[#43,model][m]: refactor Dataset and BackendMemory to the new setup approach.
...
* NB: other model tests broken as a result.
2012-02-17 08:53:36 +00:00
Rufus Pollock
57effa02aa
[whitespace][xs]: correct indentation issues introduced in b3a71e82cca77bfe24c93290dd321174c85ab3b7.
2012-02-16 19:51:05 +00:00
Rufus Pollock
21173b6acf
[#35,all][m]: crude error catching for backends based on timeouts (best we can do with JSONP) - fixes #35 .
...
* Show errors in UI
* required some extensive refactoring to use done/fail on promise rather than then
2012-02-10 03:16:49 +00:00
Friedrich Lindenberg
5fc4fa9626
Support sorting by a given column; refs #34
2012-02-09 18:49:12 +00:00
Rufus Pollock
1491ae5bcc
[#34,query][m]: start on proper query support (move to query and sort support in BackendMemory).
2012-02-09 18:05:37 +00:00
Rufus Pollock
1539169e21
[#35,refactor][l]: fixes #35 , major refactor to have datasets intialized with backend and endpoint information.
...
* Backbone.sync now switches on type of backend set for a dataset (allowing simultaneous use of multiple datasets with different backends)
* Datasets are initialized with backend config (see docs and code)
2012-02-08 09:27:56 +00:00
Rufus Pollock
7b496fc276
[refactor][s]: split out backends from model.js to backend.js.
...
* And do some slight improvement of the model and backend docco docs by using some markdown formatting.
2012-02-07 12:20:48 +00:00
James Casbon
b3a71e82cc
correct indents on model.js with gg=G
2012-01-29 16:20:51 +00:00
James Casbon
9eeb4ab97a
google spreadsheet backend
2012-01-28 19:44:07 +00:00
Rufus Pollock
76b05eb846
[#31,backends][m]: add BackendDataProxy, fixes #31 .
2012-01-26 11:07:27 +00:00
Rufus Pollock
a369c63812
[#8,Webstore][xs]: respect numDocs constraint in getDocuments.
2012-01-15 19:05:06 +00:00
Rufus Pollock
6d32ac2b27
[refactor][s]: rename getRows to getDocuments (thereby removing outstanding TODO).
2012-01-06 12:08:55 +00:00
Rufus Pollock
7a5e2edef8
[#14,view/explorer]: show total doc count in data explorer.
2012-01-06 11:59:27 +00:00
Rufus Pollock
250f931c36
[refactor][s]: rename rowCount to docCount and remove getLength method as can just use dataset.docCount.
2012-01-06 11:43:17 +00:00
Rufus Pollock
e65bc74a88
[#14,#6,backend,view][m]: delete row in data table now working via Backbone with backend memory.
...
* #6 : BackendMemory now supports delete for Documents.
2012-01-05 12:26:13 +00:00
Rufus Pollock
ce076a2eac
[model/backend,#6][s]: BackendMemory now supports saving of Documents.
2012-01-05 01:39:31 +00:00
Rufus Pollock
164da57dfa
[model/backend][s]: BackendMemory now works with one and only one dataset at a time (plus document what dataset data looks like).
...
* It is clear that if Backend is to handle syncing of Documents we need to only be working with one dataset (or: every Document has to reference a dataset -- in which case Backend and Dataset really are just one object ...).
2012-01-05 01:00:33 +00:00
rgrp
8b9c76fd29
[view/data-explorer][m]: (refs #14 ) introduce ability to change number of rows viewed.
...
* This also necessitated a nice refactor whereby DataExplorer subviews running off a common Backbone Collection (DocumentList) re-rendering themselves in response to changes in that Collection.
2011-12-15 16:13:43 +00:00
rgrp
653f59610f
[refactor][s]: put model and view objects inside modules of similar name (Model, View).
2011-12-07 13:49:50 +00:00
rgrp
d7e058eb15
[model,view][s]: (refs #10 ) refactor to return DocumentList from Dataset.getRows rather than array of simple hashes.
2011-12-04 03:36:13 +00:00
rgrp
07275a8fcc
[demo][s]: allow loading of demo data viewer from a webstore url.
2011-11-08 16:12:56 +00:00
rgrp
5eb06b982e
[model][m]: working Webstore Backend ( fixes #8 ).
2011-11-07 21:52:07 +00:00
rgrp
3a48044a76
[model,refactor][m]: (refs #6 , refs #10 ) get rid of DocumentSet merging its functionality into Dataset.
...
* In addition fully remove remaining references in models (in getRows and getLength functions) to form of backend (this should have been in previous commit).
2011-11-05 20:20:31 +00:00
rgrp
21d9a1c2dc
[model][m]: ( fixes #6 ) create a BackendMemory (local data in memory) and refactor code to use this rather than current hard-coding-of-data approach.
2011-11-05 19:48:09 +00:00
Max Ogden
bd52bb2c58
get a datatable rendering with fake data
2011-11-04 13:18:29 +00:00
Max Ogden
2ec378997e
further refactoring
2011-11-03 19:13:17 +00:00
Max Ogden
9674e10119
rename files to better names
2011-11-03 18:39:18 +00:00