aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
* [Bromley] Use property ID, rather than UPRN.M Somerville2020-11-12-13/+14
|
* [Bromley] Check service unit as well as property.Matthew Somerville2020-11-11-2/+3
| | | | | | | If someone else in a block of flats has reported a missed collection, others in the same service unit should not be able to report also. Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1945
* [Bromley] Look for open events.Matthew Somerville2020-11-11-0/+7
|
* [Bromley] No updates on waste reports.Matthew Somerville2020-11-11-0/+4
|
* [Bromley] Send sent confirmation for waste reportsMatthew Somerville2020-11-11-3/+11
|
* [Bromley] Report missed bin within 2 working days.Matthew Somerville2020-11-11-0/+15
|
* [Bromley] ICal generation.M Somerville2020-11-11-0/+12
|
* [Bromley] Add general enquiries.Matthew Somerville2020-11-11-0/+25
| | | | This adds general enquiries to the reporting flow.
* [Bromley] Add waste reporting service.Matthew Somerville2020-11-11-0/+85
| | | | | | | This creates a non-map property-based reporting flow for reporting missed collections and requesting new containers. Such reports are always private, in categories that are hidden from the map filters and never shown on .com.
* [Bromley] Add waste service lookup.Matthew Somerville2020-11-11-0/+53
| | | | | This creates an integration to view bin collection days, and placeholders for the start of a non-map property-based reporting flow.
* prevent editing of category names with hardcoded flagStruan Donald2020-10-28-0/+65
| | | | | | | | | | | | If a category has hardcoded set to 1 in it's extra metadata then prevent the name being edited in the admin. This is to avoid issues where the name of the category is used in e.g. layers or other configuration and changing it breaks things. Also includes admin interface for setting this that is restricted to super users only. Fixes mysociety/fixmystreet-commercial#1992
* allow bulk removal of staff status from usersStruan Donald2020-10-23-0/+49
| | | | | | | Bulk option to remove body, roles and permisions, and disable login in admin for users. Fixes mysociety/fixmystreet-commercial#2025
* Fix issue with unicode in extra in alert emails.M Somerville2020-10-16-0/+2
|
* [Oxfordshire] Traffic Management out of base.M Somerville2020-10-12-16/+3
|
* [Oxfordshire] Extra questions for raising defect.M Somerville2020-10-12-0/+2
|
* [Oxfordshire] Add instruct defect functionality back inChris Mytton2020-10-12-1/+36
| | | | | | | | | | | | In the past Oxfordshire had a way for inspectors to "instruct a defect", which generated a CSV which got emailed to Oxfordshire with a list of defects. They now want to bring this functionality back, but instead of emailing a CSV they want it to call an API. As a first step towards that goal, this change adds back some of the instruct defect functionality that was removed in 68e18ff.
* do not cache the service workerStruan Donald2020-10-09-0/+1
| | | | | As the contents of the service worker vary depending on if the user is logged in don't cache it.
* Fix email alert on initial update template.M Somerville2020-10-09-0/+4
| | | | | | | | A report's confirmation timestamp uses current_timestamp, and so includes microseconds. An initial update text, to fit in with the Open311 handling of updates, uses a DateTime object, which does not. This means if a report is created when logged in, the initial update can have a timestamp earlier than the report, and so is not alerted on.
* Show all category history even if category renamedM Somerville2020-10-07-0/+1
|
* 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.