aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/JSON.pm
Commit message (Collapse)AuthorAgeLines
* [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-0/+1
|
* Add DateRange class.Matthew Somerville2019-03-04-12/+10
| | | | | This simplifies the places where a date range is used; it also makes Dashboard date parsing more flexible.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-4/+3
| | | | | | | | | | | | Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-1/+1
| | | | | | Travis has Cpanel::JSON::XS preinstalled, which means that the build would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to version 3 which the snapshot did not contain.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-2/+1
| | | | Command line scripts don't need a full blown app, just database.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-3/+3
| | | | | | | Use a central get_param and get_param_list functions dependent on whether we're after a scalar or a list (almost always a scalar). This prevents any possibility of confusion where param() could return a list, or params->{} an arrayref.
* Use format_datetime for DBIx::Class searches to get rid of warnings when ↵Edmund von der Burg2013-09-05-2/+5
| | | | running test suite
* Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-15/+5
|
* Merge branch 'master' of ssh://git.mysociety.org/data/git/public/fixmystreet ↵Struan Donald2011-07-26-3/+8
|\ | | | | | | | | | | | | | | | | | | into new_statuses Conflicts: perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/JSON.pm perllib/FixMyStreet/Map/Tilma/Original.pm web/css/core.css
| * Integrate #101 into new code.Matthew Somerville2011-07-01-3/+8
| |
* | check for open states instead of confirmedStruan Donald2011-06-21-4/+4
|/
* Ordering so test doesn't sometimes randomly fail.Matthew Somerville2011-06-09-0/+1
|
* Switch to using c->cobrand->problems to return all problems for a cobrand ↵Matthew Somerville2011-06-08-1/+1
| | | | (so on Barnet only return Barnet problems).
* Start moving stuff out of Problems.pm, do JSON as per its better-way comment.Matthew Somerville2011-06-08-35/+47
|
* Match the old JSON urlsEdmund von der Burg2011-06-03-4/+13
|
* port json.cgi code to CatalystEdmund von der Burg2011-05-20-10/+43
|
* Added tests for bad requestsEdmund von der Burg2011-05-20-0/+81