aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/sendreport
Commit message (Collapse)AuthorAgeLines
* [Bromley] Try and make sure last name/title always present when sending.Matthew Somerville2019-12-16-0/+2
|
* [TfL] Remove Email::TfL send method as no longer neededDave Arter2019-12-09-33/+0
|
* Remove unused inspection required/reputation code.Matthew Somerville2019-10-28-85/+0
|
* [Oxfordshire] Remove raise defect/inspected code.Matthew Somerville2019-10-10-15/+0
|
* better error if category for report does not existStruan Donald2019-06-20-0/+2
| | | | | | It is possible that the category of a report no longer exists and in that case the Open311 send process was falling over. This checks that we've found a contact and if not sets the error and skips the report.
* [UK] Update 2019 local government handling.Matthew Somerville2019-05-23-2/+1
|
* [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-0/+17
|
* [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-1/+0
| | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* [UK] send reports on highways agency roads to highways agencyStruan Donald2018-11-19-0/+32
| | | | | | | Includes an option to send to the council instead for e.g. reports on underpasses or bridges. Fixes #736
* [Angus] Remove cobrand.Matthew Somerville2018-10-10-56/+0
|
* [Oxfordshire] remove open311 hardcodingStruan Donald2018-10-01-3/+0
| | | | | we no longer need some of the hardcoded oxfordshire Open311 overrides so remove them
* Add Blackhole send methodDave Arter2018-09-24-0/+42
|
* [TfL] Add SendReport plugin to ignore contact selection.Matthew Somerville2018-06-14-0/+32
|
* Fix error sending `requires_inspection` reports.Matthew Somerville2018-01-16-3/+0
| | | | | has_permission_to() is called in Reports.pm and requires the cobrand to be set on the schema. The test was manually doing this which hid the problem.
* Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-6/+6
|
* Superusers only have permissions available on the current cobrandDave Arter2017-09-01-0/+3
|
* Make sure gettext domain specified in all tests.Matthew Somerville2017-08-25-2/+0
|
* Move FixMyStreet::DB to FixMyStreet::DB::Schema.Matthew Somerville2017-08-09-1/+1
| | | | Store a schema object on FixMyStreet::DB instead.
* Add inactive state to categories.Matthew Somerville2017-07-14-3/+2
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Run each test file in a transaction.Matthew Somerville2017-06-20-22/+6
| | | | This means that the tests can be run in parallel.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-1/+1
| | | | | | | | | | | | 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.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-14/+4
|
* Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-0/+267
| | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* Send reports immediately from users with enough reputationDave Arter2016-09-23-0/+32
|
* Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-0/+20
| | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* Add ‘Inspection required’ field to categoriesDave Arter2016-09-09-0/+59
| | | | | | | | | | | Categories can now require reports to be marked as 'inspected' via the frontend before they're sent by send-reports. A side-effect here is that send-reports will perform an extra n queries for each report, where n is the number of bodies that report is being sent to, but hopefully in practice this won't matter as it's an offline cronjob. See mysociety/fixmystreetforcouncils#50
* [Angus] SOAP interface/send method for Angus CRMDave Arter2016-03-29-0/+61
|
* Remove unnecessary shebang lines.Matthew Somerville2016-01-22-2/+0
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-3/+3
| | | | Command line scripts don't need a full blown app, just database.
* Factor out test contact creation to function.Matthew Somerville2015-03-13-8/+7
|
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-2/+2
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-4/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-1/+2
| | | | | | | | than one body.
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-3/+7
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-1/+1
| | | | | | | | Add foreign key constraint from contacts to body.
* | Improve tests to not assume BASE_URL is localhost, and remove couple of ↵Matthew Somerville2013-01-28-0/+1
|/ | | | warnings.
* basic SendReport::Email testsStruan Donald2012-07-30-0/+77