[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
This commit is contained in:
Rufus Pollock
2012-10-04 07:01:41 +01:00
parent 9ea3b05524
commit 1bcb163ebe
5 changed files with 50 additions and 22 deletions

View File

@@ -56,7 +56,7 @@ test('geo_distance', function () {
$editForm = view.el.find('form.js-edit');
equal($editForm.find('.filter-geo_distance').length, 1)
deepEqual(_.sortBy(_.keys(dataset.queryState.attributes.filters[0]),_.identity),
["distance", "field", "fieldType", "point", "type", "unit"]);
["distance", "field", "point", "type", "unit"]);
// now set filter value and apply
$editForm.find('input[name="lat"]').val(10);