aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-96/+105
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-21/+0
|
* [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-6/+0
| | | | This has been running for a year, added in e17eb20.
* Use name at time of moderation, include superusersMatthew Somerville2017-03-14-0/+18
| | | | This works better if e.g. a user stops being associated with a body.
* Allow cobrands to control which states affect reputationDave Arter2017-02-15-3/+18
| | | | | | | | | | | | Rather than assigning +1 to a user's reputation every time a report is inspected, this allows cobrands to specify which states should increment or decrement the reputation value when a report is inspected. The default behaviour is for reputation to never be changed, but the Oxfordshire cobrand will increment the reputation when a report is marked as 'action scheduled'. For mysociety/fixmystreetforcouncils#119
* Clarify ‘inspected’ behaviourDave Arter2017-02-15-7/+8
| | | | | | A report is now considered 'inspected' if its state was changed by an inspector. Additionally, an AdminLog entry is created so the time of inspection and inspector can be recorded.
* [Oxfordshire] Show simpler state list on inspect formDave Arter2017-02-08-4/+4
| | | | | | | | | | Limits the state dropdown to those states which will be useful to OCC inspectors, as well as removing a few from the base template on the inspect form. Some slight template refactoring has made it easier for other cobrands to override the list, as well as sharing the template with the admin report_edit form to allow all states to be selected. Fixes mysociety/fixmystreetforcouncils#129
* [Oxfordshire] Allow cobrand-specific traffic management optionsDave Arter2017-02-08-0/+10
| | | | Fixes mysociety/fixmystreetforcouncils#159
* Fix crash on reports with empty bodies_strDave Arter2017-02-07-0/+13
|
* Add shortlist filterspezholio2017-02-07-1/+50
|
* Show ‘unable to fix’ state as ‘no further action’.Dave Arter2017-02-02-1/+1
| | | | Bromley had this already in its update state change messages.
* Return JSON if `ajax` in paramspezholio2017-01-31-0/+12
|
* Merge remote-tracking branch ↵pezholio2017-01-17-4/+55
|\ | | | | | | 'origin/issues/forcouncils/136-show-user-details-for-council-report'
| * Show user details for users with correct permissionspezholio2017-01-17-4/+54
| |
| * Add permision to view contributor detailspezholio2017-01-17-0/+1
| |
* | Merge remote-tracking branch ↵pezholio2017-01-17-2/+28
|\ \ | | | | | | | | | 'origin/issues/forcouncils/142-allow-anonymous-council-updates'
| * | Allow users with permission to see update usernamepezholio2017-01-17-2/+28
| |/
* / Add shortlist buttons to report lists.Matthew Somerville2017-01-12-2/+2
|/ | | | | | | This includes adding/removing reports from a user's shortlist, and manual reordering of a shortlist with up/down buttons. The backend code can cope with an item moving to any point in the list.
* Merge branch 'issues/forcouncils/20-offline-inspecting'Matthew Somerville2016-12-16-6/+13
|\
| * Default inspect form to save with public update.Matthew Somerville2016-12-16-2/+2
| |
| * Return 400/500 for some client/server errors.Matthew Somerville2016-12-16-4/+11
| |
* | Fix flagging wording template link.Matthew Somerville2016-12-16-1/+1
| | | | | | | | | | | | f58ce6c4 changed the base contact template to include a link to a fixmystreet.com specific page. Revert this back and make the change in the correct cobrand only.
* | Merge branch 'issues/forcouncils/108-pick-up-a-priority'Matthew Somerville2016-12-15-2/+2
|\ \ | |/ |/|
| * Update priorities in inspect form on cat. change.Matthew Somerville2016-12-15-2/+2
| | | | | | | | | | Different categories may have a different list of priorities, so store them all and update as the category changes.
* | Make it clearer that report is closed when marked as duplicateDave Arter2016-12-13-8/+42
| | | | | | | | | | | | - Record state change when leaving update and marking as duplicate - Change save button wording to match problem state when inspecting - Make it clearer that updates marking a report as duplicate actually close the report
* | Signpost users to original version of duplicate reportsDave Arter2016-12-13-24/+26
| | | | | | | | This stops updates being left on duplicates.
* | If a problem has duplicates, display them on its detail pageDave Arter2016-12-13-1/+5
| |
* | Add test for correct display of duplicate reportDave Arter2016-12-13-0/+19
|/
* Update wording on flagging unsuitable reports.Matthew Somerville2016-11-25-1/+1
|
* Pass test if NXDOMAINs are intercepted.Matthew Somerville2016-11-24-0/+8
| | | | | Mock out the DNS lookup to fail, in case the test is being run somewhere where the ISP hijacks NXDOMAIN results and redirects them elsewhere.
* Pre-filter map pages if user has categories assignedDave Arter2016-10-31-0/+17
| | | | | This pre-filters the 'all reports' link in the main nav and the /around page reached via the front page postcode form
* Error if logged-in user visits admin without permission.Matthew Somerville2016-10-26-12/+6
| | | | | This is less confusing than redirecting to /auth and then to /my (as they're logged in). Fixes #1566.
* Redirect to correct cobrand when category changed.Dave Arter2016-10-26-1/+35
|
* Resend report if changing category changes body.Dave Arter2016-10-26-10/+44
|
* Merge branch 'issues/forcouncils/67-mop-up'Matthew Somerville2016-10-24-1/+1
|\
| * Fix warning in report inspect test.Matthew Somerville2016-10-24-1/+1
| |
* | Have report page show inspect form if available.Matthew Somerville2016-10-24-10/+13
|/
* Add ‘description’ field to ResponsePriority modelDave Arter2016-10-19-0/+2
| | | | Used internally to provide more details about when a priority is applicable.
* Allow multiple selections in report list filter.Zarino Zappia2016-10-13-1/+1
| | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* Merge branch 'issues/forcouncils/36-mobile-inspector-improvements'Matthew Somerville2016-10-04-22/+9
|\
| * Remove separate “Public update” form sectionZarino Zappia2016-10-04-2/+2
| | | | | | | | | | | | Inspectors can now tick the optional “Save with a public update” checkbox, to reveal the “Public update” textarea. This means there is no longer a need for two separate submit buttons.
| * Restructure Inspect form into logical sectionsZarino Zappia2016-10-04-3/+3
| | | | | | | | | | | | | | | | IDs and locations at the top, then location-related actions (including a new “navigate to this problem” button), then status and category inputs (since these can have an effect on how we display the rest of the form), then any status/category-related inputs, and finally inputs for internal details like priority and traffic management.
| * Factor out contains_or_lacks test function.Matthew Somerville2016-09-29-9/+4
| |
* | Include CORS cross-origin header in RSS output.Matthew Somerville2016-09-27-0/+1
| |
* | Update user reputation when inspecting reportDave Arter2016-09-23-2/+28
|/
* Merge remote-tracking branch ↵Matthew Somerville2016-09-20-5/+5
|\ | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions'
| * Organize report admin actions into single control.Zarino Zappia2016-09-20-5/+5
| | | | | | | | | | | | | | | | As part of this, rename "planned reports" to "shortlist". The `.segmented-control` component now supports basic usage (as in the admin report actions menu bar) and usage with hidden radio inputs and labels (as on the report questionnaire page).
* | Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-0/+1
|/ | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* Update contact success message text.Matthew Somerville2016-09-14-2/+2
|
* Require inspector to provide update when instructing reportDave Arter2016-09-12-0/+22
| | | | | | | This adds an update field to the bottom of the inspect form, requiring the inspector to provide an update to be added to the report as it's sent. See mysociety/fixmystreetforcouncils#64