aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* Fix update-all-reports when database empty.Matthew Somerville2017-07-18-1/+6
|
* Spot email sending success, use on contact page.Matthew Somerville2017-07-18-7/+7
|
* Log error if bad SMTP_TYPE config given.Matthew Somerville2017-07-18-1/+4
| | | | Ignore case of config variable.
* Use DateTime in update-all-reports for tests.Matthew Somerville2017-07-17-6/+8
| | | | The test fixes DateTime, which wouldn't affect direct database queries.
* Add Body::first_area_children methodDave Arter2017-07-17-0/+12
|
* Include area stats in all-reports.jsonDave Arter2017-07-17-14/+26
| | | | | | | This makes it possible to display stats per area on /reports Cobrands using this functionality should use the pre-dashboard reports/index.html template and pass --areas when calling bin/update-all-reports
* Merge branch 'issues/forcouncils/192-unused-categories'Matthew Somerville2017-07-14-57/+50
|\
| * Only use active categories for making new reports.Matthew Somerville2017-07-14-2/+7
| | | | | | | | | | Inactive ones can still be used for e.g. list filtering, but not when making a new report.
| * Add inactive state to categories.Matthew Somerville2017-07-14-55/+43
| | | | | | | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* | Merge branch 'new-reports-in-core'Matthew Somerville2017-07-14-46/+0
|\ \
| * | New version of /reports main page.Matthew Somerville2017-07-14-46/+0
| |/ | | | | | | | | | | | | | | | | | | | | This is a much broader summary page, plus a body name autocomplete. This was originally implemented for fixmystreet.com in 8a6a4ccb7. It also adds '(no longer exists)' in the autocomplete next to bodies not covering any areas. You can supply the `--table` argument to `update-all-reports` to generate the old-style data.
* / Allow static home page template override.Matthew Somerville2017-07-14-8/+14
|/ | | | | | If an /about/homepage.html template exists in your cobrand, it will be used as the front page, and the normal front page will be available at /report.
* [Bristol] Switch Open311 warnings off, false +ves.Matthew Somerville2017-07-08-1/+1
|
* [FixaMinGata] Consolidate with upstream.Jon Kristensen2017-07-07-0/+1
| | | | | Add hook for post-title field content in report form. Update translations.
* [fixmystreet.com] Fix /reports displaying months.Matthew Somerville2017-07-07-16/+26
| | | | | | Month strings weren't escaped in data label, and would never match database data (using month number). Also issues displaying current day/month in graph.
* [fixmystreet.com] Fixed includes questionnaires.Matthew Somerville2017-07-07-1/+4
| | | | Questionnaire responses don't currently set problem_state.
* Merge branch 'issues/forcouncils/195-overloaded-action-scheduled'Matthew Somerville2017-07-07-9/+10
|\
| * [Oxfordshire] Separate defect creation from state.Matthew Somerville2017-07-07-9/+10
| | | | | | | | | | | | | | Revert the behaviour from 36baff2d, so that everyone can use the 'action scheduled' state, and instead if someone with report_instruct permission has the state set to 'action scheduled', add an extra mandatory question asking whether they want to raise a defect or not.
* | [fixmystreet.com] New version of /reports page.Zarino Zappia2017-07-06-7/+185
| | | | | | | | | | | | | | | | | | | | | | This is a much broader summary page, plus a body name autocomplete. This uses a cut down version of chart.js. [1] [1] The full version was 149Kb (41Kb gzipped) plus you needed moment (50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs and code and config options, and switching to category axis rather than time, it is now a total of 39Kb/13Kb.
* | Merge branch 'issues/forcouncils/198-rdi-ordering'Matthew Somerville2017-07-06-42/+51
|\ \
| * | [Oxfordshire] Group RDI output by activity code.Matthew Somerville2017-07-06-42/+51
| | |
* | | [Oxfordshire] Fix bug downloading All Inspectors RDI.Matthew Somerville2017-07-06-1/+2
| |/ |/|
* | Stop using mySociety::Web and mySociety::Sundries.Matthew Somerville2017-07-06-17/+16
|/ | | | | Both uses can be covered by existing modules. This means we can drop FCGI also.
* Merge branch 'issues/forcouncils/193-state-of-the-template'Matthew Somerville2017-06-30-1/+56
|\
| * Update templates when category/state changed.Matthew Somerville2017-06-30-1/+31
| | | | | | | | | | | | When the category or state changes, the list of available templates updates (previously it was frozen at what the category was on page load, and didn't care about the state).
| * [fixmystreet.com] Template/priorities in fixture.Matthew Somerville2017-06-20-0/+25
| | | | | | | | Also include areas in auto-generated problems.
* | [UK Councils] Show all pins only on two-tiersDave Arter2017-06-26-0/+7
|/ | | | Fixes mysociety/fixmystreet-commercial#859
* Don't resend if category change subsets body.Matthew Somerville2017-06-20-3/+3
| | | | | | Instead of checking if the list of bodies has changed at all, mark the report for resending if there is a body in the new list not present in the old.
* Return Response Priorities as JSON.pezholio2017-06-20-33/+14
| | | | | This now lets the response priority and defect type handling share the same code.
* Populate defect types dropdown on category changepezholio2017-06-20-13/+68
|
* Test script should run 't' when other args given.Matthew Somerville2017-06-20-9/+9
|
* Run each test file in a transaction.Matthew Somerville2017-06-20-9/+112
| | | | This means that the tests can be run in parallel.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-63/+70
| | | | | | | | | | | | 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.
* Remove final use of old DBHandle.Matthew Somerville2017-06-20-38/+2
|
* [fixmystreet.com] Improve fixture loading script.Matthew Somerville2017-06-20-0/+155
| | | | | | Given a MapIt area ID, the script will create a body and categories, users with different levels of permissions, and some random problems and updates. It can optionally empty out the database first.
* [Borsetshire] New cobrand for fictional councilZarino Zappia2017-06-15-0/+28
|
* [Oxfordshire] Show problem state in marker tooltipZarino Zappia2017-06-10-3/+13
| | | | Add hook so that cobrands can change pin hover title.
* Refactor pretty state display.Matthew Somerville2017-06-10-31/+13
|
* [Oxfordshire] Custom pin images with iconsZarino Zappia2017-06-09-3/+11
| | | | | | | Oxfordshire map pins now have icons on, and some use different colours, to better communicate the status of reports. Fixes mysociety/fixmystreetforcouncils#170
* Allow cobrands to define pin colour for new reportsZarino Zappia2017-06-09-0/+9
| | | | | | Previously, a green marker would be used for reports as they were being created. Now, cobrands can override `pin_new_report_colour` to show a different pin image when users are creating a new report.
* Basic white label cobrand.Dave Arter2017-06-08-0/+13
| | | | | | This removes most of the FMS/mySociety branding, but uses the same logic as the fixmystreet.com cobrand wrt problem restrictions, handling, etc. Suitable for UK council demos.
* Allow users to hide their name on reports/updates.Zarino Zappia2017-05-31-2/+36
|
* Add update URL model method.Matthew Somerville2017-05-31-2/+6
|
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-2/+10
|
* [Bromley] Restore staff update functionDave Arter2017-05-30-1/+2
| | | | | | The Bromley update form needed to be updated to use the new <select> template. This also fixes a situation where staff users (on all cobrands) wouldn't be able to leave updates on problems with state 'fixed - user'.
* Use same state input in update form as elsewhere.Matthew Somerville2017-05-26-8/+2
| | | | This lets it look the same as admin/inspect uses, with optgroups.
* Merge branch '1695-scientific-no-tation'Matthew Somerville2017-05-23-1/+3
|\
| * [UK] Stop nearest request with scientific notationMatthew Somerville2017-05-18-1/+3
| | | | | | | | | | | | If the longitude was very close to 0, it was being sent as e.g. 1e-6 in the request to MapIt. Mock out the Bing query so that this can be tested (the closest.t tests were previously always being skipped).
* | [Bristol] Switch warn threshold to five failures.Matthew Somerville2017-05-19-4/+22
|/
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-182/+236
|