aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/dashboard.t
Commit message (Collapse)AuthorAgeLines
* Offline process for CSV generation.M Somerville2020-08-11-0/+37
| | | | | Include a status page, the option for access token requests to use this system, and a script for manual generation.
* Do not error in export if report has bad category.M Somerville2020-08-04-4/+7
| | | | | | If category groups are enabled, the CSV export includes a subcategory, but it was only fetching a valid groups value if the row's contact was found.
* Only show access tokens once, and store hashed.Matthew Somerville2020-06-30-2/+3
|
* Fix dashboard report CSV export.Matthew Somerville2020-05-07-1/+2
| | | | | | The change to join in e16054150 did not include a collapse that the previous prefetch was doing, so multiple rows per result were being returned.
* Include category groups in dashboard filter.Matthew Somerville2020-01-16-3/+8
|
* [UK] Mandate 2FA on superusers.Matthew Somerville2019-10-30-7/+11
|
* Test warnfix on confirmed comments lacking time.Matthew Somerville2019-10-14-7/+7
|
* Factor out test CSV content function.Matthew Somerville2019-02-25-12/+2
|
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-2/+6
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* Add cobrand hook for dashboard viewing permission.Matthew Somerville2018-10-10-0/+32
| | | | | This allows a cobrand to e.g. as the test does, allow public access to dashboard CSV export for a body, but not otherwise.
* Tweak dashboard test for less output.Matthew Somerville2018-10-10-8/+5
|
* Dashboard update CSV export.Matthew Somerville2018-10-03-1/+31
|
* Add two fields to dashboard CSV export.Matthew Somerville2018-10-03-1/+3
|
* Merge branch '1919-consolidate-statistics'Matthew Somerville2017-11-29-682/+133
|\
| * Consolidate summary statistics pages.Matthew Somerville2017-11-29-679/+131
| |
* | allow dashboard CSV export access using token authStruan Donald2017-11-29-0/+16
|/
* Treat dashboard end date as that given, inclusive.Matthew Somerville2017-11-16-1/+1
| | | | | If someone selects 15-16th November, they want reports from both those dates, not just the 15th.
* add date range options to council dashboardStruan Donald2017-11-14-0/+39
|
* Add ability to log in on /auth via text.Matthew Somerville2017-09-30-2/+2
| | | | A confirmation code is sent via Twilio to be entered on the site.
* sort body dashboard CSV export by report confirmed timeStruan Donald2017-09-07-4/+4
| | | | | And update the tests to avoid a random failure caused by inconsistent ordering.
* include easting/northing in dashboard CSV exportStruan Donald2017-09-04-1/+6
| | | | Fixes mysociety/fixmystreetforcouncils#221
* include ward in dashboard csv exportStruan Donald2017-09-04-0/+26
| | | | | | | Adds a Ward column to the council dashboard CSV export with the name of the ward. Fixes mysociety/fixmystreetforcouncils#220
* Remove hardcoded states from templates.Matthew Somerville2017-08-31-14/+3
| | | | | | | | | | | State display names are now got from the database wherever they are displayed, including admin dropdowns, list filters, and update meta statements. This also covers the open/closed/fixed 'groups'. This also fixes a bug whereby if e.g. an update has problem_state investigating, the next update has no problem_state, and the last update has investigating again, it was previously showing a state change to investigating on that third update.
* Add inactive state to categories.Matthew Somerville2017-07-14-2/+1
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-3/+0
|
* Fix timing edge case test failure.Matthew Somerville2017-05-16-1/+1
| | | | | | If the creation of this test report and the loading of the dashboard took place within the same second, the test report would appear in a different column than the test expected.
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-2/+2
|
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-8/+3
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* By default, use area-based alerts.Matthew Somerville2014-12-12-7/+7
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Test dashboard CSV export more thoroughlyDave Arter2014-04-30-3/+13
| | | | | | | | | | | Instead of counting the number of lines output by dashboard CSV export, the content is parsed as CSV and the number of rows present is checked. Also includes a problem report that's split across multiple lines, testing the fix for mysociety/FixMyStreet-Commercial#494 introduced in d75e161c151c4f1e6dced24eae3170e01f9b7ba6. Closes #780.
* Mock a date for dashboard testsHakim Cassimally2014-04-07-1/+5
| | | | | | | Fixes #365 (how appropriate) by mocking datetime to allow the dashboard test's assumptions (that we're not so near beginning of year that a report from X days ago isn't still in same year) to hold.
* Use local DateTimes in dashboard and its tests.Matthew Somerville2014-04-07-6/+7
| | | | | 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-0/+7
| | | | | | | | | | | | | | | 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.
* Re-enable dashboard testsHakim Cassimally2014-03-10-519/+521
| | | | | | | | The tests have been commented out due to long-running failure. It looks like the failures happen if working copy MAPIT_URL is not pointing at live site. Have updated with an override_config setting this to live site (which is obviously suboptimal, but seems to be widespread practice across t/ at the moment.)
* Disable dashboard.tMatthew Somerville2013-02-04-0/+4
|
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-6/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-3/+5
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-2/+2
| | | | | | | | Add foreign key constraint from contacts to body.
| * Rename from_council to from_body, and small related changes.Matthew Somerville2012-12-15-1/+1
| |
* | count planned and action scheduled as the same in the dashboardStruan Donald2012-10-02-1/+31
| |
* | do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-11/+11
|/ | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
* Treat Other more like a normal category.Matthew Somerville2012-07-19-2/+2
|
* Fix test (change was in b1ccde8).Matthew Somerville2012-07-16-1/+1
|
* make tests pass if run on a MondayStruan Donald2012-06-18-10/+12
|
* 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-0/+20
|
* check that all fixed states coveredStruan Donald2012-05-16-2/+17
|
* add in tests for report counts at bottom of dashboardStruan Donald2012-05-16-8/+107
|
* tests for limiting by wardStruan Donald2012-05-15-1/+31
|
* tests for date counting and limiting by categoryStruan Donald2012-05-15-0/+226
|