aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
* Fix update-all-reports when database empty.Matthew Somerville2017-07-18-1/+4
|
* Log error if bad SMTP_TYPE config given.Matthew Somerville2017-07-18-0/+36
| | | | Ignore case of config variable.
* Merge branch 'issues/forcouncils/192-unused-categories'Matthew Somerville2017-07-14-48/+55
|\
| * 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-48/+29
| | | | | | | | | | 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.
* [FixaMinGata] Consolidate with upstream.Jon Kristensen2017-07-07-0/+2
| | | | | Add hook for post-title field content in report form. Update translations.
* 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.
* | Merge branch 'issues/commercial/864-update-contact-form'Matthew Somerville2017-07-07-0/+2
|\ \
| * | Add an optional phone field to the contact form.Martin Wright2017-07-07-0/+2
| |/
* / [Oxfordshire] Group RDI output by activity code.Matthew Somerville2017-07-06-11/+32
|/
* Return Response Priorities as JSON.pezholio2017-06-20-0/+103
| | | | | This now lets the response priority and defect type handling share the same code.
* Populate defect types dropdown on category changepezholio2017-06-20-3/+67
|
* Run each test file in a transaction.Matthew Somerville2017-06-20-278/+44
| | | | This means that the tests can be run in parallel.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-27/+27
| | | | | | | | | | | | 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-231/+11
|
* 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.
* | Remove need for sv_SE in tests.Matthew Somerville2017-05-25-3/+3
| |
* | Fix test that would not run offline.Matthew Somerville2017-05-25-7/+2
|/ | | | | Switch it to use our mock MapIt. Also remove other unused overrides to external services.
* Merge branch '1695-scientific-no-tation'Matthew Somerville2017-05-23-17/+54
|\
| * [UK] Stop nearest request with scientific notationMatthew Somerville2017-05-18-17/+54
| | | | | | | | | | | | If the longitude was very close to 0, it was being sent as e.g. 1e-6 in the request to MapIt. Mock out the Bing query so that this can be tested (the closest.t tests were previously always being skipped).
* | [Bristol] Switch warn threshold to five failures.Matthew Somerville2017-05-19-3/+3
|/
* [Oxfordshire] Send RDI reports by email.Matthew Somerville2017-05-16-6/+70
|
* 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
|
* Move alert signup logic out of controllerpezholio2017-05-05-0/+29
|
* Redirect to report for inspectorspezholio2017-05-05-0/+42
|
* Tidy up find_closest* functions.Matthew Somerville2017-05-02-3/+3
| | | | | Allow find_closest to be called multiple times with only one lookup, and to return just its data, not a compiled string.
* 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
* Upgrade Net::Facebook::Oauth2 to 0.10Dave Arter2017-04-03-3/+3
| | | | | | | | | | 0.09 was communicating with v2.2 of the Facebook API which was switched off on 25th March 2017, so Facebook logins were no longer working. Mock::Facebook was updated to correctly return JSON from /oauth/access_token, to match the behaviour expected since v2.3 of the FB API. Fixes #1681
* [SeeSomething] Remove cobrand.Matthew Somerville2017-03-31-202/+0
|
* Merge branch '1639-email-ascender'Matthew Somerville2017-03-28-3/+2
|\
| * Upgrade to using Email::Sender.Matthew Somerville2017-03-28-3/+2
| | | | | | | | | | | | | | | | | | | | Email::Send is long deprecated and uses submodules that no longer work correctly (e.g. Net::SMTP::TLS breaks with recent IO::Socket::SSL). We create an Email::Sender subclass to perform the same functionality and this also simplifies the email code with simpler envelope handling. Bundle Email::Sender::Transport::SMTP to include fix from https://github.com/rjbs/Email-Sender/issues/46
* | Merge branch 'offline-tests'Matthew Somerville2017-03-28-163/+188
|\ \
| * | 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-133/+182
| | |
| * | Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-28/+4
| |/
* / Add customisable defect types.Dave Arter2017-03-23-0/+67
|/ | | | | | | | | Problems can have an associated defect type, that can be assigned during an inspection. Include an admin interface for managing these types, that can also be assigned on a per-category basis, currently available to the Oxfordshire cobrand. (Also include 'TM' in traffic management Exor RDI output.)
* [fixmystreet.com] Remove friendly A/B test.Matthew Somerville2017-03-16-6/+0
| | | | This has been running for a year, added in e17eb20.
* Merge branch '1660-moderating-influence'Matthew Somerville2017-03-14-0/+18
|\
| * 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.
* | Use sender in From if From and To domains match.Matthew Somerville2017-03-14-10/+21
|/ | | | | | To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419