aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* 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-5/+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.
* [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).
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-182/+236
|
* Add method to shortlist multiple reportspezholio2017-05-05-0/+14
|
* Subscribe inspectors to updates when state changespezholio2017-05-05-1/+10
|
* Move alert signup logic out of controllerpezholio2017-05-05-15/+29
|
* Redirect to report for inspectorspezholio2017-05-05-6/+12
|
* [Oxfordshire] Include nearest info in RDI output.Matthew Somerville2017-05-02-1/+9
|
* Tidy up find_closest* functions.Matthew Somerville2017-05-02-46/+47
| | | | | Allow find_closest to be called multiple times with only one lookup, and to return just its data, not a compiled string.
* Merge branch '1374-better-send-method-lookup'Matthew Somerville2017-04-13-7/+5
|\
| * Don't error when devolved body, blank send methodsMatthew Somerville2017-04-12-7/+5
| | | | | | | | | | | | | | The check assumed that if a body was devolved, either the contact or the body would have a send method. Instead, use a contact send method if devolved and it exists, a body send method if it exists or the fallback if neither. Fixes #1374.
* | On /reports maps, only include reports in view.Matthew Somerville2017-04-13-0/+6
| | | | | | | | | | | | | | | | | | Update the reports with a bounding box, similar to on around pages. This is made slightly trickier because we don't want to do anything on page load (we already have the pins), we need to reload when the zoom changes, and we don't want the strategy to get confused by its first redraw, e.g. on pin hover, We also need to turn off the zoom- to-bounds if we've got a bounding box in the URL.
* | Fix issue with categories with regex characters.Matthew Somerville2017-04-13-8/+9
|/ | | | | | As the templates were using `grep`, they failed to match on a category such as "Footpaths (right of way)". Changing the stash variables to be hashes instead of lists makes checking for a key simpler. Fixes #1688.
* Allow comma-separated contact emails in the adminDave Arter2017-04-10-3/+4
| | | | | | | The report-sending code has allowed multiple emails for a long time, but the admin wouldn't allow you to enter multiple emails for each contact. Fixes mysociety/FixMyStreet-Commercial#835
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-144/+2
|
* Merge branch 'dominican-republic-improvements'Matthew Somerville2017-03-31-3/+3
|\
| * Improve translatability of various pages.Dave Arter2017-03-30-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes the following parts of the site translatable: - Social login buttons - Moderation UI - Offline glitch page & offline caching UI - Dashboard It also fixes a bug in the nget parser, stops some Oxfordshire bits being translated for the moment, and brings the translation file up to date.
* | Use OSM geocoder for Bristolpezholio2017-03-30-0/+4
|/
* Merge branch '1639-email-ascender'Matthew Somerville2017-03-28-122/+66
|\
| * Upgrade to using Email::Sender.Matthew Somerville2017-03-28-122/+66
| | | | | | | | | | | | | | | | | | | | Email::Send is long deprecated and uses submodules that no longer work correctly (e.g. Net::SMTP::TLS breaks with recent IO::Socket::SSL). We create an Email::Sender subclass to perform the same functionality and this also simplifies the email code with simpler envelope handling. Bundle Email::Sender::Transport::SMTP to include fix from https://github.com/rjbs/Email-Sender/issues/46
* | Merge branch 'offline-tests'Matthew Somerville2017-03-28-2/+3
|\ \
| * | Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-1/+1
| | |
| * | Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-0/+1
| |/
| * Fix warning, use correct user object in delete logMatthew Somerville2017-03-17-1/+1
| |
* | Add customisable defect types.Dave Arter2017-03-23-11/+341
|/ | | | | | | | | Problems can have an associated defect type, that can be assigned during an inspection. Include an admin interface for managing these types, that can also be assigned on a per-category basis, currently available to the Oxfordshire cobrand. (Also include 'TM' in traffic management Exor RDI output.)
* [fixmystreet.com] Fix WestBerkshire cobrand.Matthew Somerville2017-03-17-1/+1
|
* Merge branch 'fix-open311-json-output'Matthew Somerville2017-03-17-35/+26
|\
| * Remove superfluous lists from Open311 JSON output.Matthew Somerville2017-03-17-35/+26
| | | | | | | | | | | | | | The Open311 JSON output was wrapping each request parameter in a list. This was presumably to prevent the XML output including the parameters as attributes rather than children. A better way to fix this is to use the NoAttr parameter to XMLout which forces them to be children.