aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* [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.
* | Merge branch 'reduce-the-stats-more'Matthew Somerville2017-03-17-9/+9
|\ \ | |/ |/|
| * Do upload_dir check on start up, not each report.Matthew Somerville2017-03-15-9/+9
| | | | | | | | | | If we're chugging through a list of reports, this save on a lot of pointless statting of the upload directory which we know is there.
* | [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-21/+0
|/ | | | This has been running for a year, added in e17eb20.
* Merge branch '1660-moderating-influence'Matthew Somerville2017-03-14-3/+9
|\
| * Use name at time of moderation, include superusersMatthew Somerville2017-03-14-2/+7
| | | | | | | | This works better if e.g. a user stops being associated with a body.
| * Store user object when deleting report.Matthew Somerville2017-03-14-1/+2
| |
* | Use sender in From if From and To domains match.Matthew Somerville2017-03-14-1/+3
| | | | | | | | | | | | To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419
* | Remove duplicate <> around envelope senders.Matthew Somerville2017-03-14-9/+6
|/
* Allow superuser to leave update when inspecting.Matthew Somerville2017-03-10-1/+2
|
* Add is_in_progress Problem helper.Matthew Somerville2017-03-10-0/+10
|
* Merge branch 'issues/forcouncils/174-dupe-user-tweaks'Matthew Somerville2017-03-09-18/+22
|\
| * Check cobrand users list when admin merging users.Matthew Somerville2017-03-09-1/+8
| |
| * Make sure emails are lowercased in admin.Matthew Somerville2017-03-09-17/+14
| |
* | Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-80/+124
|/ | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* Only output appcache/manifest for shortlist users.Matthew Somerville2017-02-28-2/+8
| | | | The interception of 404s etc is too much of an inconvenience.
* Merge branch 'reduce-the-stats'Matthew Somerville2017-02-28-7/+2
|\
| * Assume photo ID given in database exists on disk.Matthew Somerville2017-02-28-6/+1
| | | | | | | | | | | | | | The list code was checking the photo ID given in the database existed on disk – this shouldn't ever not be the case, and if it was, all that would happen would be a broken image when the full photo code looks for it (this is only for e.g. lists of reports).
| * Do not re-stat non-existent files.Matthew Somerville2017-02-28-1/+1
| | | | | | | | | | The versioning code wasn't remembering when it had found that a file did not exist, so was checking for them each time.
* | [Oxfordshire] Use 'days ago' format on problem listspezholio2017-02-27-0/+27
|/ | | | Fixes mysociety/fixmystreetforcouncils#98
* Reports need external_id to be included in RDI downloadDave Arter2017-02-20-0/+1
| | | | | | | | | | | Reports in the generated Exor RDI file need to have an external_id so they can be linked to existing enquiries (PEMs) when the RDI is imported into Exor. There is a small window of opportunity for a report to be created, inspected and downloaded in an RDI before it's been sent to Exor via Open311 and had an external_id assigned. This commit closes that window by excluding reports from the RDI that don't have an external_id. Fixes mysociety/fixmystreetforcouncils#168
* Send open reports regardless of current stateDave Arter2017-02-20-3/+3
|
* [Oxfordshire] Add Exor RDI file download featureDave Arter2017-02-15-3/+255
| | | | | | | | | | The RDI file format encapsulates information about inspections that have taken place, and can be uploaded into Exor to create defects in bulk. This commit adds a page to the Oxfordshire cobrand's admin allowing RDI files to be generated and downloaded from FMS. For mysociety/fixmystreetforcouncils#127
* [Oxfordshire] Add initials field to admin user edit formDave Arter2017-02-15-0/+23
|
* Allow cobrands to control which states affect reputationDave Arter2017-02-15-1/+13
| | | | | | | | | | | | Rather than assigning +1 to a user's reputation every time a report is inspected, this allows cobrands to specify which states should increment or decrement the reputation value when a report is inspected. The default behaviour is for reputation to never be changed, but the Oxfordshire cobrand will increment the reputation when a report is marked as 'action scheduled'. For mysociety/fixmystreetforcouncils#119
* Clarify ‘inspected’ behaviourDave Arter2017-02-15-5/+10
| | | | | | A report is now considered 'inspected' if its state was changed by an inspector. Additionally, an AdminLog entry is created so the time of inspection and inspector can be recorded.
* Add external_id field to ResponsePriority for use with ExorDave Arter2017-02-15-2/+5
|
* Add cobrand call_hook fn, calls a fn if defined.Matthew Somerville2017-02-15-25/+23
|
* [Oxfordshire] Old report archiving scriptpezholio2017-02-15-0/+141
| | | | | | | | | | | | | | | This script can be used for the bulk closure of old reports that haven't been updated in a long time. Reports that haven't been updated in a *really* long time (since 2014, by default) are simply closed, and those that haven't been updated since 2015 (by default) are closed and an email explaining the closure is sent to the report creator. This script can be used for other cobrands, but they'll need an archive.{txt,html} template in order for the emails to be sent. For mysociety/fixmystreetforcouncils#51
* Use Token params for redirect on loginpezholio2017-02-15-3/+7
| | | | | Tokens can include a 'p' field in their data to set query params for the post-login redirect URL.
* Add Problem->tokenised_url for logging user inpezholio2017-02-15-0/+26
| | | | | | This method creates a token that logs the reporting user in, optionally with some parameters which are stored with the token for use when redirecting after login.
* Add Problem->time_ago for pretty-printed durationpezholio2017-02-15-0/+14
|
* Redirect to category-filtered /reports on loginDave Arter2017-02-14-1/+20
| | | | If the user has a from_body and at least one category set.
* Follow redirect to /admin after login if allowedDave Arter2017-02-14-1/+1
|
* [Harrogate] Remove unused cobrandDave Arter2017-02-09-290/+0
|
* [Oxfordshire] Allow cobrand-specific traffic management optionsDave Arter2017-02-08-0/+29
| | | | Fixes mysociety/fixmystreetforcouncils#159
* Fix crash on reports with empty bodies_strDave Arter2017-02-07-1/+4
|