aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Result/Problem.pm
Commit message (Collapse)AuthorAgeLines
* Only return active shortlisted user for a problem.Matthew Somerville2016-10-28-4/+2
|
* Merge branch 'issues/forcouncils/100-fix-template-list'Matthew Somerville2016-10-20-4/+6
|\
| * Fix list of response templates for a problem.Matthew Somerville2016-10-20-4/+6
| | | | | | | | | | Instead of returning all templates for the problem's body, return those for the problem's category (or with no category).
* | Clarify category behaviour for response prioritiesDave Arter2016-10-19-1/+1
|/ | | | | - Priorities with no categories selected are available to all categories - Display active categories in response priorities table
* Show shortlist owner on report page.Matthew Somerville2016-10-11-0/+12
|
* Refactor problem response priority into its own modelDave Arter2016-09-09-39/+73
| | | | | | | This moves the response priority values from a cobrand-specific method to a full DB model, and includes management screens in the admin for administering them. For mysociety/fixmystreetforcouncils#66
* [Oxfordshire] Display confirmed reports as received by the CouncilDave Arter2016-09-08-0/+7
| | | | | | | | This introduces a new `is_council_with_case_management` flag for Cobrands, that, when active, considers any report that's been confirmed as having been received by the Council in question. See mysociety/fixmystreetforcouncils#65
* Add user planned reports.Matthew Somerville2016-08-22-2/+8
| | | | | | A user with the appropriate permission can add/remove reports from their list of planned reports using a button on a report page. The list can be viewed at /my/planned.
* Fix invalid SQL being generated by moderation lookupDave Arter2016-08-15-1/+1
|
* Don't error if static map tile fetch fails.Matthew Somerville2016-08-10-3/+14
| | | | Also don't fetch tiles if running tests.
* Add static map output view for a report.Matthew Somerville2016-08-01-2/+77
|
* Move photoset stuff to new Role.Matthew Somerville2016-08-01-21/+2
|
* Refactor map pin/feature functions.Matthew Somerville2016-07-21-0/+13
|
* Include link back to originating cobrand on fms.com reportsDave Arter2016-07-08-1/+6
| | | | | | | | | When viewing a report on FMS.com whose recipient council has a FMS cobrand, turns the council name into a link to view the same report on that council's cobranded site. Includes methods cribbed from Hakim's Open311 refactor branch from commit 47daa02420a4f5a4264c31efcf2a2e8611c2f23e.
* Display link to FMS for Councils on reportsDave Arter2016-07-08-0/+20
| | | | | | | | | When viewing on FMS.com a report made via a council cobrand, this adds a link to the FMS for Councils page for more info. This works by breaking out the report meta line ('Reported in the Street lighting category by Joe Bloggs at 09:51, Tuesday 1 March 2016') into its own template which can be overridden for the fixmystreet.com cobrand.
* [Zurich] Use new LV95/CH1903+ geocoder and base map tilesDave Arter2016-07-07-1/+1
| | | | | | | | | | | - Use new `getLocation95` method for geocoding addresses - Replace Coordinates::CH1903 with Coordinates::CH1903Plus - Refactor Map::Zurich to use WMTSBase instead of duplicating code - Slightly refactor map templates to make using custom WMTS tiles easier - Use correct sizes for marker pins on maps Closes mysociety/FixMyStreet-Commercial#769. Closes mysociety/FixMyStreet-Commercial#768.
* Add change_category_text cobrand hook.Matthew Somerville2016-07-06-26/+19
|
* Tidy up some UK specific easting/northing handlingMatthew Somerville2016-06-22-5/+8
|
* Move processed_summary_string function to templateMatthew Somerville2016-05-24-30/+0
| | | | Fixes #694.
* Remove some unused cobrands.Matthew Somerville2016-04-20-51/+40
|
* Add PNG image support.Matthew Somerville2016-04-08-4/+4
| | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
* Show right body user form value for fixed reports.Matthew Somerville2016-03-31-0/+13
| | | | | The form element contains 'fixed', so we need to strip the user/council part of the actual state. Fixes #1369.
* [Angus] SOAP interface/send method for Angus CRMDave Arter2016-03-29-1/+1
|
* Only load images from disk when needed.Matthew Somerville2016-02-23-1/+1
| | | | Fixes #1337.
* Factor multiple photo details into nicer function.Matthew Somerville2016-01-12-18/+23
| | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`.
* Remove most passing of Catalyst to PhotoSet.Matthew Somerville2016-01-12-6/+4
|
* [fixmystreet.com] Don't show app step if used app.Matthew Somerville2016-01-06-1/+2
| | | | Fixes #1305.
* Remove risk of infinite loop in PhotoSet.Matthew Somerville2015-12-16-1/+1
| | | | | | Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-0/+5
| | | | Maintain old location wrappers.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-1/+1
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-4/+1
| | | | And create default cobrand class without all of Moose.
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-16/+13
| | | | Command line scripts don't need a full blown app, just database.
* Move get_photo_params to Utils::Photo.Matthew Somerville2015-12-02-2/+2
|
* [Zurich] new status flagsHakim Cassimally2015-10-06-4/+0
| | | | | | | Have moved the generation of banner text from the template into problem_as_hashref See mysociety/FixMyStreet-Commercial#672
* Add "time spent" admin logging.Hakim Cassimally2015-10-06-0/+12
| | | | | | | | | | | | | | | | | | | | | Mechanism is general, but current implementation only used for Zurich. - Zurich: Record time_spent field mysociety/FixMyStreet-Commercial#676 - template changes (including jQuery spinner) - backend changes to save data are made: - in log_edit, if supplied - and time on category change (and arbitrary actions) - Add update_admin_log to all paths for DM, ensuring that it gets called, while resetting the `time_spent` parameter, to make sure that there is never a duplicate record created. - Also quell warning about using DateTime values in query. - Also add (seemingly unrelated) parens to stop misparsing of OK line in questionnaire test now that DT::Format::Pg is used in Zurich cobrand See mysociety/FixMyStreet-Commercial#676
* [Zurich] Response templates for report admin.Hakim Cassimally2015-10-06-1/+22
| | | | | | | This provides a ResponseTemplate model that an admin/staff user can choose from when responding to problems. For mysociety/FixMyStreet-Commercial#671.
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-1/+28
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* [fixmystreet.com] Remove unused Barnet code.Matthew Somerville2015-09-03-5/+2
|
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-5/+6
|
* Updates to schema from DBIx::Class loader.Matthew Somerville2015-08-19-0/+2
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-6/+6
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-20/+0
| | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* Simpler report meta information displayZarino Zappia2015-06-29-4/+4
| | | | | Removes the italics, and breaks the wording into two separate paragraphs, at the top of the report page.
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-32/+64
| | | | To allow visible/hidden states to be manipulated at runtime.
* [Zurich] add columns to stats exportHakim Cassimally2015-03-31-0/+4
| | | | | | | | | | | | | | | - Original Report description - Amended Report description (unsure what this is) - Media URL (currently one picture, in the future 1-3 pictures) - Interface used (see open311) - Requested datetime (see open311) (seems to be same as created) - Agency sent datetime (see open311) - Updated datetime (see open311) - Council-Response - title as per https://github.com/mysociety/FixMyStreet-Commercial/issues/678
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-1/+2
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* Create timezone objects only once at startup.Matthew Somerville2015-02-13-10/+2
| | | | | | 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.
* Report moderationHakim Cassimally2014-08-13-2/+37
| | | | | | | | | | | - redaction marked with [...] - of report and comments - stores original data - uses a single form, on the report/_main view - requires additional permissions (user_body_permissions) - Hide report functionality - Moderation notification/contact form - Moderation writes to admin_log
* Only return html from problem->body if we have contextStruan Donald2014-05-16-1/+1
| | | | | this means we can use this in email templates and get the correct non html text back even if AREA_LINKS_FROM_PROBLEM is true
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-9/+11
| | | | Add some comments to the top of the open311 bin scripts.