[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user