aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
...
| * Allow enforcement of 2FA for staff users.Matthew Somerville2019-10-30-15/+111
| |
| * Require code to be entered when activating 2FA.Matthew Somerville2019-10-28-6/+15
| |
| * Allow non-superusers to store 2FA secrets.Matthew Somerville2019-10-28-4/+9
| |
| * Remove unused inspection required/reputation code.Matthew Somerville2019-10-28-120/+0
| |
* | Fix some tests not running offline.Matthew Somerville2019-10-28-4/+6
|/
* Merge remote-tracking branch 'origin/master'Matthew Somerville2019-10-28-0/+47
|\
| * add a get_extra_field method to Extra roleStruan Donald2019-10-28-0/+47
| | | | | | | | | | accepts name or code for finding the field. Useful for checking for individual open311 fields that don't have a value.
* | Allow editing of category name.Matthew Somerville2019-10-25-1/+16
| |
* | Make contact edit note optional on staging sites.Matthew Somerville2019-10-25-1/+1
|/
* [Westminster] Test warnfixes.Matthew Somerville2019-10-14-4/+5
|
* Test warnfix on confirmed comments lacking time.Matthew Somerville2019-10-14-7/+7
|
* [Oxfordshire] Remove defect type front end code.Matthew Somerville2019-10-10-27/+0
|
* [Oxfordshire] Remove raise defect/inspected code.Matthew Somerville2019-10-10-30/+1
|
*---. Merge branches 'use-right-asset-name', 'deadlock', ↵Matthew Somerville2019-10-04-127/+131
|\ \ \ | | | | | | | | | | | | '2469-fancy-admin-category-form' and 'fix-missing-body-message-flash'
| | | * Rename variable that shows missing body message.Matthew Somerville2019-10-03-0/+12
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Restructured admin category extra-metadata-formZarino Zappia2019-10-03-66/+56
| |/ |/| | | | | | | | | | | | | | | * 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-61/+63
|/
* Merge branch '2469-improve-admin-category-form'Matthew Somerville2019-09-30-4/+46
|\
| * Add top disable-form field to admin category form.Matthew Somerville2019-09-30-0/+18
| |
| * Rejig top-level part of admin category form.Matthew Somerville2019-09-30-4/+3
| | | | | | | | Co-Authored-By: Zarino Zappia <mail@zarino.co.uk>
| * Add two new helper functions to Roles::Extra.Matthew Somerville2019-09-30-0/+25
| | | | | | | | For updating/removing an extra field.
* | Merge branch 'zurich-staging'Matthew Somerville2019-09-30-2/+2
|\ \
| * | [Zurich] Allow external body to link to a categoryMatthew Somerville2019-09-30-2/+2
| |/
* | [IsleOfWight] do not send comment recording triage actionStruan Donald2019-09-27-2/+1
| | | | | | | | | | This is only used for audit purposes on FixMyStreet and not required in Confirm.
* | do not send triage comments in alertsStruan Donald2019-09-27-0/+15
| | | | | | | | | | | | 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] add an admin interface to triage reportsStruan Donald2019-09-27-0/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | [IsleOfWhite] make sure category_extras uses correct nameStruan Donald2019-09-27-0/+2
|/
* Improve user flow when JavaScript is not availableMatthew Somerville2019-09-05-0/+47
| | | | | | | This improves the reporting journey to only ask for category, and then category extra questions if appropriate, first, so that if the choice would lead to the form being disabled, this can be shown immediately.
* Slightly simplify new report category handling.Matthew Somerville2019-09-05-9/+0
|
* Allow contact send method to be unset always.Matthew Somerville2019-09-05-0/+18
| | | | | | If a body was set to Open311, and a contact set to Email, it was impossible to unset the contact's send method and set an Open311 code, because it would always demaned a valid email address.
* Merge branch 'issues/1515-disable-form-flag'Matthew Somerville2019-08-29-0/+33
|\
| * Allow form-disabling per Open311 question answer.Matthew Somerville2019-08-29-1/+9
| |
| * Add admin to disable reporting form per category.Dave Arter2019-08-29-0/+25
| | | | | | | | | | Remove all existing hard-coded register_category calls, and have a new way of implementing staff_ignore.
* | Make sure anonymous reports are marked anon irrespective of permissionsDave Arter2019-08-29-0/+55
|/ | | | | | | | | | | | | | There was a small bug where the 'default_to_body' permission would override the 'report anonymously' button when staff users were adding reports to the site. The result of this was that the name of the anonymous user record would be shown. No harm done, as that user's name would likely be set to "Anonymous user" in config, but it resulted in reports pages showing the slightly odd wording along the lines of: Reported in the Bin bags category by Anonymous user at 14:57 today This commit ensures the contributing_as_body flag is mutually exclusive with the 'report_anonymously' request parameter.
* [Open311] Add 'protected' category extra flag.Struan Donald2019-08-23-0/+6
| | | | | If an extra field on a category has a protected flag then do not overwrite or remove it when populating categories.
* Include user admin links in contact form emailsZarino Zappia2019-08-23-0/+64
| | | | | | | | | | | | | | | If a message is sent via the contact form, with a stated email address matching a user in the database, the resulting email will now include quick links to: - Admin page for editing the user - Admin page for viewing the user’s reports And if the user has made at least one report, also: - Admin page for the user’s most recent report This should speed up admin email triage considerably.
* Don’t reveal private report lat/lon in ‘report another’ linkDave Arter2019-08-19-0/+6
|
* [Westminster] Disallow TfL categories on cobrandDave Arter2019-08-18-1/+1
| | | | Also tidies up the categories_restriction query for Northamptonshire.
* Allow OIDC auth to provide its own ‘change password’ URIDave Arter2019-08-16-0/+5
|
* Add test for viewing existing reports when using social sign-inDave Arter2019-08-16-1/+11
|
* [Westminster] Remove confirm/sign in by email.Matthew Somerville2019-08-16-1/+1
|
* Enable passing of ‘filter_group’ param to / to pre-filter /around mapDave Arter2019-08-16-2/+3
|
* Enable passing of ‘filter_category’ param to / to pre-filter /around mapDave Arter2019-08-16-0/+6
|
* [Westminster] Disable all updates.Matthew Somerville2019-08-16-0/+3
|
* Add test for OIDC logout redirectionDave Arter2019-08-16-0/+12
|
* Improve checking of OIDC ID tokens, and handle OIDC forgotten password flow ↵Dave Arter2019-08-16-1/+3
| | | | correctly
* [Westminster] Store user CRM ID when logging in via MyWestminsterDave Arter2019-08-16-0/+23
|
* Allow anonymous submission by a button.Matthew Somerville2019-08-16-0/+72
|
* Improve user-anonymous reporting.Matthew Somerville2019-08-16-0/+92
| | | | | Make it more like the staff-creation, with no confirmation email, and no messing with the user.
* Add OpenID Connect login functionalityDave Arter2019-08-16-41/+103
|