aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
Commit message (Collapse)AuthorAgeLines
* [Peterborough] Exclude email categories from cobrandDave Arter2019-10-21-0/+13
|
* [Peterborough] Add USRN/site_code lookupDave Arter2019-10-21-0/+22
|
* [Peterborough] Confirm-specific configurationDave Arter2019-10-21-0/+31
| | | | | | - Apply Confirm validation rules - Add admin_user_domain and Confirm-required open311 fields - Prefix Open311 updates with notice that it’s come from FMS
* [Peterborough] Initial cobrandMartin Wright2019-10-21-0/+33
|
* [fixmystreet.com] Generalise emergency message script.Matthew Somerville2019-10-21-0/+2
|
* [IsleOfWight] do not mention council in not responsibleStruan Donald2019-10-18-0/+1
| | | | | | Use Island Roads in place of council in not responsible message. Fixes mysociety/fixmystreet-freshdesk#93
* Merge branch 'issues/commercial/1538-heatmap'Matthew Somerville2019-10-15-154/+190
|\
| * Generalise heatmap code to be under /dashboard.Matthew Somerville2019-10-15-101/+118
| |
| * Default dashboard users to cobrand they are on.Matthew Somerville2019-10-14-7/+12
| |
| * Refactor Reports controller a bit.Matthew Somerville2019-10-14-54/+76
| | | | | | | | | | Split load_and_group_problems in two, split out category list/map setup, and factor out sort stash setting. No actual changes.
| * [Isle of Wight] Allow pagination of triaged categories.Matthew Somerville2019-10-14-10/+2
| |
* | Test warnfix on confirmed comments lacking time.Matthew Somerville2019-10-14-0/+1
| |
* | [Bexley] No P1 email on lighting, allow multiple.Matthew Somerville2019-10-11-3/+4
|/
* [Oxfordshire] Remove defect type front end code.Matthew Somerville2019-10-10-21/+0
|
* [Oxfordshire] Remove raise defect/inspected code.Matthew Somerville2019-10-10-9/+0
|
* [Oxfordshire] Remove unused Exor RDI code.Matthew Somerville2019-10-10-339/+0
|
* [Westminster] Exclude .com updatesDave Arter2019-10-07-0/+9
|
* Respect cobrand updates_restriction when dealing with commentsDave Arter2019-10-07-10/+10
| | | | Allows limiting display, moderation and photos of comments.
* [Northants] Blue pins and no ID for body reports.Matthew Somerville2019-10-04-0/+11
|
*---. Merge branches 'use-right-asset-name', 'deadlock', ↵Matthew Somerville2019-10-04-36/+65
|\ \ \ | | | | | | | | | | | | '2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
| | | * Rename variable that shows missing body message.Matthew Somerville2019-10-03-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the around page includes a copy of the reporting form (when JS is available), it runs the same templating code that the reporting form does. Part of this code compares the bodies and bodies_to_list stash variables to see whether it needs to display a message about missing body information. Previously both variables were empty on the around page itself, so no message would be shown, but a new bodies variable was added in 4668f81a, which meant the message was now output in the HTML and shown briefly when the map was clicked - until updated by a server response). Rename the variable so that this no longer occurs.
| | | * Do not generate map data unless needed.Matthew Somerville2019-10-03-3/+2
| |_|/ |/| | | | | | | | This saves e.g. a call to Gaze on successful report submission.
| | * Restructured admin category extra-metadata-formZarino Zappia2019-10-03-29/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Much simplified display of metadata field options. * Fields can now be dragged into the desired order. * Drop-down question form disabling can now have a different message per option. Co-Authored-By: Matthew Somerville <matthew@mysociety.org>
| * | Per-test file email addresses.Matthew Somerville2019-10-03-2/+25
|/ /
* | Stop empty Open311 group causing duplicate historyMatthew Somerville2019-10-03-0/+7
| | | | | | | | | | | | | | | | It arises that <group></group> now passes to the code as a one-element list containing undef, which compared differently to what was stored - the code assumed lists would contain things. A new changelog entry was created each time. Hopefully resolve this once and for all by treating groups more formally and making sure we always have lists to compare.
* | [IsleOfWight] lookup site_code if missing from reportStruan Donald2019-10-01-0/+17
|/ | | | Mostly to handle the lack of assets in the mobile app
* [IsleOfWight] hide reports created before go liveStruan Donald2019-09-30-0/+11
|
* Merge branch '2469-improve-admin-category-form'Matthew Somerville2019-09-30-2/+85
|\
| * Add top disable-form field to admin category form.Matthew Somerville2019-09-30-2/+35
| |
| * Add two new helper functions to Roles::Extra.Matthew Somerville2019-09-30-0/+50
| | | | | | | | For updating/removing an extra field.
* | Merge branch 'zurich-staging'Matthew Somerville2019-09-30-18/+117
|\ \
| * | [Zurich] Do not override envelope sender.Matthew Somerville2019-09-30-13/+0
| | |
| * | [Zurich] Treat closed/fixed the same in filter.Matthew Somerville2019-09-30-1/+9
| | |
| * | [Zurich] Fix category dropdown on /reports.Matthew Somerville2019-09-30-0/+8
| | |
| * | [Zurich] Set envelope for external body emails.Matthew Somerville2019-09-30-3/+34
| | |
| * | [Zurich] Include administrative district in admin.Matthew Somerville2019-09-30-0/+37
| | |
| * | [Zurich] Sort categories in admin alphabetically.Matthew Somerville2019-09-30-2/+4
| | |
| * | [Zurich] Add admin label attribute for categories.Matthew Somerville2019-09-30-2/+3
| | |
| * | [Zurich] Show relevant external bodies in admin.Matthew Somerville2019-09-30-3/+21
| | |
| * | [Zurich] Allow external body to link to a categoryMatthew Somerville2019-09-30-5/+12
| | |
| * | [Zurich] Use Beantwortet on external banner.Matthew Somerville2019-09-30-2/+2
| |/
* | [IsleOfWight] do not send comment recording triage actionStruan Donald2019-09-27-1/+2
| | | | | | | | | | This is only used for audit purposes on FixMyStreet and not required in Confirm.
* | [IsleOfWight] ignore description on fetched reportsStruan Donald2019-09-27-0/+3
| | | | | | | | | | Use a generic report description for fetched reports rather than the one fetched over open311
* | improve report new munge namesStruan Donald2019-09-27-3/+3
| |
* | [IsleOfWight] limit filter category on national around pageStruan Donald2019-09-27-9/+21
| | | | | | | | | | | | | | | | | | Only display non triage categories on this because getting the category expansion to work if we use the triage categories isn't in place and may not be. This is because when we get the list of reports using /around/ajax there's no way to know which body it is for so we don't know how to expand a triage category to the list of 'child' categories. So, just display the non triage ones for now.
* | do not send triage comments in alertsStruan Donald2019-09-27-1/+14
| | | | | | | | | | | | add a check into the Alerts script to skip comments that have `triage_report` set in extra. Otherwise we send these our in new_updates alerts.
* | [IsleOfWight] correctly filter categories on report pageStruan Donald2019-09-27-8/+105
| | | | | | | | | | | | | | | | If it's a standard user only display the Triage category list but if one of these is selected then look up all the categories in that group and use those to select the reports to display. It it's a staff user then ignore the Triage categories.
* | [IsleOfWight] correctly handle triage categories on reports/around pagesStruan Donald2019-09-27-7/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add in some cobrand handlers to make sure a) the appropriate categories are show to staff/non staff users on the around and reports pages b) that those categories are correctly expanded to the child categories when using the category filter to search reports This is because non staff users should only be shown Isle of Wight categories with a send_method of 'Triage', however once those reports are triaged the post triage categories need to be included in any filtering
* | [IsleOfWight] add an admin interface to triage reportsStruan Donald2019-09-27-11/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On reports with a state of `for_triage` override the `_inspect.html` template to display one which allows only allows the user to change the category from one with a 'Triage' send_method to a non Triage send_method. When saved this records a comment with the original category and the category it was triaged to. This is hidden from the site as it's only used for audit purposes and sending over Open311. This assumes that the triage categories have the same names as the groups of the confirm categories. It uses this to select the first confirm category in the group corresponding to the triage category. This also makes the sidebar geolocation onclick handler check for the presence of the button, as the triage inspect form does not have it.
* | [IsleOfWight] add Triage SendReport moduleStruan Donald2019-09-27-0/+20
| | | | | | | | sets the state of the report to `for_triage` upon sending