aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
| * Only use active categories for making new reports.Matthew Somerville2017-07-14-0/+26
| | | | | | | | | | Inactive ones can still be used for e.g. list filtering, but not when making a new report.
| * Add inactive state to categories.Matthew Somerville2017-07-14-13/+10
| | | | | | | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* | Merge branch 'new-reports-in-core'Matthew Somerville2017-07-14-43/+31
|\ \
| * | New version of /reports main page.Matthew Somerville2017-07-14-43/+31
| |/ | | | | | | | | | | | | | | | | | | | | This is a much broader summary page, plus a body name autocomplete. This was originally implemented for fixmystreet.com in 8a6a4ccb7. It also adds '(no longer exists)' in the autocomplete next to bodies not covering any areas. You can supply the `--table` argument to `update-all-reports` to generate the old-style data.
* / Allow static home page template override.Matthew Somerville2017-07-14-5/+27
|/ | | | | | If an /about/homepage.html template exists in your cobrand, it will be used as the front page, and the normal front page will be available at /report.
* Merge branch 'issues/forcouncils/195-overloaded-action-scheduled'Matthew Somerville2017-07-07-27/+25
|\
| * [Oxfordshire] Separate defect creation from state.Matthew Somerville2017-07-07-27/+25
| | | | | | | | | | | | | | Revert the behaviour from 36baff2d, so that everyone can use the 'action scheduled' state, and instead if someone with report_instruct permission has the state set to 'action scheduled', add an extra mandatory question asking whether they want to raise a defect or not.
* | Add an optional phone field to the contact form.Martin Wright2017-07-07-0/+2
|/
* Run each test file in a transaction.Matthew Somerville2017-06-20-129/+14
| | | | This means that the tests can be run in parallel.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-17/+15
| | | | | | | | | | | | Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
* Allow users to hide their name on reports/updates.Zarino Zappia2017-05-31-15/+62
|
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-126/+2
|
* Merge branch 'issues/forcouncils/191-action-scheduled-instruct'Matthew Somerville2017-05-26-9/+32
|\
| * Make sure existing state is included in drop-down.Matthew Somerville2017-05-26-1/+11
| | | | | | | | | | It is possible the report's state isn't one that the user can access, but in that case we should still show it to avoid confusion.
| * [Oxfordshire] Use instruct perm to filter state.Matthew Somerville2017-05-26-2/+12
| | | | | | | | | | Without the report_instruct permission, the 'action scheduled' state is not an option in the dropdown.
| * Use same state input in update form as elsewhere.Matthew Somerville2017-05-26-7/+10
| | | | | | | | This lets it look the same as admin/inspect uses, with optgroups.
* | Fix test that would not run offline.Matthew Somerville2017-05-25-2/+1
|/ | | | | Switch it to use our mock MapIt. Also remove other unused overrides to external services.
* Fix timing edge case test failure.Matthew Somerville2017-05-16-1/+1
| | | | | | If the creation of this test report and the loading of the dashboard took place within the same second, the test report would appear in a different column than the test expected.
* Add method to shortlist multiple reportspezholio2017-05-05-3/+28
|
* Subscribe inspectors to updates when state changespezholio2017-05-05-0/+16
|
* Redirect to report for inspectorspezholio2017-05-05-0/+42
|
* Allow comma-separated contact emails in the adminDave Arter2017-04-10-2/+13
| | | | | | | The report-sending code has allowed multiple emails for a long time, but the admin wouldn't allow you to enter multiple emails for each contact. Fixes mysociety/FixMyStreet-Commercial#835
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-115/+0
|
* Fix bug if test run c. 55 hours before BST starts.Matthew Somerville2017-03-23-2/+2
| | | | | | The code was adding two days and seven/eight hours to a floating DateTime, which from 5-7pm on 23rd March 2017 created a DateTime between 1-2am on 26th March which does not exist in e.g. the UK.
* 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.