aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
* Add hook for per-row questionnaire override.Matthew Somerville2018-09-13-2/+37
|
* allow web based use of report importStruan Donald2018-09-13-1/+16
| | | | | | | | if a web parameter is passed to /import then display the email confirmation sent page rather than a SUCCESS message. Enables this page to be used for creating partial reports from a web page. For mysociety/collideoscope#17
* Add cobrand hook for disallowing title moderation.Matthew Somerville2018-09-13-0/+25
|
* Merge branch 'issues/collideoscope/30-user-moderation'Matthew Somerville2018-08-29-10/+10
|\
| * Refactor together similar moderate functions.Matthew Somerville2018-08-28-10/+10
| |
* | Merge branch 'dev-confirmation-pages'Matthew Somerville2018-08-29-8/+37
|\ \
| * | Move all test endpoints under /_dev.Zarino Zappia2018-08-29-8/+37
| |/
* | Use site name in contact email subject line.Matthew Somerville2018-08-28-1/+1
| |
* | Remove need for category_extras ajax call.Matthew Somerville2018-08-28-20/+28
|/ | | | | | Add by_category output to the /report/new/ajax call, containing all the data that /report/new/category_extras returns for one category. Then alter the JS to use that data immediately when needed.
* Include user agent in contact form emails.Matthew Somerville2018-08-21-1/+1
|
* allow front end to not send to specific bodyStruan Donald2018-08-06-0/+7
| | | | | | | | add a do_not_send parameter to reports which allows the front end to specify a comma separated list of bodies that reports should not be sent to even if there is a valid contact match. This enables asset layers to override backend body processing, e.g. if a body only accepts reports that are on a road this allows the front end to specify that.
* Allow asset layer display to be body dependent.Struan Donald2018-08-03-20/+129
| | | | | | | | | | | Return a list of associated bodies on around/new pages and in category ajax calls, and use that when deciding whether to show/hide layers. If the layer has no body information, then we show it as before, maybe based on category selected; if it does, it is only shown if the layer body matches the bodies for the point. As part of this create a new VectorAsset class to handle all the visibility changes for asset layers as it makes it a bit tidier.
* Allow questionnaire pages to be revisited within 2 minutesDave Arter2018-07-11-2/+9
| | | | | | | | Users who double click links were seeing an error when visiting the questionnaire page. This change gives a grace period of two minutes for revisiting the questionnaire page. Fixes #2123.
* [fixmystreet.com] Default to open reports only.Matthew Somerville2018-07-03-1/+1
|
* Only display reports from last 6 months on around.Struan Donald2018-07-03-2/+72
| | | | | | | 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.
* Show all fixed issues when staff uses map filter.Matthew Somerville2018-07-02-5/+5
|
* [UK] Fix issue when body ID not equal to MapIt ID.Matthew Somerville2018-06-28-22/+27
| | | | | | | | | | | Hitherto when creating a body or ward alert on a UK site, the MapIt area ID has been stored instead of the body ID. This is okay for www.fixmystreet.com which for historical reasons does have body IDs that match MapIt area IDs, but other UK-based sites may well not. The alert lookup looks for body ID, meaning those alerts will not work. Save the body ID instead, plus fix some tests that were making the same assumption.
* Enable editing of category group in adminDave Arter2018-06-26-1/+52
| | | | Fixes mysociety/fixmystreetforcouncils#275
* add a send login email button to user edit pageStruan Donald2018-06-25-0/+65
| | | | | | | | | Add a button to the user edit page that sends a login token email to the user. Helpful for user support situations where someone is having trouble logging in. Also for situations where you have added a user and want to get them logged in. Fixes #2041
* Defect type changes must be after category change.Matthew Somerville2018-06-22-0/+26
| | | | | As with priorities, they depend upon the category and so must be looked up after that has been updated.
* Allow inspector to unset priority.Matthew Somerville2018-06-22-0/+20
|
* send unresponsive details back with category extrasStruan Donald2018-06-20-0/+6
| | | | | | | This allows the mobile app to explicitly detect when a body is unresponsive and display the category_extra text. For mysociety/fixmystreet-mobile#266
* Merge branch 'issues/commercial/1064-main-road-br5'Matthew Somerville2018-06-20-3/+0
|\
| * [Bromley] Deal with partial postcodes in search.Matthew Somerville2018-06-20-3/+0
| |
* | cobrand hook to deny access to pagesStruan Donald2018-06-19-0/+15
|/ | | | | | | Add a check in the root controller `auto` to a cobrand hook that denies access if it returns true. This goes here so that cobrands and users are set up, which is not the case for `check_login_required`. Used to do things like deny site access unless the user is a superuser.
* Merge branch 'issues/commercial/1038-bromley-tfl-direct'Matthew Somerville2018-06-14-3/+35
|\
| * [TfL] Add SendReport plugin to ignore contact selection.Matthew Somerville2018-06-14-0/+32
| |
| * If single_body_only set, skip contact body check.Matthew Somerville2018-06-14-3/+3
| | | | | | | | This assumes the SendReport code will deal with the issue.
* | Use correct created column in problem timeline.Matthew Somerville2018-06-13-0/+4
|/ | | | The User model now also has a created column.
* include automated field when editing contactsStruan Donald2018-06-11-0/+56
| | | | | | | | 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
* error on bad update ids passed to contact formStruan Donald2018-06-05-6/+60
| | | | | Return an error if an id for either a hidden update or one not associated with the problem id is passed to the contact form.
* Merge branch 'user-inactivity'Matthew Somerville2018-05-24-2/+58
|\
| * Add admin tickbox to close report to updates.Matthew Somerville2018-05-23-2/+44
| |
| * Refactor out some session functions.Matthew Somerville2018-05-23-0/+14
| |
* | Escape data attributes in template.Matthew Somerville2018-05-23-39/+28
|/ | | | | | This fixes a bug whereby a double quote in an item would not be JSON-escaped due to being HTML-escaped first, meaning it would not parse as JSON on the client.
* ajax endpoint to return closest address.Struan Donald2018-05-09-1/+3
| | | | | | | | /ajax/closest will return ajax with details of the closest address to the lat/lon passed in from the Bing geocoder. Tidy up find_closest() to use overloaded string rather than passing in whether you want a string or not.
* Add small test of category groups.Matthew Somerville2018-05-08-0/+16
|
* Remove needless category mappings.Matthew Somerville2018-05-08-1/+0
| | | | | Both filter categories and new report category lists went through mappings to different data structures, which doesn't seem to be needed.
* Merge branch 'collideoscope-anew'Matthew Somerville2018-05-02-1/+9
|\
| * Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-1/+9
| | | | | | | | | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* | display the contents of report's extra field in adminStruan Donald2018-04-26-0/+76
|/ | | | | | | | Instead of just a Yes/No display a formatted list of values in extra. Has special handling for known fields otherwise just prints them out dumbly. Fixes #1809
* Merge branch 'collideoscope-anew'Matthew Somerville2018-04-26-0/+4
|\
| * Have only one bodies_to_list variable.Matthew Somerville2018-04-23-0/+1
| |
| * Add a cobrand hook to table dashboard generation.Matthew Somerville2018-04-23-0/+3
| | | | | | | | This allows a cobrand to categorise the reports however it wishes.
* | Sign up inspector, not creator, on inspection.Matthew Somerville2018-04-25-2/+2
|/
* Merge branch 'mapit-proxy-api-key'Matthew Somerville2018-04-13-0/+13
|\
| * Provide API key to MapIt proxy if present.Matthew Somerville2018-04-12-0/+13
| |
* | Don’t send alert emails when archiving old reportsDave Arter2018-04-12-0/+35
|/
* admin UI to configure fetch_all_problems Open311 optionStruan Donald2018-04-11-0/+39
| | | | | | UI to update the fetch_all_problems setting in extra for a body. This also adds handling for extra body values in the Admin in a similar manner to the way other body params are handled.
* Add link to edit current report in adminDave Arter2018-04-11-0/+25
| | | | | | | I find myself wanting to view the current report in the admin all the time - this commit adds a link to the top of the inspector column that goes right there. Only visible for superusers and staff users with permission to actually view the admin.