aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/ResultSet/Nearby.pm
Commit message (Collapse)AuthorAgeLines
* Refactor nearby() to use named parameters not listMatthew Somerville2019-02-25-12/+12
|
* Only display reports from last 6 months on around.Struan Donald2018-07-03-1/+4
| | | | | | | Add a checkbox to show older reports, plus if we get to the end of the new reports then instead of a Next button show a "show older" button that will reload the current page but with older reports also loaded. Wire it all up into the pushState code as well.
* Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-1/+4
| | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* Show non_public reports to staff on list pages.Matthew Somerville2018-02-13-1/+2
|
* Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-3/+1
| | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
* Allow multiple selections in report list filter.Zarino Zappia2016-10-13-2/+2
| | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-1/+6
| | | | | | | | | | | | 5c79337 simplified a bit too far, as after then a particular cobrand could in Nearby and My only filter reports to a particular body, not any other criteria. To fix this, introduce more generic functions in the default cobrand to allow more flexibility. Make sure a few tests delete their bodies fully so that new tests pass when run as part of the suite. Fixes #1289.
* Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-4/+2
| | | | | | | Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code.
* Improve stored procedure performance.Matthew Somerville2015-08-10-12/+0
| | | | | Add an index on the radian values, make the function stable, and switch to a full bounding box rather than a slower angle check.
* Allow /ajax to be filtered by statusDave Arter2015-06-29-2/+6
| | | | | If present, the 'status' param can be set to 'open' or 'fixed' to display ensure only open or fixed reports respectively are included in the response.
* Add category filtering support to /ajax via 'category' GET paramDave Arter2015-06-29-1/+2
|
* Update database fetching to fetch needed data for previous commit.Matthew Somerville2013-01-08-6/+1
|
* Allow unconfirmed as a visible state in Zurich, adjust front end list/item ↵Matthew Somerville2012-12-19-1/+1
| | | | templates to suit.
* make around test for non public reports work, and do not display nonStruan Donald2012-09-03-0/+1
| | | | public reports on around page
* Fix nearby photo handling for #227.Matthew Somerville2012-02-23-1/+1
|
* Nearby list needs photo too, and via nearby object (for #227).Matthew Somerville2012-02-23-1/+1
|
* stop using hard coded names for fixed/visible states ( work in progress )Struan Donald2011-06-16-1/+1
|
* Move the tricky nearby DB call to its own Result/ResultSet, and move more ↵Matthew Somerville2011-06-09-0/+50
functions.