Download & Extend

BBox argument handler doesn't work with GROUP BY

Project:Views GeoJSON
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

currently, views_geojson_bbox_argument uses query->add_where for adding the bounding box filters to the views query.

this doesn't work with aggregation being enabled, thus we should investigate using a more robust and generic approach.

see http://drupalcode.org/project/views_geojson.git/blob/refs/heads/7.x-1.x:...

Comments

#1

Status:active» needs review

the attached patch is a rather a workaround than generalizing the problem, but it should help :)

AttachmentSize
1839462_views_geojson_bbox_group_by_having.patch 2.98 KB

#2

without the search api patch

AttachmentSize
1839462_views_geojson_bbox_group_by_having.patch 2.03 KB

#3

Status:needs review» needs work

Why is the patch a workaround? What should it contain?

Reading http://api.drupal.org/api/views/handlers!views_handler_sort_group_by_numeric.inc/7 we should do more indeed.

But according #1806048: BBOX filter not working we should add at least add

<?php
 
function query($group_by = FALSE) {
?>

to this patch.

#4

Status:needs work» needs review

Added the method argument as mentioned in #3

AttachmentSize
views_geojson-groupby-bbox-workaround-4.patch 2.35 KB
nobody click here