aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
* Add photo upload field to inspector formChris Mytton2020-08-06-2/+29
| | | | | This adds the code for photo uploads from the regular update form to the inspector form, and adds details to the documentation.
* Do not error in export if report has bad category.M Somerville2020-08-04-4/+7
| | | | | | If category groups are enabled, the CSV export includes a subcategory, but it was only fetching a valid groups value if the row's contact was found.
* Lowercase contact email when looking for user.Matthew Somerville2020-08-03-1/+1
|
* [Hounslow] skip disabled contacts in enquiry formStruan Donald2020-07-20-0/+10
| | | | | | This is largely to resolve an issue with the TfL other category appearing in the contact form even though it is disabled, and hence has no contact details.
* Merge branch '3110-deep-linking-category-group'Matthew Somerville2020-07-16-14/+21
|\
| * Select matches for both filter category and group.Matthew Somerville2020-07-16-1/+7
| | | | | | | | If both are specified, we want to treat it as an AND, not an OR.
| * Fix lookups in templates of categories with &s.Matthew Somerville2020-07-16-13/+14
| | | | | | | | | | | | A hash lookup in a template is escaping the key used, meaning the lookup is failing anywhere we are using a category containing an ampersand as a key. A continuation of the changes made in 527d763b.
* | Spot user set on update not at object creation.Matthew Somerville2020-07-16-0/+1
|/ | | | | | | The changes in 67823bc78 create the necessary metadata at the creation of a Comment object, but if the user is not included at that point but later (as is done by the normal public update flow), then it would not be created. Wrap the user accessor so we can make sure it is set.
* Merge branch 'issues/commercial/1886-site-wide-permissions'Matthew Somerville2020-07-16-0/+27
|\
| * [UK] Show message if site-wide update disallowed.Matthew Somerville2020-07-14-0/+27
| |
* | Centralise update creation to include fields.Matthew Somerville2020-07-14-24/+8
|/ | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Add option to check password on Have I Been Pwned.Matthew Somerville2020-07-07-0/+17
| | | | | | | If switched on, sends first five letters of the SHA1 hash of the entered password to HIBP's API, which then returns all matching hashes in their database of breached passwords. If we find a match, tell the user they need to pick a different password.
* [Hackney] Use cobrand feature config for email envelope domainDave Arter2020-07-02-1/+7
|
* Display contents of lists in report extra data in adminDave Arter2020-07-02-4/+16
|
* [Hackney] Enable OIDC social loginDave Arter2020-07-02-8/+54
|
* Don’t show `sent_to` on moderation diffDave Arter2020-07-02-1/+2
|
* Only show access tokens once, and store hashed.Matthew Somerville2020-06-30-13/+15
|
* Merge branch 'recaptcha'Matthew Somerville2020-06-09-0/+22
|\
| * [fixmystreet.com] Add option for recaptcha.Matthew Somerville2020-06-04-0/+22
| | | | | | | | | | We are getting spam submissions of e.g. alert subscribe form, which causes people to get a confirmation email.
* | Merge branch 'alert-active-deletion'Matthew Somerville2020-06-09-0/+2
|\ \
| * | Mark user as active when sent an email alert.Matthew Somerville2020-06-03-0/+2
| |/
* | Add Open Location Codes support to search box.M Somerville2020-06-04-0/+25
| |
* | Small refactor of around.t, add "lat,lon" test.M Somerville2020-06-04-63/+32
|/
* Make sure category shown in all its groups.Matthew Somerville2020-05-26-2/+2
| | | | | | | | When compiling the reporting category dropdown, only one instance of each value was used. But if a value appears twice, from two different bodies, in different groups, it would then not appear in all the groups it would be expected to. Make sure we update the list of groups of the category if we come across another with the same value.
* admin interface for per category anonymous reportingStruan Donald2020-05-12-0/+109
| | | | | | | | Add an interface to enable a category to accept anonymous reports, plus the code to handle permitting this. It's only available on single body cobrand sites in the default configuration.
* display user detail for contributed_by in report_editStruan Donald2020-05-12-0/+17
| | | | Include name, email and body rather than just user id.
* Merge branch 'tfl-category-restrictions'Matthew Somerville2020-05-12-5/+92
|\
| * Extend assigned_*_only to report lists.Matthew Somerville2020-05-08-1/+24
| | | | | | | | | | Shortlist buttons and extended print information will not appear where not allowed.
| * Add assigned_(users|categories)_only functionalityMatthew Somerville2020-05-08-4/+68
| | | | | | | | | | | | | | | | Users with assigned_categories_only will only see staff features on a report page in their assigned categories. Users will only see staff features on a report page in a category with assigned_users_only if it is in their assigned categories.
* | Disable rename on unprotected Open311 categories.Matthew Somerville2020-05-11-0/+2
|/ | | | | | If you rename an Open311 category when it is not protected, it will only get reinstated/deleted by the Open311 populate script shortly after, and can cause issues due to the problem category renaming that occurs.
* Fix dashboard report CSV export.Matthew Somerville2020-05-07-1/+2
| | | | | | The change to join in e16054150 did not include a collapse that the previous prefetch was doing, so multiple rows per result were being returned.
* Add way to disallow report reopening in a categoryMatthew Somerville2020-05-07-0/+22
| | | | | Add a tickbox to the category admin, and do not allow reopening on reports made in the selected categories.
* Add ability to disallow updates in a category.Matthew Somerville2020-05-06-12/+32
| | | | | Add a tickbox to the category admin, and do not allow updates on reports made in those selected categories.
* Merge branch 'comment-count-fix'Matthew Somerville2020-05-05-10/+22
|\
| * Fix sorting by most commented on /around map view.Matthew Somerville2020-05-04-10/+22
| |
* | Allow template to be an initial update on reports.Matthew Somerville2020-05-04-0/+71
|/
*---. Merge branches '2961-disable-private-tickbox', ↵Matthew Somerville2020-04-28-5/+13
|\ \ \ | | | | | | | | | | | | '2962-pin-move-category-group' and 'move-admin-index-stats-to-stats-page'
| | | * Move stats from main admin index to stats index.Matthew Somerville2020-04-24-5/+5
| | |/ | | | | | | | | | | | | These stats can take a while to generate, and we don't want to slow down people mostly coming to the admin index to do something else.
| * / Disable staff private tickbox if category private.Matthew Somerville2020-04-24-0/+8
| |/ | | | | | | | | | | | | If a category is marked private, new reports are always marked private regardless of the setting of the private checkbox shown to relevant staff when making a new report. So tick/disable this box in that situation to prevent any confusion.
* / Add contact flag to protect category/group names from Open311 changesDave Arter2020-04-28-0/+11
|/ | | | | | | Adds a new tickbox to the contact editing form that protects the category and group names from being changed by Open311. For mysociety/fixmystreet-commercial#1776
* Factor out some new report tests into own files.Matthew Somerville2020-04-24-881/+874
|
* [Buckinghamshire] Update for change to unitary.Martin Wright2020-03-31-1/+1
| | | | New unitary branding, and remove County from name.
* [Admin] Access staff-only categories in admin.Matthew Somerville2020-03-19-0/+3
|
* Add Highways England junction lookupChris Mytton2020-03-12-0/+29
| | | | | | | This is taken from the sort-my-sign repo. It allows the user to search for motorways names and junction numbers, e.g. "M60, Junction 2", and then geocodes that using a SQLite database created from Highways England markerpost locations.
* [UK Councils] Superusers cannot be edited by staffMatthew Somerville2020-03-09-1/+4
|
* Merge branch 'admin-only-categories'Matthew Somerville2020-02-27-203/+257
|\
| * Add a new "staff" contact state.Matthew Somerville2020-02-26-1/+31
| | | | | | | | | | This state will appear when reporting if you are logged in as a staff member of the relevant body, but otherwise not appear on the site.
| * Move staff report new tests to separate file (no changes).Matthew Somerville2020-02-26-203/+227
| |
* | Use ManifestTheme theme_colour for front page theme-color meta tagDave Arter2020-02-26-4/+7
| |
* | Show available cobrands in dropdown on FMSDave Arter2020-02-26-1/+4
| | | | | | | | | | | | | | For some reason switching to a Select stopped the update_model changes being applied when persisting the model, meaning the INSERT query failed because the cobrand column was null. This commit switches to a hidden input field for the cobrand which I’m not super keen on, but it does get the job done...