aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Dashboard.pm
Commit message (Collapse)AuthorAgeLines
* Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-2/+2
|
* Switch to JSON::MaybeXS, remove JSON::XS.Matthew Somerville2016-01-22-1/+2
| | | | | | 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.
* Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-7/+9
| | | | | | | 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.
* Factor out all uses of param()/params.Matthew Somerville2015-07-07-7/+7
| | | | | | | 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.
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-1/+1
| | | | | | Cache a DateTime::TimeZone::Local object, so that in an environment where /etc/localtime is a copy of a timezone file, we don't repeatedly walk all the timezone files to find the matching one.
* Allow '\n' and other binary chars in dashboard CSVDave Arter2014-04-29-2/+2
| | | | | | | | | | | | By default, Text::CSV doesn't allow binary characters such as newline, carriage return etc., in cells. This causes issues when exporting data that contains these characters, such as problem reports with more than one line. This commit also explicitly tells Text::CSV to append a newline to each row instead of joining the rows together with this char at the end. Fixes #494.
* Use local DateTimes in dashboard and its tests.Matthew Somerville2014-04-07-8/+9
| | | | | Otherwise oddities arise due to summer time differences putting a BST now-6d23h time behind a UTC now+1s-1w.
* Export reports as CSV on /dashboardHakim Cassimally2014-03-10-6/+104
| | | | | | | | | | | | | | | Provide a button to download the details and text of reports at the second "Look up" button on /dashboard. Provides acknowledged, fixed, closed dates by parsing updates. Fixes #692 (and mysociety/FixMyStreet-Commercial#399) Email is not shown, and name honours anonymous flag: as /dashboard is accessible to people who are from_body (who still do not see anon-users name and email in the FMS web app.) A basic test is provided as per Zurich's similar report.
* Quash DBIC warnings re DateTime in dashboardHakim Cassimally2014-03-10-5/+11
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-9/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-3/+6
| | | | | | | | than one body.
| * Make from_body a foreign key.Matthew Somerville2012-12-15-5/+5
| |
| * Rename council column to bodies_str, and all the related code.Matthew Somerville2012-12-15-1/+1
| |
| * Update reporting to use bodies.Matthew Somerville2012-12-15-3/+3
| |
| * Rename from_council to from_body, and small related changes.Matthew Somerville2012-12-15-2/+2
| |
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-2/+6
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-comments conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/Open311.pm t/app/controller/report_updates.t t/open311.t templates/web/default/report/display.html templates/web/default/report/updates.html templates/web/fixmystreet/report/display.html
| * count planned and action scheduled as the same in the dashboardStruan Donald2012-10-02-1/+5
| |
| * do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-2/+2
| | | | | | | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
* | Use cobrand for children area types, not UK specific array.Matthew Somerville2012-10-11-1/+1
|/
* problem_status is only set for council user updates so check forStruan Donald2012-05-24-1/+1
| | | | mark_fixed and null problem_status to identify user - fixed updates
* add closed state to pageStruan Donald2012-05-16-1/+1
|
* small tweak to calculation of user fixed problem countsStruan Donald2012-05-15-1/+1
|
* need council details for setup categories as need type to get category listStruan Donald2012-05-15-2/+1
|
* add council name to dashboardStruan Donald2012-05-14-0/+4
|
* move wards to json fileStruan Donald2012-05-14-0/+1
|
* change example data on category or ward selectionStruan Donald2012-05-10-1/+6
|
* put example dashboard data in json fileStruan Donald2012-05-10-11/+19
|
* Lists of reports by age.Matthew Somerville2012-05-09-7/+23
|
* Not marked statistic.Matthew Somerville2012-05-09-6/+17
|
* Initial example page.Matthew Somerville2012-05-09-0/+29
|
* Initial time to fix/mark rows.Matthew Somerville2012-05-09-24/+44
|
* Get data for dashboard dropdowns and enable faceted lookup using them.Matthew Somerville2012-05-09-7/+33
|
* Redirect to login page if not logged in.Matthew Somerville2012-05-09-0/+2
|
* Dashboard initial start.Matthew Somerville2012-05-09-0/+124