176 Commits

Author SHA1 Message Date
Rufus Pollock
1c3dbaacc8 [#114,transform][s]: first set of tests for costco code. 2012-07-15 00:39:05 +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
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
a58f5e5bb0 [#174,refactor][s]: rename currentRecords to records on Dataset. 2012-07-05 15:37:17 +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
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
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
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
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
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
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
bda4797ed8 [test/refactor][xs]: dataproxy and gdocs tests now in own files. 2012-06-23 18:07:00 +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
0148dd45b2 [test,addendum][xs]: fixes for tests after changes in last commit b64daea1a763ba40d450d8234f7b3ac0c8f15c16. 2012-06-18 21:21:03 +01:00
Rufus Pollock
8ff885759f [#111,backend/elasticsearch][s]: geo distance filter now working - hurrah!. 2012-06-16 16:31:45 +01:00
Rufus Pollock
d17775e39d [backend/memory,bugfix][s]: corrected sort for memory backend so works correctly on string fields. 2012-06-16 13:39:15 +01:00
Rufus Pollock
36911aef14 [#130,test,bugfix][xs]: slickgrid tests were still testing sort order even though removed in b6eb375624f8b5f4d8037046ad4a90ecf25cd0e1. 2012-06-16 13:17:10 +01:00
Rufus Pollock
f14dcdcaaf [#154,model/query][m]: refactor to new filter structure (see ticket) updating FilterEditor widget and backends.
* ElasticSearch changes represents a significant refactor and now support filters and query via constant_score (did not support this before!)
2012-06-16 13:04:03 +01:00
Rufus Pollock
617d3440f0 [#154, backend/elasticsearch][s]: backend errors now reported up the stack (implement deferred reject when call to backend fails). 2012-06-16 12:59:01 +01:00
Rufus Pollock
8fe04ddd4f [#111,filter/geo][m]: geo filter support - filter editor working though not sure actual query is working (!).
* Extensive refactoring of Model.Query and View.FilterEditor to do this cleanly (geo_distance and term treated similarly now)
2012-06-15 10:51:13 +01:00
Rufus Pollock
75cd2fb94d [#141,view/map][s]: support for all of elasticsearch geo_point / location objects - fixes #141.
* [lon, lat]
* "lat,lon"
* Bonus (non-ES): "(lat,lon)"

Also (accidentally included):

* upgrade to qunit 1.5.0 (much better stack traces!)
2012-06-11 22:00:32 +01:00
Rufus Pollock
d2ce46cc42 [#152,timeline][xs]: handle null or undefined dates properly. 2012-06-10 14:23:03 +01:00
Rufus Pollock
75a6bbd80a [#152,view/timeline][s]: more robust data parsing with tests - fixes #152.
* Also discover and fix "bug" re momentjs timezone calculation and toDate.
2012-06-10 12:35:39 +01:00
Rufus Pollock
9b583b8397 [#147,widget/filtereditor][s]: setting of term filter value and removal of filter working again (and tested!) - fixes #147. 2012-06-07 00:18:08 +01:00
Rufus Pollock
26350fec06 [#147,widget/filtereditor][m]: add filter support in filter widget plus move to sidebar and tidy up.
* model.js: xsmall tweak to set value of term filter to empty string rather than null.
2012-06-06 23:59:09 +01:00
Rufus Pollock
1a8375ff85 [test,bugfix][xs]: addendum fix to rename of label to title in demo in f1e2f7c4aee1deb1c24724b1e0266e0742b83380. 2012-06-06 17:17:24 +01:00
Rufus Pollock
f1e2f7c4ae [test/fixtures][xs]: rename label to title so we have a nicer demo. 2012-06-06 15:22:13 +01:00
Rufus Pollock
ef74f13163 [#145,view/refactor][m]: switch to a proper sidebar setup where views can have both a main element and a sidebar element and this added to central sidebar.
* this fixes functional and visual bugs with current (new) setup where fields where in separate in RHS sidebar
* Refactored map and graph view to put menu/controls in the sidebar (this is quite nice!)
2012-06-06 15:19:00 +01:00
Rufus Pollock
e73be69499 [refactor][s]: standardize naming of files to use '.' rather than '-' as separator. 2012-06-06 10:40:22 +01:00
Rufus Pollock
58cac002dc [#145,widget/fields,model][m]: working fields widget with field summary data generated by Dataset.getFieldsSummary function.
* Layout is still not right -- need to put widget in sidebar (though looks a lot better)
* Datset.getFieldsSummary to compute facets for fields
* Remove facet usage in the demo
2012-06-04 23:57:24 +01:00
Rufus Pollock
a7b6a6ac5d [#145,widget/fields][m]: add new fields widget view which lists all fields with field info and replace facet widget in multiview with it.
* widget is very incomplete and does not yet show anything of great value (plan is to have summary info).
2012-06-04 23:47:05 +01:00
Rufus Pollock
e425106022 [ux,view/multiview][s]: turn view chooser menu and controls (filters/facets) menu into button groups and make filters/facets section toggle correctly. 2012-06-03 09:49:21 +01:00
Rufus Pollock
00052bba0f [view/slickgrid][s]: slickgrid supports renderers/formatters correctly and does not escape html. 2012-06-02 22:42:34 +01:00
Rufus Pollock
a6dff8ce28 [backend/memory][xs]: rename DataWrapper to Store. 2012-06-02 20:02:10 +01:00
Rufus Pollock
170f10268c [#141,view/map][s]: support for location objects with form {lon: ..., lat: ...}. 2012-06-02 19:02:55 +01:00
Rufus Pollock
86fbe6d191 [#140,refactor,widget/pager][s]: split out pager from query editor into separate widget and display in different place in multiview - fixes #140. 2012-06-02 14:45:16 +01:00
Rufus Pollock
b63f4daad8 [#124,test][xs]: missing change to test - should have been in 4bfcb3c02742b5a0a4649512320ac0e071ae374e. 2012-06-01 14:40:55 +01:00
Rufus Pollock
4bfcb3c027 [#124,refactor][s]: merge util.js into view.multiview.js as only utilities are query string parsing utilities and that is where they are used. 2012-05-31 21:54:13 +01:00
Rufus Pollock
03ab0da72d [#124,refactor][s]: addendum to last commit (forgot to split out filtereditor and delete from multiview). 2012-05-31 21:49:06 +01:00
Rufus Pollock
53327a7a1e [#124,refactor,view][s]: ([m] in effect) rename DataExplorer view to MultiView and split contents view.js into separate files - fixes #124. 2012-05-31 21:36:52 +01:00
Rufus Pollock
c1c1881660 [#129,refactor][l]: ([s] in effort) rename Document to Record - fixes #129. 2012-05-31 21:08:00 +01:00
Rufus Pollock
faad3e2329 [#135,app,test][xs]: reference momentjs - should have been in e1a7a659da7d9d653540b7c8e85b1deec5ccb643. 2012-05-30 23:34:00 +01:00