aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
* Merge branch '3167-strip-space-middle'M Somerville2020-10-02-1/+2
|\
| * Don’t strip all spaces from Open311 categories.M Somerville2020-10-02-1/+2
| | | | | | | | | | | | If a category’s send method is Open311, only strip spaces from the ends of the code. We are aware of active Open311 servers that have codes with spaces in the middle.
* | Merge branch 'deleted-response-priorities'M Somerville2020-10-02-0/+12
|\ \
| * | Do not display deleted priorities in inspect form.M Somerville2020-10-02-0/+12
| |/
* / Record whether report made on desktop or mobile.M Somerville2020-10-02-1/+1
|/
* Merge branch 'issues/commercial/1928-html-in-response-templates'M Somerville2020-09-30-9/+153
|\
| * Translate HTML to text for update alert emails.M Somerville2020-09-30-2/+2
| |
| * Enable HTML in update alert emails.Dave Arter2020-09-30-0/+43
| |
| * Enable HTML in updates from staff usersDave Arter2020-09-30-9/+110
| | | | | | | | This also extends to response templates.
* | Show error if text confirmation code sending failsM Somerville2020-09-25-22/+39
| |
* | Split up two username fields.M Somerville2020-09-25-69/+97
| | | | | | | | | | | | Rename the not-logging-in username field to username_register. Keep the sign-in field as username because that e.g. overlaps with auth code in two-factor authentication.
* | If text auth on, ask which method they wish to useM Somerville2020-09-25-13/+36
| |
* | Show username error in correct place only.M Somerville2020-09-25-4/+39
|/
* fix using multiple disable messages on category questionsStruan Donald2020-09-25-0/+19
| | | | | | Provide a stopper per disable message, rather than per question. Previously there was one stopper per dropdown so only the last message encountered was used.
* do not use an invalid update state in a testStruan Donald2020-09-14-3/+4
| | | | | It's not possible to every have a comment where mark_fixed is true and the problem_state is 'fixed - council' so update the test accordingly.
* Don’t display duplicate categories in filter on /around and /myDave Arter2020-08-28-0/+31
|
* [UK] hide change asset button if category drop downs hiddenStruan Donald2020-08-21-0/+4
| | | | | | | | | The change asset button code relies on the category drop downs being visible which requires either the change report category or inspect report permissions. Hide the button if these are not present and only fire the update button code if it's present. Fixes mysociety/fixmystreet-commercial#1961
* Allow one more zoom level on most map types.M Somerville2020-08-14-1/+1
| | | | Not on StreetView/OpenMap Local based, which are not available.
* Offline process for CSV generation.M Somerville2020-08-11-0/+37
| | | | | Include a status page, the option for access token requests to use this system, and a script for manual generation.
* Add database index for user full text search.M Somerville2020-08-06-2/+0
|
* 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.