261 Commits

Author SHA1 Message Date
Rufus Pollock
4d128af797 [model,bugfix][s]: if explicitly passed field info to a dataset use that over any field info derived from backend. 2013-06-02 20:04:09 +01:00
Rufus Pollock
eb682d673f [#359,view/flot][m]: much better time series support by using flot time plugin - fixes #359.
* Note you still need to set the type of the field to time for this to work properly (i.e. we do not attempt to guess a column is dates as that is very error-prone).
2013-06-02 18:42:17 +01:00
Dan Wilson
31e25cf51b Enable travis-ci 2013-05-15 12:40:38 +01:00
Dan Wilson
b2c5c7f0e0 Misc test suite fixes for IE8. Fixes #323. 2013-05-14 18:45:43 +01:00
Dan Wilson
1c86c70c32 Use htmlEqual() so that we're more robust against cross-browser serialisation issues. Issue #323. 2013-05-14 18:37:11 +01:00
Dan Wilson
5122672333 Fixed date-parsing logic so that it works on oldIE. Issue #323. 2013-05-14 18:18:22 +01:00
Dan Wilson
cf700f4ac0 Bumped qunit and sinon. Added qunit-assert-html. 2013-05-14 17:20:16 +01:00
Dan Wilson
9514c46aa0 Date parsing and toISOString() can't be assumed to be present. Use Moment instead. Issue #323. 2013-05-14 16:30:25 +01:00
Dan Wilson
325eaf8c34 Bumped Moment to 2.0.0 (required by next commit) 2013-05-14 16:26:34 +01:00
Dan Wilson
c80dabd31e Fixes to the multiview tests 2013-05-14 12:07:15 +01:00
Dan Wilson
0fc484a696 Minor fix to slickgrid test 2013-05-14 10:49:10 +01:00
Dan Wilson
080188286a Bumped backbone to 1.0.0. Issue #351. 2013-05-14 10:12:24 +01:00
Dan Wilson
6c8d9ec50a Bumped underscore to 1.4.4 2013-05-13 21:48:22 +01:00
Dan Wilson
8ea1a81c0a Updated code and tests to stop recline clobbering view.el. Issue #350. 2013-05-13 18:52:37 +01:00
Rufus Pollock
49daa84ad9 [#314,test][xs]: forgot to commit changes to test index.html. 2013-05-05 19:04:01 +01:00
Rufus Pollock
8164c68d0c [#331,view/flotr2][s]: remove flotr2 as now in separate repo https://github.com/okfn/recline.view.flotr2 - fixes #331. 2013-05-05 19:01:51 +01:00
Rufus Pollock
caf0c84e97 [#314,be/ckan][s]: remove ckan backend from core as now in own repo https://github.com/okfn/recline.backend.ckan. 2013-05-05 18:03:52 +01:00
Rufus Pollock
fc79518ba5 [#349,transform][s]: remove transform view and associated code - fixes #349. 2013-05-04 22:13:27 +01:00
amercader
4d6aa91ef3 Merge branch '336-value-filter' 2013-04-03 10:52:58 +01:00
John Glover
457e39dc1e [#336] Add tests for valuefilter widget 2013-04-02 17:24:37 +02:00
John Glover
d0f82fd165 [#217] Implement value/term filter for ckan backend 2013-03-27 19:58:15 +01:00
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
6f82c4c5cc [#314,be/solr][s]: remove solr backend from core as in separate repo [1].
[1]: https://github.com/Recline/backend.solr
2013-02-10 17:05:30 +00:00
Rufus Pollock
242bcc7a14 [#287,view/graph][s]: move current view.graph.js to view.flotr2.js and setup recline.View.Graph to point to recline.View.Flot. 2013-02-09 16:18:37 +00:00
Rufus Pollock
723d128d13 [#313,backend][s]: use jquery deferred if available - fixes #313. 2013-02-08 13:31:03 +00:00
John Glover
789086b290 [#287] Add flot view tests.
Same as view.graph.js tests (flotr2).
2013-01-10 09:41:57 +01:00
John Glover
8439cc5522 [#287] Add view.flot.js.
Allows flot to be used for graphs as well as
flotr2.
Based on view.graph.js in the ckan-updates branch.
2013-01-09 15:53:44 +01:00
Stefan Wehrmeyer
616d6b2ed8 Fix order of equal arguments 2013-01-07 10:33:00 +01: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
Rufus Pollock
e8ad368347 [backend.memory][s]: rename Store.data attribute to records to be more consistent (and more meaningful). 2013-01-03 21:50:47 +00:00
Rufus Pollock
64af7b2150 Merge branch 'master' of github.com:okfn/recline 2012-12-22 19:54:48 +00:00
Rufus Pollock
3610d95e74 [#291,bugfix][s]: memory backend transform function now works even when records do not have id - fixes #291.
* Also simplified (and made more efficient) by removing dependency on (not very useful) recline.Data.Transform.mapDocs function
* As documented in #291 issue was that an id was required in the docs
2012-12-22 19:51:03 +00:00
John Glover
c6a8a33d32 [284] Add json2.js which defines JSON for older browsers (IE7). Fixes filters and 6 test failures with IE7. 2012-12-10 15:20:02 +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
b89e6a8a65 Merge pull request #272 from demiurg/master
[view/graph][s]: Ability to extend graph options with general options - thx to @demiurg.
2012-11-10 00:44:05 -08:00
User
94c56e1d10 Added test case for 'graphOptions' 2012-11-09 12:55:54 -05: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
Frederick Ros
0aa85c9560 Update the grid when a record is changed
Fixes #255
2012-10-24 00:01:08 +02:00
Rufus Pollock
df935091fd [#244,view/map][m]: support for customizing rendering of map features in all ways supported by Leaflet - fixes #244.
* This automatically provides support for things like custom markers via
  pointToLayer etc

* Also a significant bugfix for a bug that surfaced when using different marker
  (like the CircleMarker) - and which took ~30m to track down. Bug was that the
  call to zoom (or, more specifically, call to getBounds) occurred before
  features were added to the map and getBounds for some objects (such as
  circles) requires map to exit (so you can do a projection!)
2012-10-23 00:19:59 +01:00
Rufus Pollock
97dcf08780 [backend/gdocs][s]: minor improvement to support handling spreadsheet urls where #gid=xxx is missing. 2012-10-20 01:57:13 +01:00
Rufus Pollock
4aeabbe3a1 Merge branch '120-solr-backend' 2012-10-19 09:55:18 +01:00
Rufus Pollock
bc1c84944a Merge branch 'master' of github.com:okfn/recline 2012-10-19 08:00:51 +01: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
59c90df391 Merge branch 'master' into 120-solr-backend 2012-10-16 21:14:09 +01:00
Frederick Ros
1cc8df020d The slickgrid view can now be edited. 2012-10-14 20:56:25 +02:00
Rufus Pollock
d3b8f39213 [test/elasticsearch][xs]: disable ES backend write tests as they needed a running local ES server. 2012-10-14 18:51:04 +01:00
Rufus Pollock
42fcc1b649 Merge pull request #247 from sleeper/move_to_bb_0_9_2
[#226,vendor][s]: Upgrade to backbone 0.9.2 and underscore 1.4.2 - fixes #226 (thx to @sleeper).

Note while merge seems quite big there are no actual changes to main code (all changes are in built files like docs or dist)
2012-10-14 10:26:33 -07:00
Rufus Pollock
88dfa0b314 [#250,backend/ckan][s]: nicer way to do configuration of CKAN API endpoint including parsing of url - fixes #250. 2012-10-14 17:52:29 +01:00
Rufus Pollock
046ee8c1a0 [#240,bugfix,backend/memory][s]: range filters now work as expected when one end of range is null - fixes #240.
* see ticket and comments for more details
2012-10-12 22:29:55 +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