Rufus Pollock
dc55d53fdd
[#330,model][s]: getFieldValue & getFieldValueUnrendered now return '' if field argument is null / undefined - fixes #330 .
2013-02-24 14:34:28 +00:00
Rufus Pollock
723d128d13
[#313,backend][s]: use jquery deferred if available - fixes #313 .
2013-02-08 13:31:03 +00:00
Rufus Pollock
bd98d15b61
[#313,backend/memory][xs]: use jquery deferred if we can.
2013-02-08 13:20:38 +00:00
Rufus Pollock
68215a0fa5
[#313,model][s]: use jquery promise api if available.
2013-02-08 13:05:00 +00:00
Rufus Pollock
965bf6e9bb
[#172,refactor][s]: switch everything to use underscore.deferred rather than jQuery.Deferred - fixes #172 .
...
* In addition reduced pattern of passing in $ to backend modules - instead just use jQuery explicitly (this should make it easier to mock-out jQuery if you waned to
2013-01-04 20:13:16 +00:00
John Glover
9bfbce776b
[ #264 ] Fix for #264 from ckan-updates branch.
...
Uses _.defaults rather than performing an explicit
deep copy.
2012-12-10 16:57:44 +01:00
Rufus Pollock
5a322e2c7c
[#286,bugfix]: fix for case where fields array has nulls in it.
...
If passed fields = [ null, ..., ...] or [ ... , null, ...] we fail in Dataset._normalizeRecordsAndFields method because:
1. If null is first element we do not do field generation correctly because typeof(null) is object - ede211646a/src/model.js (L108)
2. We call toString on field names which fails for null ede211646a/src/model.js (L113)
2012-12-09 18:58:52 +00:00
Rufus Pollock
ede211646a
[#264,bugfix,filtereditor][s]: track down and fix bug with addFilter (and hence filtereditor) - fixes #264 .
...
* Quite a subtle bug due to the fact that we were not doing a deep copy on the filter template in addFilter
2012-11-08 20:35:03 +00:00
Rufus Pollock
f6a3395b40
[#258,model][xs]: tiny bugfix for cases where fields in raw state contain a non-string - fixes #258 .
2012-10-19 07:57:47 +01:00
Rufus Pollock
7819b3b185
[#248,model][s]: normalize Field types where possible by mapping standard type aliases to default type name - fixes #248 .
...
* view.graph.js improve graph view by making sure datetime for an axis is judged by whether it is date, datetime or time not just date!
* backend.ckan.js some type conversions now done in core model so can be removed
2012-10-12 22:06:56 +01:00
Rufus Pollock
1bcb163ebe
[filter,refactor][s]: remove fieldType attribute on filters as can (and should) get fieldType from model if needed.
...
* fieldType is needed now as we parse values to specific type before doing filters
* needed to correct some tests for this change
2012-10-04 07:01:41 +01:00
Rufus Pollock
d5f0b074c2
[model][xs]: tweak to _backendFromString to remove option to look up backends specified as full module pathes as this is a liable to bugs and it is not being used.
2012-09-18 22:57:44 +01:00
Rufus Pollock
70c2676fc0
[#196,bugfix][s]: add back in support for serializing *all* dataset info into state object (and restoring from it) - fixes #196 .
...
* Also minor refactor move dataset restore functionality into multiview (it makes more sense as it is multiview which does the serializing in the first place)
* Improved tests for this!
2012-08-16 14:28:44 +01:00
Krzysztof Trzewiczek
532f777f78
[#166,closed,gdocs/backend] Added title to GDocs backend metadata
2012-08-09 17:59:25 +02:00
Krzysztof Trzewiczek
d7fc9ba1f8
[#96,closed] Range filter with support for string, number and date data-types
2012-08-09 13:00:41 +02:00
Krzysztof Trzewiczek
d445629318
Simple range filter added to Memory backend
2012-08-08 17:44:47 +02: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
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
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
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
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
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
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
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
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
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
81167e39fe
[#154,filtereditor][s]: refactor how we lay out the filters in order to group inputs for a given filter together more.
...
* Model.Query: use distance_unit for geo_distance filter.
2012-06-16 16:46:34 +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
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
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
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
00052bba0f
[view/slickgrid][s]: slickgrid supports renderers/formatters correctly and does not escape html.
2012-06-02 22:42:34 +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
2a7807638b
[#77,model][s]: add summary function to product infobox style summary for a doc (all keys and values atm).
2012-05-30 23:37:32 +01:00
Rufus Pollock
13d1a9e0bd
[#128,state][s]: move to simpler state serialization for backend/dataset in which we just store url attribute of dataset (if present).
2012-05-26 22:51:50 +01:00
Rufus Pollock
72ed877ae2
[#128,misc][s]: final wiring up to have everything working again -- fixes #128 .
2012-05-26 18:26:47 +01:00
Rufus Pollock
23b32dff1c
[#128,backend/memory,misc][l]: commence major backend refactor by converting recline.Backend.Memory to module and splitting existing code into BackboneSyncer and DataWrapper.
...
* Lots of other changes to having passing tests (note some actual functionality is likely a little broken esp around state serialization and the app)
2012-05-26 14:26:01 +01:00
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
b4255ef18f
[model][s]: default string renderer will linkify http://... links.
2012-05-24 00:30:35 +01:00