aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-5/+9
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* Use EncodedColumn subclass.Matthew Somerville2019-05-02-81/+81
|
* Refactor datetime inflation.Matthew Somerville2019-05-02-185/+247
|
* Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-0/+5
|\
| * Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-0/+5
| |
* | Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-6/+6
|/
* Make sure MapIt generation always used if given.Matthew Somerville2019-04-01-3/+5
|
* Show all Open311 extra fields in edit admin.Matthew Somerville2019-03-07-3/+0
| | | | Otherwise any such fields are lost upon a manual edit.
* Make sure raw RABX column is utf8-encoded.Matthew Somerville2019-03-06-4/+8
| | | | | | | | | | | | Without doing this, a call to e.g. $contact->set_extra_fields(@meta) in PopulateServiceList.pm, with an unchanged meta that contains some Unicode values, can write to the database (and cause an unneeded row in the history table), because the column from the database is UTF-8 decoded, whilst the new text is UTF-8 encoded. It looks like an attempt was made in filter_from_storage to fix this issue, but the column comparison for marking a column as dirty takes place without this being called.
* Refactor nearby() to use named parameters not listMatthew Somerville2019-02-25-12/+12
|
* Filters out hidden reports from top 5 list.Joe Siltberg2019-02-25-0/+1
|
* [FixaMinGata] Adds a cobrand hook (threshold for responsiveness top 5 list)Joe Siltberg2019-02-25-6/+10
| | | | Fixes #1957
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-12/+27
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* Make front page cache time configurable.Matthew Somerville2019-02-04-4/+8
| | | | | Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
* Don’t show creation diffs with old history entries.Matthew Somerville2019-01-17-0/+2
| | | | | Old moderation history entries will have blank category/co-ords, and we don’t want to say they’ve changed on appearance.
* Include moderation history in report updates.Matthew Somerville2019-01-16-0/+7
| | | | | | If the user has moderating permission, or a cobrand allows the viewing of moderation history, show moderation history within the updates on a report page.
* Only show extra items that diff in moderation.Matthew Somerville2019-01-15-1/+1
|
* Check cached reports have photos before showing.Matthew Somerville2019-01-10-1/+1
|
* add private only report filterStruan Donald2019-01-04-4/+13
|
* Show all questionnaire responses lacking updates.Matthew Somerville2018-12-20-0/+7
| | | | | | Since questionnaire responses were recorded on email link click, we should have been showing those that reopened or fixed reports, not just steady-state "Still open" ones.
* [fixmystreet.com] More categories in fixture.Matthew Somerville2018-12-08-2/+18
|
* Associate moderation history with admin log.Matthew Somerville2018-11-27-36/+22
|
* Show moderation history in report/update admin.Matthew Somerville2018-11-26-0/+130
|
* Store all moderation change history in database.Matthew Somerville2018-11-26-18/+16
| | | | | Currently keeping the same front end functionality of only reverting to the original.
* Mark moderation_original_data extra as RABXColumn.Matthew Somerville2018-11-19-1/+6
|
* Store more original stuff on moderation.Matthew Somerville2018-11-16-2/+10
|
* add report_mark_private permissionStruan Donald2018-11-12-1/+2
| | | | | | | | Allows user's to see the inspector panel to mark reports as Private, and also to view those non-public reports. Useful for call centre staff who want to record private reports but don't need to other permissions. Fixes mysociety/fixmystreet-commercial#1213
* Deal with possible multiple send_method_useds.Matthew Somerville2018-11-06-1/+7
|
* Add configuration option to show staff user name as well as body nameJoe Siltberg2018-11-05-1/+3
| | | | | | | This adds a cobrand configuration option for always showing the body user's name in updates. Fixes #1860
* Have body.url work in hashref lookup.Matthew Somerville2018-10-10-3/+18
| | | | | | | body.url could still be in use by old-school /reports table index pages (though they were dropped in 2.1, so a cobrand would have to have overridden it since then) and the update to speed up body lists in #2248 broke it. This puts it back in minimal form.
* Merge branch 'send-reopen-comment-option'Matthew Somerville2018-10-09-5/+25
|\
| * Remove hard-coded body name in Problem.Matthew Somerville2018-10-09-4/+4
| | | | | | | | We can now use the new open311_post_update_skip function.
| * Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-1/+21
| |
* | front end category testsStruan Donald2018-10-09-3/+5
|/ | | | Check selecting a category and selecting a sub category
* Dashboard update CSV export.Matthew Somerville2018-10-03-0/+23
|
* Some minor function refactoring.Matthew Somerville2018-10-03-14/+12
|
* Adapt fixture script to be non-random on request.Struan Donald2018-10-02-2/+2
| | | | | The existing fixture script generates random results so is no use for front end testing.
* Speed up fetching lists of bodies.Matthew Somerville2018-09-25-5/+74
| | | | | | Use a HashRefInflator wherever all_sorted is used, with consequential changes to deal with it now not being an object (e.g. add some with_* functions for manual fetching of extra data).
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-0/+11
|
* Prevent scan of all problems on /_dev pages.Matthew Somerville2018-09-12-2/+2
|
* Fix reference issue in can_moderate.Matthew Somerville2018-09-06-2/+2
| | | | Arguments in TT functions are passed as a hashref.
* Allow cobrand to add extra ability to moderate.Matthew Somerville2018-08-29-2/+16
|
* Move moderation check to own function, tidy up.Matthew Somerville2018-08-28-2/+11
|
* [Lincolnshire] Show external ID on report pagesDave Arter2018-08-17-1/+1
|
* Fix inspector dragging of pins.Matthew Somerville2018-08-09-0/+1
|
* Only display reports from last 6 months on around.Struan Donald2018-07-03-1/+7
| | | | | | | Add a checkbox to show older reports, plus if we get to the end of the new reports then instead of a Next button show a "show older" button that will reload the current page but with older reports also loaded. Wire it all up into the pushState code as well.
* Use CSV escaping for categories in URLs.Matthew Somerville2018-06-21-0/+12
| | | | | Categories could contain commas, so splitting on comma is not good enough. Let’s escape the fields as if it’s a line in CSV. Fixes #2166.
* Use correct created column in problem timeline.Matthew Somerville2018-06-13-3/+3
| | | | The User model now also has a created column.
* include automated field when editing contactsStruan Donald2018-06-11-3/+11
| | | | | | | | Display fields that are automatically filled in the contact editing form otherwise the data is lost. Also include the automated field in the form. Fixes #2136
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-7/+66
|\